80 lines
2.0 KiB
YAML
80 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: imes-custom-stirling
|
|
name: imes-custom-stirling
|
|
namespace: prd
|
|
spec:
|
|
progressDeadlineSeconds: 600
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app: imes-custom-stirling
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 25%
|
|
maxUnavailable: 25%
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: imes-custom-stirling
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
containers:
|
|
- env:
|
|
- name: PORT
|
|
value: '8080'
|
|
- name: DOCKER_ENABLE_SECURITY
|
|
value: 'false'
|
|
- name: INSTALL_BOOK_AND_ADVANCED_HTML_OPS
|
|
value: 'false'
|
|
- name: LANGS
|
|
value: zh_CN
|
|
- name: GR5A3FDF8080_HOST
|
|
value: gr7db1ca
|
|
- name: GR5A3FDF8080_PORT
|
|
value: '8080'
|
|
- 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-stirling:20241211172132
|
|
imagePullPolicy: IfNotPresent
|
|
name: stirling
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
memory: 512Mi
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 10
|
|
|