123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- apiVersion: apps/v1beta1
- kind: StatefulSet
- metadata:
- name: e-school-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: e-school-backend
- template:
- metadata:
- labels:
- app: e-school-backend
- spec:
- hostAliases:
- - ip: "192.168.0.1"
- hostnames:
- - "www.ccbeetech.com"
- - "ccbeetech.com"
- containers:
- - name: e-school-backend
- image: docker.i2erp.cn/e-school-backend:10127
- 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: e-school-backend
- - name: date-config
- hostPath:
- path: /etc/localtime
|