-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathauth.yml
69 lines (69 loc) · 1.45 KB
/
auth.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-api
labels:
app: auth-api
spec:
replicas: 1
selector:
matchLabels:
app: auth-api
template:
metadata:
labels:
app: auth-api
spec:
terminationGracePeriodSeconds: 10
containers:
- name: events-api
image: projectepic/authapi:1.0.10
imagePullPolicy: Always
resources:
limits:
memory: 800Mi
cpu: "80m"
requests:
memory: 100Mi
cpu: "80m"
ports:
- containerPort: 8080
- containerPort: 8081
livenessProbe:
periodSeconds: 60
httpGet:
path: /healthcheck
port: 8081
initialDelaySeconds: 120
timeoutSeconds: 5
readinessProbe:
periodSeconds: 20
httpGet:
path: /healthcheck
port: 8081
initialDelaySeconds: 40
timeoutSeconds: 5
volumeMounts:
- mountPath: /private
name: keyfiles
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /private/keyfile.json
volumes:
- name: keyfiles
secret:
secretName: keyfile
nodeSelector:
cloud.google.com/gke-nodepool: production-pool
---
apiVersion: v1
kind: Service
metadata:
name: auth-api
spec:
type: NodePort
ports:
- port: 8080
name: client
selector:
app: auth-api