k8s-manifests/prd/imes-basic-dashboard.yaml

77 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: imes-basic-dashboard
name: imes-basic-dashboard
namespace: prd
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: imes-basic-dashboard
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: imes-basic-dashboard
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers:
- args:
- start
- web
env:
- name: PORT
value: '80'
- 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
- name: MEMORY_SIZE
value: large
image: 192.168.100.49:30002/prd/imes-basic-dashboard:20260129124349
imagePullPolicy: IfNotPresent
name: dashboard
ports:
- containerPort: 80
protocol: TCP
resources:
limits:
memory: 1Gi
requests:
memory: 256Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 10