Use secret for glance config
Change-Id: I73ff4d946b24ee14550f4bd49c875b5a8955ff79
This commit is contained in:
parent
7363de01ab
commit
ee381618a3
@ -36,7 +36,18 @@ elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|||||||
:
|
:
|
||||||
|
|
||||||
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
||||||
:
|
# After ceph devstack plugin
|
||||||
|
kubectl create secret generic glance-config -n openstack \
|
||||||
|
--from-file=/etc/glance/glance-api.conf \
|
||||||
|
--from-file=/etc/glance/glance-api-paste.ini \
|
||||||
|
--from-file=/etc/glance/glance-cache.conf \
|
||||||
|
--from-file=/etc/glance/glance-swift-store.conf
|
||||||
|
|
||||||
|
# NOTE(Alex): Permissions here are bad but it's temporary so we don't care as much.
|
||||||
|
sudo chmod -Rv 777 /etc/ceph
|
||||||
|
kubectl create secret generic ceph-config -n openstack \
|
||||||
|
--from-file=/etc/ceph/ceph.conf \
|
||||||
|
--from-file=/etc/ceph/ceph.client.glance.keyring
|
||||||
|
|
||||||
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
||||||
:
|
:
|
||||||
|
@ -87,13 +87,11 @@ spec:
|
|||||||
mountPath: /etc/uwsgi
|
mountPath: /etc/uwsgi
|
||||||
volumes:
|
volumes:
|
||||||
- name: ceph
|
- name: ceph
|
||||||
hostPath:
|
secret:
|
||||||
path: /etc/ceph
|
secretName: ceph-config
|
||||||
type: Directory
|
|
||||||
- name: config
|
- name: config
|
||||||
hostPath:
|
secret:
|
||||||
path: {{ spec['configDir'] }}
|
secretName: glance-config
|
||||||
type: Directory
|
|
||||||
- name: data
|
- name: data
|
||||||
hostPath:
|
hostPath:
|
||||||
path: {{ spec['dataDir'] }}
|
path: {{ spec['dataDir'] }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user