Fix glance containers entrypoints

Also improves glance containers volume specification yaml.
This commit is contained in:
Pete Birley 2017-01-20 01:03:19 +00:00
parent fc81612392
commit b31a365aea
2 changed files with 17 additions and 3 deletions

View File

@ -34,24 +34,29 @@ spec:
image: {{ .Values.images.api }} image: {{ .Values.images.api }}
imagePullPolicy: {{ .Values.images.pull_policy }} imagePullPolicy: {{ .Values.images.pull_policy }}
command: command:
- glance-api --config-dir /etc/glance - glance-api
- --config-file
- /etc/glance/glance-registry.conf
ports: ports:
- containerPort: {{ .Values.network.port.api }} - containerPort: {{ .Values.network.port.api }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.api }} port: {{ .Values.network.port.api }}
volumeMounts: volumeMounts:
- name: etcglance
mountPath: /etc/glance
- name: glanceapiconf - name: glanceapiconf
mountPath: /etc/glance/glance-api.conf mountPath: /etc/glance/glance-api.conf
subPath: glance-api.conf subPath: glance-api.conf
readOnly: true
- name: glanceapipaste - name: glanceapipaste
mountPath: /etc/glance/glance-api-paste.ini mountPath: /etc/glance/glance-api-paste.ini
subPath: glance-api-paste.ini subPath: glance-api-paste.ini
- name: etcglance readOnly: true
mountPath: /etc/glance
- name: glancepolicy - name: glancepolicy
mountPath: /etc/glance/policy.json mountPath: /etc/glance/policy.json
subPath: policy.json subPath: policy.json
readOnly: true
{{- if .Values.development.enabled }} {{- if .Values.development.enabled }}
- name: glance-data - name: glance-data
mountPath: /var/lib/glance/images mountPath: /var/lib/glance/images
@ -59,9 +64,11 @@ spec:
- name: cephconf - name: cephconf
mountPath: /etc/ceph/ceph.conf mountPath: /etc/ceph/ceph.conf
subPath: ceph.conf subPath: ceph.conf
readOnly: true
- name: cephclientglancekeyring - name: cephclientglancekeyring
mountPath: /etc/ceph/ceph.client.{{ .Values.ceph.glance_user }}.keyring mountPath: /etc/ceph/ceph.client.{{ .Values.ceph.glance_user }}.keyring
subPath: ceph.client.{{ .Values.ceph.glance_user }}.keyring subPath: ceph.client.{{ .Values.ceph.glance_user }}.keyring
readOnly: true
{{- end }} {{- end }}
volumes: volumes:
- name: glanceapiconf - name: glanceapiconf

View File

@ -27,16 +27,23 @@ spec:
imagePullPolicy: {{ .Values.images.pull_policy }} imagePullPolicy: {{ .Values.images.pull_policy }}
command: command:
- glance-registry - glance-registry
- --config-file
- /etc/glance/glance-registry.conf
ports: ports:
- containerPort: {{ .Values.network.port.registry }} - containerPort: {{ .Values.network.port.registry }}
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: {{ .Values.network.port.registry }} port: {{ .Values.network.port.registry }}
volumeMounts: volumeMounts:
- name: etcglance
mountPath: /etc/glance
- name: glanceregistryconf - name: glanceregistryconf
mountPath: /etc/glance/glance-registry.conf mountPath: /etc/glance/glance-registry.conf
subPath: glance-registry.conf subPath: glance-registry.conf
readOnly: true
volumes: volumes:
- name: etcglance
emptyDir: {}
- name: glanceregistryconf - name: glanceregistryconf
configMap: configMap:
name: glance-etc name: glance-etc