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:
|
||||
manifest:
|
||||
volumes:
|
||||
- name: glance-data
|
||||
source:
|
||||
emptyDir: {}
|
||||
containers:
|
||||
- env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_KEYSTONE_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_DB_PASSWORD
|
||||
value: password
|
||||
- name: KEYSTONE_ADMIN_TOKEN
|
||||
value: ADMINTOKEN
|
||||
image: kollaglue/fedora-rdo-glance-registry
|
||||
name: glance-registry
|
||||
ports:
|
||||
- containerPort: 9191
|
||||
- env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_KEYSTONE_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_DB_PASSWORD
|
||||
value: password
|
||||
- name: KEYSTONE_ADMIN_TOKEN
|
||||
value: ADMINTOKEN
|
||||
image: kollaglue/fedora-rdo-glance-api
|
||||
name: glance-api
|
||||
ports:
|
||||
- containerPort: 9292
|
||||
- name: glance-registry
|
||||
env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_KEYSTONE_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_DB_PASSWORD
|
||||
value: password
|
||||
- name: KEYSTONE_ADMIN_TOKEN
|
||||
value: ADMINTOKEN
|
||||
image: kollaglue/fedora-rdo-glance-registry
|
||||
ports:
|
||||
- containerPort: 9191
|
||||
volumeMounts:
|
||||
- name: glance-data
|
||||
mountPath: /var/lib/glance
|
||||
- name: glance-api
|
||||
env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_KEYSTONE_PASSWORD
|
||||
value: password
|
||||
- name: GLANCE_DB_PASSWORD
|
||||
value: password
|
||||
- name: KEYSTONE_ADMIN_TOKEN
|
||||
value: ADMINTOKEN
|
||||
image: kollaglue/fedora-rdo-glance-api
|
||||
ports:
|
||||
- containerPort: 9292
|
||||
volumeMounts:
|
||||
- name: glance-data
|
||||
mountPath: /var/lib/glance
|
||||
id: glance-1
|
||||
version: v1beta1
|
||||
id: glance
|
||||
|
@ -1,5 +1,9 @@
|
||||
desiredState:
|
||||
manifest:
|
||||
volumes:
|
||||
- name: mariadb-data
|
||||
source:
|
||||
emptyDir: {}
|
||||
containers:
|
||||
- env:
|
||||
- name: DB_ROOT_PASSWORD
|
||||
@ -8,6 +12,9 @@ desiredState:
|
||||
name: mariadb
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: mariadb-data
|
||||
mountPath: /var/lib/mysql
|
||||
id: mariadb-1
|
||||
version: v1beta1
|
||||
id: mariadb
|
||||
|
Loading…
x
Reference in New Issue
Block a user