-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.yaml
47 lines (47 loc) · 1.02 KB
/
api.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: sso-tcc
namespace: tcc
labels:
app: sso-tcc
spec:
selector:
matchLabels:
app: sso-tcc
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: sso-tcc
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
spec:
terminationGracePeriodSeconds: 10
containers:
- name: sso-tcc
image: 140790352456.dkr.ecr.us-east-1.amazonaws.com/sso-tcc:latest
imagePullPolicy: Always
envFrom:
- secretRef:
name: tcc-secret
resources:
requests:
cpu: "500m"
memory: "1000M"
limits:
cpu: "1000m"
memory: "2000M"
ports:
- containerPort: 8000
readinessProbe:
httpGet:
path: /status/
port: 8000
initialDelaySeconds: 10
periodSeconds: 10