add kubernetes volumes to glance pod
Use kubernetes volumes for data storage rather than placing data directly on the container filesystem. That provides a starting point for thinking about persistent data -- one could replace the emptyDir source with an explicit path via hostDir, and then you would have storage that would persist over a container delete/re-create. Change-Id: Ifade1cb2ba546e5e0207c3d8c84965dc2195716b
This commit is contained in:
parent
7b682062fe
commit
282345c12e
@ -1,32 +1,42 @@
|
|||||||
desiredState:
|
desiredState:
|
||||||
manifest:
|
manifest:
|
||||||
|
volumes:
|
||||||
|
- name: glance-data
|
||||||
|
source:
|
||||||
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- name: glance-registry
|
||||||
- name: DB_ROOT_PASSWORD
|
env:
|
||||||
value: password
|
- name: DB_ROOT_PASSWORD
|
||||||
- name: GLANCE_KEYSTONE_PASSWORD
|
value: password
|
||||||
value: password
|
- name: GLANCE_KEYSTONE_PASSWORD
|
||||||
- name: GLANCE_DB_PASSWORD
|
value: password
|
||||||
value: password
|
- name: GLANCE_DB_PASSWORD
|
||||||
- name: KEYSTONE_ADMIN_TOKEN
|
value: password
|
||||||
value: ADMINTOKEN
|
- name: KEYSTONE_ADMIN_TOKEN
|
||||||
image: kollaglue/fedora-rdo-glance-registry
|
value: ADMINTOKEN
|
||||||
name: glance-registry
|
image: kollaglue/fedora-rdo-glance-registry
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 9191
|
- containerPort: 9191
|
||||||
- env:
|
volumeMounts:
|
||||||
- name: DB_ROOT_PASSWORD
|
- name: glance-data
|
||||||
value: password
|
mountPath: /var/lib/glance
|
||||||
- name: GLANCE_KEYSTONE_PASSWORD
|
- name: glance-api
|
||||||
value: password
|
env:
|
||||||
- name: GLANCE_DB_PASSWORD
|
- name: DB_ROOT_PASSWORD
|
||||||
value: password
|
value: password
|
||||||
- name: KEYSTONE_ADMIN_TOKEN
|
- name: GLANCE_KEYSTONE_PASSWORD
|
||||||
value: ADMINTOKEN
|
value: password
|
||||||
image: kollaglue/fedora-rdo-glance-api
|
- name: GLANCE_DB_PASSWORD
|
||||||
name: glance-api
|
value: password
|
||||||
ports:
|
- name: KEYSTONE_ADMIN_TOKEN
|
||||||
- containerPort: 9292
|
value: ADMINTOKEN
|
||||||
|
image: kollaglue/fedora-rdo-glance-api
|
||||||
|
ports:
|
||||||
|
- containerPort: 9292
|
||||||
|
volumeMounts:
|
||||||
|
- name: glance-data
|
||||||
|
mountPath: /var/lib/glance
|
||||||
id: glance-1
|
id: glance-1
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
id: glance
|
id: glance
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
desiredState:
|
desiredState:
|
||||||
manifest:
|
manifest:
|
||||||
|
volumes:
|
||||||
|
- name: mariadb-data
|
||||||
|
source:
|
||||||
|
emptyDir: {}
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: DB_ROOT_PASSWORD
|
- name: DB_ROOT_PASSWORD
|
||||||
@ -8,6 +12,9 @@ desiredState:
|
|||||||
name: mariadb
|
name: mariadb
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3306
|
- containerPort: 3306
|
||||||
|
volumeMounts:
|
||||||
|
- name: mariadb-data
|
||||||
|
mountPath: /var/lib/mysql
|
||||||
id: mariadb-1
|
id: mariadb-1
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
id: mariadb
|
id: mariadb
|
||||||
|
Loading…
x
Reference in New Issue
Block a user