...
1apiVersion: v1
2kind: Namespace
3metadata:
4 name: edge-ui
5 labels:
6 platform.edge.ncr.com/component: 'edge-ui'
7 workload.edge.ncr.com: platform
8---
9apiVersion: v1
10kind: Service
11metadata:
12 name: edge-ui
13 namespace: edge-ui
14 labels:
15 app: ee-ui
16 platform.edge.ncr.com/component: 'edge-ui'
17 release: edge-ui
18spec:
19 type: NodePort
20 selector:
21 app: edge-ui
22 pod-type: application
23 release: edge-ui
24 ports:
25 - protocol: TCP
26 port: 80
27 targetPort: 8080
28---
29apiVersion: apps/v1
30kind: Deployment
31metadata:
32 name: edge-ui
33 namespace: edge-ui
34 labels:
35 app: edge-ui
36 deployment-type: application
37 platform.edge.ncr.com/component: edge-ui
38 release: edge-ui
39spec:
40 replicas: 3
41 selector:
42 matchLabels:
43 app: edge-ui
44 pod-type: application
45 release: edge-ui
46 template:
47 metadata:
48 name: edge-ui
49 labels:
50 app: edge-ui
51 pod-type: application
52 release: edge-ui
53 spec:
54 restartPolicy: Always
55 dnsPolicy: ClusterFirst
56 containers:
57 - name: edge-ui
58 image: us-east1-docker.pkg.dev/ret-edge-pltf-infra/workloads/edge-ui@sha256:814f0240cd1adbc8420ef05d4e1f9ed248c1f85a954f7227b1ffa7a0e50ee441
59 ports:
60 - name: http
61 protocol: TCP
62 containerPort: 8080
63 resources:
64 limits:
65 cpu: "1"
66 memory: 1Gi
67 requests:
68 cpu: 150m
69 memory: 256Mi
70 livenessProbe:
71 httpGet:
72 port: 8080
73 path: /
74 initialDelaySeconds: 60
75 readinessProbe:
76 httpGet:
77 port: 8080
78 path: /
79 initialDelaySeconds: 60
80 imagePullPolicy: IfNotPresent
81 strategy:
82 type: RollingUpdate
83 rollingUpdate:
84 maxSurge: 25%
85 maxUnavailable: 25%
View as plain text