apiVersion: v1 kind: Service metadata: name: glance-service namespace: glance spec: selector: app: glance ports: - port: 8080 targetPort: 8080 --- apiVersion: apps/v1 kind: Deployment metadata: name: glance-deployment namespace: glance spec: replicas: 1 selector: matchLabels: app: glance template: metadata: labels: app: glance spec: containers: - name: glance image: glanceapp/glance envFrom: - secretRef: name: glance-secrets ports: - containerPort: 8080 volumeMounts: - name: glance-config mountPath: /app/config/glance.yml subPath: glance.yml - name: glance-config mountPath: /app/config/home.yml subPath: home.yml - name: glance-config mountPath: /app/config/docker.yml subPath: docker.yml - name: glance-config mountPath: /app/config/monitor.yml subPath: monitor.yml - name: glance-assets mountPath: /app/assets/user.css subPath: user.css - name: docker-socket mountPath: /var/run/docker.sock - name: localtime mountPath: /etc/localtime readOnly: true resources: requests: memory: "30Mi" cpu: "20m" limits: memory: "100Mi" cpu: "50m" volumes: - name: glance-config configMap: name: glance-config - name: glance-assets configMap: name: glance-config - name: docker-socket hostPath: path: /var/run/docker.sock type: Socket - name: localtime hostPath: path: /etc/localtime type: File