...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: ee-bff-golang
5 labels:
6 app: ee-bff-golang
7 deployment-type: application
8 platform.edge.ncr.com/component: edge-backend
9 release: ee-bff-golang
10spec:
11 replicas: 3
12 selector:
13 matchLabels:
14 app: ee-bff-golang
15 pod-type: application
16 release: ee-bff-golang
17 template:
18 metadata:
19 name: ee-bff-golang
20 labels:
21 app: ee-bff-golang
22 pod-type: application
23 release: ee-bff-golang
24 spec:
25 restartPolicy: Always
26 dnsPolicy: ClusterFirst
27 serviceAccountName: bff-sa
28 initContainers:
29 - name: edge-sql
30 image: bzl://cmd/edge/edge-sql:container_push
31 ports:
32 - name: http
33 protocol: TCP
34 containerPort: 8080
35 envFrom:
36 - configMapRef:
37 name: ee-bff-golang
38 - secretRef:
39 name: auth
40 containers:
41 - name: edge-backend
42 image: bzl://cmd/edge/api:container_push
43 ports:
44 - name: http
45 protocol: TCP
46 containerPort: 8080
47 envFrom:
48 - configMapRef:
49 name: ee-bff-golang
50 - secretRef:
51 name: auth
52 - secretRef:
53 name: edge-totp-secret-key
54 - secretRef:
55 name: okta-client-id
56 resources:
57 limits:
58 cpu: "1"
59 memory: 1Gi
60 requests:
61 cpu: 150m
62 memory: 250Mi
63 livenessProbe:
64 httpGet:
65 port: 8080
66 path: /health
67 initialDelaySeconds: 60
68 readinessProbe:
69 httpGet:
70 port: 8080
71 path: /ready
72 initialDelaySeconds: 60
73 imagePullPolicy: IfNotPresent
74 strategy:
75 type: RollingUpdate
76 rollingUpdate:
77 maxSurge: 25%
78 maxUnavailable: 25%
View as plain text