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