123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: sxtt-sync
- spec:
- replicas: 1
- selector:
- matchLabels:
- k8s-app: sxtt-sync
- strategy:
- type: Recreate
- template:
- metadata:
- labels:
- k8s-app: sxtt-sync
- spec:
- hostAliases:
- - ip: "172.16.101.16"
- hostnames:
- - "baidu06"
- - ip: "172.16.101.17"
- hostnames:
- - "baidu07"
- - ip: "172.16.101.18"
- hostnames:
- - "baidu08"
- - ip: "172.16.101.19"
- hostnames:
- - "baidu09"
- imagePullSecrets:
- - name: registry-key
- containers:
- - command: [ "java","-cp","/app.jar","com.cxzx.sxtt.SyncMain" ]
- env:
- - name: PATH
- value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- - name: TZ
- value: Asia/Shanghai
- image: { { image } }
- imagePullPolicy: IfNotPresent
- name: sxtt-sync
- resources:
- limits:
- cpu: 100m
- memory: 515Mi
- requests:
- cpu: 100m
- memory: 50Mi
- dnsPolicy: ClusterFirst
- terminationGracePeriodSeconds: 10
|