apiVersion: apps/v1beta1 kind: Deployment metadata: name: e-school-mobile namespace: i2 spec: replicas: 3 selector: matchLabels: app: e-school-mobile template: metadata: labels: app: e-school-mobile spec: hostAliases: - ip: "192.168.0.1" hostnames: - "www.ccbeetech.com" - "ccbeetech.com" containers: - name: e-school-mobile # 479 image: docker.i2erp.cn/e-school-backend:10863 volumeMounts: - name: es-upload mountPath: /app/files readOnly: false subPath: files - name: es-upload mountPath: /app/static readOnly: false subPath: static - 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-mobile - name: date-config hostPath: path: /etc/localtime - name: es-upload persistentVolumeClaim: claimName: es-upload