...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: bsl-segment-edge-client-deployment
5 labels:
6 platform.edge.ncr.com/component: bsl-segment-edge-client
7spec:
8 replicas: 1
9 selector:
10 matchLabels:
11 platform.edge.ncr.com/component: bsl-segment-edge-client
12 template:
13 metadata:
14 labels:
15 injector.edge.ncr.com/couchdb-user: create-view-user
16 injector.edge.ncr.com/type: direct
17 platform.edge.ncr.com/component: bsl-segment-edge-client
18 spec:
19 restartPolicy: Always
20 terminationGracePeriodSeconds: 20
21 serviceAccountName: bsl-segment-edge-client
22 initContainers:
23 - name: init-edge-client
24 image: us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads/segment-edge-client-init-container@sha256:d966c04ef62e6e8e6b0978e2cae8be962e5772b6efa84f8af535a032ef1b497d
25 envFrom:
26 - configMapRef:
27 name: bsl-segment-edge-client-config-map
28 env:
29 - name: POD_NAMESPACE
30 valueFrom:
31 fieldRef:
32 fieldPath: metadata.namespace
33 volumeMounts:
34 - name: workdir
35 mountPath: '/working'
36 imagePullPolicy: IfNotPresent
37 containers:
38 - name: segment-edge-client
39 image: us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads/segment-edge-client@sha256:1992b98a5d043a640f9914bd27fca22a5aa346a26d1a03bfbb23a82ed00b4dc2
40 ports:
41 - name: http
42 protocol: TCP
43 containerPort: 8080
44 envFrom:
45 - configMapRef:
46 name: bsl-segment-edge-client-config-map
47 resources:
48 limits:
49 cpu: "200m"
50 memory: '128Mi'
51 requests:
52 cpu: '10m'
53 memory: '64Mi'
54 volumeMounts:
55 - name: workdir
56 mountPath: '/app/env'
57 livenessProbe:
58 failureThreshold: 6
59 httpGet:
60 port: 8080
61 path: /liveness
62 initialDelaySeconds: 10
63 periodSeconds: 10
64 timeoutSeconds: 10
65 readinessProbe:
66 failureThreshold: 3
67 httpGet:
68 port: 8080
69 path: /readiness
70 initialDelaySeconds: 10
71 periodSeconds: 10
72 timeoutSeconds: 10
73 imagePullPolicy: IfNotPresent
74 volumes:
75 - name: workdir
76 emptyDir: {}
77 imagePullSecrets:
78 - name: edge-docker-pull-secret
79 strategy: {}
View as plain text