123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- ---
- apiVersion: apps/v1
- kind: StatefulSet
- metadata:
- name: i6000pusher
- namespace: data
- spec:
- selector:
- matchLabels:
- app: i6000pusher
- replicas: 1
- updateStrategy:
- type: RollingUpdate
- serviceName: i6000pusher
- podManagementPolicy: OrderedReady
- template:
- metadata:
- labels:
- app: i6000pusher
- app.kubernetes.io/name: i6000pusher
- annotations:
- prometheus.io/port: "8080"
- prometheus.io/scrape: "true"
- prometheus.io/path: /metrics
- spec:
- volumes:
- - name: appconf
- configMap:
- name: i6000pusher
- containers:
- - name: i6000pusher
- volumeMounts:
- - name: appconf
- mountPath: "/conf"
- readOnly: true
- image: reg.cestong.com.cn/cecf/i6000pusher:latest
- imagePullPolicy: Always
- ports:
- - name: monitor
- containerPort: 8080
- protocol: TCP
- resources:
- limits:
- memory: 2Gi
- #cpu: 500m
- cpu: 2
- securityContext:
- allowPrivilegeEscalation: false
- env:
- - name: TZ
- value: "Asia/Shanghai"
|