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