apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: i2-pusher-backend namespace: i2 spec: replicas: 1 volumeClaimTemplates: - metadata: name: i2-upload spec: storageClassName: managed-nfs-storage accessModes: [ "ReadWriteMany" ] resources: requests: storage: 1Gi selector: matchLabels: app: i2-pusher-backend template: metadata: labels: app: i2-pusher-backend spec: hostAliases: - ip: "192.168.0.1" hostnames: - "www.ccbeetech.com" - "ccbeetech.com" containers: - name: i2-pusher-backend image: docker.i2erp.cn/i2-pusher-backend:10948 volumeMounts: - name: i2-upload mountPath: /app/files readOnly: false subPath: files - name: config mountPath: /app/conf/ - name: date-config mountPath: /etc/localtime resources: limits: memory: "2Gi" cpu: "1000m" requests: memory: "10Mi" cpu: "10m" ports: - containerPort: 8080 - containerPort: 389 imagePullSecrets: - name: registrykey-i2erp volumes: - name: config configMap: name: i2-pusher-backend - name: date-config hostPath: path: /etc/localtime