1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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
- image: docker.i2erp.cn/e-school-backend:10435
- 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: "1Gi"
- cpu: "1000m"
- ports:
- - containerPort: 8080
- - containerPort: 389
- imagePullSecrets:
- - name: registrykey-i2erp
- volumes:
- - name: config
- configMap:
- name: e-school-applet
- - name: date-config
- hostPath:
- path: /etc/localtime
|