
Kubernetes no longer uses 'kubecfg', but rather 'kubectl'. Therefore, the way that pods and services are being created needs to be changed. In order to create a pod, the parameter 'kind' needs to be set to 'pod' in the yaml file and the api version specified. The stop script now reads from k8s/{pod,service,replication}/ in order to stop all the started pods, services, and replication controllers. Change-Id: Ibd39fa402e9df883df83272c3aefbb69009dfbd2
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
apiVersion: v1beta1
|
|
kind: Pod
|
|
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
|