k8s-manifests/prd/imes-custom-nlv-ui.yaml

74 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: imes-custom-nlv-ui
name: imes-custom-nlv-ui
namespace: prd
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: imes-custom-nlv-ui
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: imes-custom-nlv-ui
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers:
- env:
- name: PORT
value: '80'
- name: GR2740169999_HOST
value: mom-gateway
- name: GR2740169999_PORT
value: '9999'
- name: HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.hostIP
- name: POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: 192.168.100.49:30002/prd/imes-custom-nlv-ui:20260522085030
imagePullPolicy: IfNotPresent
name: nlv-ui
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
memory: 2Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 10