forked from totallylegitco/fighthealthinsurance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
executable file
·192 lines (192 loc) · 4.68 KB
/
deploy.yaml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: uploads
namespace: totallylegitco
spec:
accessModes:
- ReadWriteMany
storageClassName: longhorn
resources:
requests:
storage: 200Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: web-primary
namespace: totallylegitco
spec:
ttlSecondsAfterFinished: 10
template:
metadata:
labels:
group: fight-health-insurance-webbackend-batch
special: web-primary-pod
spec:
containers:
- image: holdenk/fight-health-insurance:v0.9.4c
name: totallylegitco
env:
- name: PRIMARY
value: "1"
envFrom:
- secretRef:
name: fight-health-insurance-secret
- secretRef:
name: fight-health-insurance-primary-secret
imagePullPolicy: Always
restartPolicy: OnFailure
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
namespace: totallylegitco
labels:
app: fight-health-insurance
spec:
replicas: 8
selector:
matchLabels:
app: fight-health-insurance
template:
metadata:
labels:
app: fight-health-insurance
group: fight-health-insurance-webbackend
spec:
topologySpreadConstraints:
- maxSkew: 2
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: fight-health-insurance
containers:
- image: holdenk/fight-health-insurance:v0.9.4c
name: totallylegitco
envFrom:
- secretRef:
name: fight-health-insurance-secret
imagePullPolicy: Always
ports:
- containerPort: 80
name: web
volumeMounts:
- name: uploads
mountPath: /external_data
livenessProbe:
httpGet:
httpHeaders:
- name: Host
value: "www.fighthealthinsurance.com"
path: /
port: 80
periodSeconds: 180
startupProbe:
httpGet:
httpHeaders:
- name: Host
value: "www.fighthealthinsurance.com"
path: /
port: 80
periodSeconds: 10
failureThreshold: 45
volumes:
- name: uploads
persistentVolumeClaim:
claimName: uploads
---
apiVersion: v1
kind: Service
metadata:
labels:
group: fight-health-insurance
name: web-svc
namespace: totallylegitco
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: web
selector:
group: fight-health-insurance-webbackend
sessionAffinity: None
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fight-health-insurance-ingress
namespace: totallylegitco
annotations:
cert-manager.io/cluster-issuer: letsencrypt
cert-manager.io/issue-temporary-certificate: "true"
acme.cert-manager.io/http01-edit-in-place: "true"
cert-manager.io/renew-before: "20d"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-max-age: "30000"
nginx.ingress.kubernetes.io/proxy-body-size: 80m
spec:
ingressClassName: nginx
tls:
- hosts:
- www.fighthealthinsurance.com
- fighthealthinsurance.com
- www.fuckhealthinsurance.com
- www.appealhealthinsurance.com
secretName: combined-tls-secret
rules:
- host: www.fuckhealthinsurance.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-svc
port:
number: 80
- host: fuckhealthinsurance.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-svc
port:
number: 80
- host: www.appealhealthinsurance.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-svc
port:
number: 80
- host: www.fighthealthinsurance.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-svc
port:
number: 80
- host: fighthealthinsurance.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web-svc
port:
number: 80