incorporate cleanup feedback from PR#11

This commit is contained in:
Alan Meadows 2016-11-28 09:28:42 -08:00
parent 53a5973d0b
commit 9d26ecec33
11 changed files with 28 additions and 83 deletions

View File

@ -14,9 +14,9 @@ images:
labels:
node_selector_key: ceph-storage
node_selector_value: enabled
network:
port:
mon: 6789
rgw_ingress: 80
rgw_target: 8088
rgw_target: 8088

View File

@ -13,4 +13,4 @@ dependencies:
dependencies:
- name: memcached
repository: http://localhost:8879/charts
version: 0.1.0
version: 0.1.0

View File

@ -11,13 +11,17 @@ spec:
"name": "init",
"image": "quay.io/stackanetes/kubernetes-entrypoint:v0.1.0",
"env": [
{
"name": "NAMESPACE",
"value": "{{ .Release.Namespace }}"
},
{
"name": "DEPENDENCY_SERVICE",
"value": "mariadb"
},
{
"name": "DEPENDENCY_JOBS",
"value": "mariadb-seed,keystone-init"
"value": "mariadb-seed,keystone-db-sync"
},
{
"name": "COMMAND",
@ -26,7 +30,6 @@ spec:
]
}
]'
spec:
restartPolicy: OnFailure
containers:
@ -34,25 +37,8 @@ spec:
image: {{ .Values.images.db_sync }}
imagePullPolicy: Always
command:
- bash
- /tmp/db-sync.sh
env:
- name: INTERFACE_NAME
value: "eth0"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "bash /tmp/db-sync.sh"
- name: DEPENDENCY_JOBS
value: "keystone-init,mariadb-seed"
- name: DEPENDENCY_SERVICE
value: "mariadb"
- bash
- /tmp/db-sync.sh
volumeMounts:
- name: keystoneconf
mountPath: /etc/keystone/keystone.conf

View File

@ -20,16 +20,20 @@ spec:
},
{
"name": "DEPENDENCY_SERVICE",
"value": "mariadb"
"value": "mariadb,rabbitmq"
},
{
"name": "DEPENDENCY_JOBS",
"value": "mariadb-seed"
},
{
"name": "DEPENDENCY_CONFIG",
"value": "/etc/apache2/conf-enabled/wsgi-keystone.conf"
},
{
"name": "COMMAND",
"value": "echo done"
}
}
]
}
]'
@ -40,27 +44,8 @@ spec:
- name: keystone-api
image: {{ .Values.images.api }}
command:
- bash
- /tmp/start.sh
env:
- name: INTERFACE_NAME
value: "eth0"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "bash /tmp/start.sh"
- name: DEPENDENCY_JOBS
value: "keystone-init,keystone-db-sync,mariadb-seed"
- name: DEPENDENCY_SERVICE
value: "mariadb,rabbitmq"
- name: DEPENDENCY_CONFIG
value: "/etc/apache2/conf-enabled/wsgi-keystone.conf"
- bash
- /tmp/start.sh
ports:
- containerPort: {{ .Values.network.port.public }}
- containerPort: {{ .Values.network.port.admin }}

View File

@ -11,13 +11,17 @@ spec:
"name": "init",
"image": "quay.io/stackanetes/kubernetes-entrypoint:v0.1.0",
"env": [
{
"name": "NAMESPACE",
"value": "{{ .Release.Namespace }}"
},
{
"name": "DEPENDENCY_SERVICE",
"value": "mariadb"
},
{
"name": "DEPENDENCY_JOBS",
"value": "mariadb-seed,keystone-init"
"value": "mariadb-seed"
},
{
"name": "COMMAND",
@ -32,23 +36,6 @@ spec:
- name: keystone-init
image: {{ .Values.images.init }}
imagePullPolicy: Always
env:
- name: INTERFACE_NAME
value: "eth0"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "bash /tmp/init.sh"
- name: DEPENDENCY_JOBS
value: "mariadb-seed"
- name: DEPENDENCY_SERVICE
value: "mariadb"
volumeMounts:
- name: initsh
mountPath: /tmp/init.sh

View File

@ -1,4 +1,4 @@
dependencies:
- name: openstack-base
repository: http://localhost:8879/charts
version: 0.1.0
version: 0.1.0

View File

@ -1,4 +1,4 @@
dependencies:
- name: openstack-base
repository: http://localhost:8879/charts
version: 0.1.0
version: 0.1.0

View File

@ -15,19 +15,7 @@ spec:
- name: memcached
image: {{ .Values.images.memcached }}
imagePullPolicy: Always
env:
- name: INTERFACE_NAME
value: "eth0"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COMMAND
value: "memcached -v -p {{ .Values.network.port }} -U 0 -c 8192 -m 1024"
command: "memcached -v -p {{ .Values.network.port }} -U 0 -c 8192 -m 1024"
ports:
- containerPort: {{ .Values.network.port }}
readinessProbe:

View File

@ -1,4 +1,4 @@
dependencies:
- name: openstack-base
repository: http://localhost:8879/charts
version: 0.1.0
version: 0.1.0

View File

@ -6,4 +6,4 @@ spec:
ports:
- port: {{.Values.network.port.public}}
selector:
app: rabbitmq
app: rabbitmq

View File

@ -23,4 +23,3 @@ network:
images:
rabbitmq: "rabbitmq:3-management"