123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: neican
- spec:
- minReadySeconds: 5
- replicas: 1
- selector:
- matchLabels:
- k8s-app: neican
- strategy:
- type: RollingUpdate
- rollingUpdate:
- maxSurge: 1
- template:
- metadata:
- labels:
- k8s-app: neican
- spec:
- imagePullSecrets:
- - name: registry-key
- containers:
- - command: [ "java","-jar","/neican.jar"]
- 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: neican
- resources:
- limits:
- cpu: 4000m
- memory: 2048Mi
- requests:
- cpu: 1000m
- memory: 1024Mi
- livenessProbe:
- httpGet:
- port: 9002
- path: /neican/check
- initialDelaySeconds: 5
- periodSeconds: 3
- readinessProbe:
- httpGet:
- port: 9002
- path: /neican/check
- initialDelaySeconds: 5
- periodSeconds: 3
- timeoutSeconds: 1
- dnsPolicy: ClusterFirst
- terminationGracePeriodSeconds: 30
|