12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- apiVersion: apps/v1beta1
- kind: StatefulSet
- metadata:
- name: e-school-applet
- 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-applet
- template:
- metadata:
- labels:
- app: e-school-applet
- spec:
- hostAliases:
- - ip: "192.168.0.1"
- hostnames:
- - "www.ccbeetech.com"
- - "ccbeetech.com"
- containers:
- - name: e-school-applet
- # 10479
- image: docker.i2erp.cn/e-school-backend:10866
- imagePullPolicy: Always
- volumeMounts:
- # - name: i2-upload
- # mountPath: /app/files
- # readOnly: false
- # subPath: files
- - name: config
- mountPath: /app/conf/
- - name: date-config
- mountPath: /etc/localtime
- resources:
- requests:
- memory: "8Gi"
- cpu: "1000m"
- # resources:
- # limits:
- # cpu: 4096m
- # memory: 6Gi
- # requests:
- # cpu: 2048m
- # memory: 2Gi
- ports:
- - containerPort: 8080
- - containerPort: 389
- imagePullSecrets:
- - name: registrykey-i2erp
- volumes:
- - name: config
- configMap:
- name: e-school-applet
- - name: date-config
- hostPath:
- path: /etc/localtime
|