apiVersion: apps/v1beta1 kind: Deployment metadata: name: i2-bbs-backend namespace: i2 spec: replicas: 1 selector: matchLabels: app: i2-bbs-backend template: metadata: labels: app: i2-bbs-backend spec: hostAliases: - ip: "192.168.0.1" hostnames: - "www.ccbeetech.com" - "ccbeetech.com" containers: - name: i2-bbs-backend image: docker.i2erp.cn/i2-bbs-backend:10034 volumeMounts: - name: config mountPath: /app/conf/ - name: date-config mountPath: /etc/localtime resources: limits: memory: "2Gi" cpu: "1000m" requests: memory: "10Mi" cpu: "10m" ports: - containerPort: 9001 imagePullSecrets: - name: registrykey-i2erp volumes: - name: config configMap: name: i2-bbs-backend - name: date-config hostPath: path: /etc/localtime