123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- apiVersion: apps/v1
- kind: StatefulSet
- metadata:
- name: cecfdev
- namespace: dev
- spec:
- selector:
- matchLabels:
- app: cecfdev
- replicas: 1
- updateStrategy:
- type: RollingUpdate
- serviceName: cecfdev
- podManagementPolicy: OrderedReady
- template:
- metadata:
- labels:
- app: cecfdev
- app.kubernetes.io/name: cecfdev
- spec:
- affinity:
- nodeAffinity:
- requiredDuringSchedulingIgnoredDuringExecution:
- nodeSelectorTerms:
- - matchExpressions:
- - key: kubernetes.io/hostname
- operator: In
- values:
- - k8sw4
- securityContext:
- fsGroup: 1000
- volumes:
- - name: pydev-data
- persistentVolumeClaim:
- claimName: pydev-pvc
- containers:
- - name: pydev
- image: reg.cestong.com.cn/cecf/dev
- env:
- - name: LANG
- value: C.UTF8
- - name: LANGUAGE
- value: en_US:en
- - name: LC_ALL
- value: en_US.UTF-8
- resources:
- limits:
- ephemeral-storage: "10Gi"
- memory: 4000Mi
- cpu: 2
- imagePullPolicy: Always
- ports:
- - name: ssh
- containerPort: 22
- - name: service
- containerPort: 8686
- volumeMounts:
- - mountPath: "/home"
- name: pydev-data
|