forked from heartpoints/heartpoints.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heartpoints-k8s.yml
75 lines (75 loc) · 1.52 KB
/
heartpoints-k8s.yml
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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
labels:
app: heartpoints-org
name: heartpoints-org
spec:
replicas: 1
template:
metadata:
labels:
app: heartpoints-org
name: heartpoints-org
spec:
containers:
- name: heartpoints-org
image: {{image}}
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 25m
readinessProbe:
exec:
command:
- curl
- http://localhost:5001
initialDelaySeconds: 10
periodSeconds: 5
livenessProbe:
exec:
command:
- curl
- http://localhost:5001
initialDelaySeconds: 10
periodSeconds: 10
---
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: heartpoints-org-cert
spec:
domains:
- heartpoints.org
---
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: www-heartpoints-org-cert
spec:
domains:
- www.heartpoints.org
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: heartpoints-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: heartpoints-org
networking.gke.io/managed-certificates: "www-heartpoints-org-cert,heartpoints-org-cert"
spec:
backend:
serviceName: heartpoints-org
servicePort: 80
---
apiVersion: v1
kind: Service
metadata:
name: heartpoints-org
spec:
type: NodePort
ports:
- port: 80
targetPort: 5001
selector:
app: heartpoints-org