-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
68 lines (68 loc) · 1.89 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: <IMAGE>
ports:
- containerPort: 80
readinessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 10
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 20
periodSeconds: 20
env:
- name: GOOGLE_CLIENT_ID
value: "203333096571-34vrnets214h5eo88na2jshh4nthkts7.apps.googleusercontent.com"
- name: GOOGLE_CLIENT_SECRET
value: "0hZQtH-x5AT5YzhnID9FRh7-"
- name: GOOGLE_REDIRECT_DOMAIN
value: "https://crusty.cards"
- name: API_URL
value: "api.crusty.cards:50052"
- name: GAME_SERVER_URL
value: "game.crusty.cards:50052"
- name: RABBITMQ_URI
value: "amqps://jyyypmvw:[email protected]/jyyypmvw"
- name: JWT_SECRET
value: "2fec78e04789a42014f03a52ac3010ae5226c344e3f1cfe6a8c6d7f7305ac5d8"
---
apiVersion: v1
kind: Service
metadata:
name: frontend-service
annotations:
service.beta.kubernetes.io/do-loadbalancer-certificate-id: "dc4f6bb7-1ee5-45cd-9948-940b1e25bcb2"
service.beta.kubernetes.io/do-loadbalancer-hostname: "crusty.cards"
service.beta.kubernetes.io/do-loadbalancer-protocol: "http"
service.beta.kubernetes.io/do-loadbalancer-redirect-http-to-https: "true"
service.beta.kubernetes.io/do-loadbalancer-tls-ports: "443"
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 80
- name: https
port: 443
targetPort: 80
selector:
app: frontend