282345c12e
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
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
desiredState:
|
|
manifest:
|
|
volumes:
|
|
- name: glance-data
|
|
source:
|
|
emptyDir: {}
|
|
containers:
|
|
- 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
|
|
labels:
|
|
name: glance
|