statefulset.yaml_backup 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. apiVersion: apps/v1beta1
  2. kind: StatefulSet
  3. metadata:
  4. name: e-school-applet
  5. namespace: i2
  6. spec:
  7. replicas: 1
  8. # volumeClaimTemplates:
  9. # - metadata:
  10. # name: i2-upload
  11. # spec:
  12. # storageClassName: managed-nfs-storage
  13. # accessModes: [ "ReadWriteMany" ]
  14. # resources:
  15. # requests:
  16. # storage: 1Gi
  17. selector:
  18. matchLabels:
  19. app: e-school-applet
  20. template:
  21. metadata:
  22. labels:
  23. app: e-school-applet
  24. spec:
  25. hostAliases:
  26. - ip: "192.168.0.1"
  27. hostnames:
  28. - "www.ccbeetech.com"
  29. - "ccbeetech.com"
  30. containers:
  31. - name: e-school-applet
  32. image: docker.i2erp.cn/e-school-backend:10435
  33. imagePullPolicy: Always
  34. volumeMounts:
  35. # - name: i2-upload
  36. # mountPath: /app/files
  37. # readOnly: false
  38. # subPath: files
  39. - name: config
  40. mountPath: /app/conf/
  41. - name: date-config
  42. mountPath: /etc/localtime
  43. resources:
  44. requests:
  45. memory: "1Gi"
  46. cpu: "1000m"
  47. ports:
  48. - containerPort: 8080
  49. - containerPort: 389
  50. imagePullSecrets:
  51. - name: registrykey-i2erp
  52. volumes:
  53. - name: config
  54. configMap:
  55. name: e-school-applet
  56. - name: date-config
  57. hostPath:
  58. path: /etc/localtime