k8s-manifests/dev/imes-custom-nalinv-mobile.yaml

79 lines
2.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: imes-custom-nalinv-mobile
name: imes-custom-nalinv-mobile
namespace: dev
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: imes-custom-nalinv-mobile
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: imes-custom-nalinv-mobile
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: GATEWAY_HOST
value: mom-gateway
- name: GATEWAY_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: 10.10.11.40:5000/dev/imes-custom-nalinv-mobile:20260728142507
imagePullPolicy: IfNotPresent
name: nalinv-mobile
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: rbd-hub-credentials
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 10