-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s.yml
More file actions
101 lines (101 loc) · 2.32 KB
/
k8s.yml
File metadata and controls
101 lines (101 loc) · 2.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
apiVersion: apps/v1
kind: Deployment
metadata:
name: react-timeline-github-activity-v2
namespace: lunatic-cat
spec:
selector:
matchLabels:
app: react-timeline-github-activity-v2
replicas: 1
template:
metadata:
labels:
app: react-timeline-github-activity-v2
spec:
imagePullSecrets:
- name: react-timeline-docker-registry
containers:
- image: registry.lunatic.cat/lunatic-cat/react-timeline-github-activity-v2
name: react-timeline-github-activity-v2
imagePullPolicy: Always
ports:
- containerPort: 80
volumeMounts:
- mountPath: /var/cache/nginx
name: nginx-home-and-cache
volumes:
- name: nginx-home-and-cache
emptyDir:
medium: Memory
sizeLimit: "1Gi"
---
apiVersion: v1
kind: Service
metadata:
name: react-timeline-github-activity-v2
namespace: lunatic-cat
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: react-timeline-github-activity-v2
---
kind: Service
apiVersion: v1
metadata:
name: react-timeline-github-activity-v2-matomo-php
namespace: lunatic-cat
spec:
type: ExternalName
externalName: matomo.matomo.svc.cluster.local
---
kind: Service
apiVersion: v1
metadata:
name: react-timeline-github-activity-v2-matomo-js
namespace: lunatic-cat
spec:
type: ExternalName
externalName: matomo-js.matomo.svc.cluster.local
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: react-timeline-github-activity-v2
namespace: lunatic-cat
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- oss.lunatic.cat
secretName: react-timeline-github-activity-v2-ing-tls
rules:
- host: oss.lunatic.cat
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: react-timeline-github-activity-v2
port:
number: 80
- path: /mtm.js
pathType: Prefix
backend:
service:
name: react-timeline-github-activity-v2-matomo-js
port:
number: 80
- path: /mtm.php
pathType: Prefix
backend:
service:
name: react-timeline-github-activity-v2-matomo-php
port:
number: 80