Skip to content

Commit

Permalink
Add missing init_containers for keystone and mariadb.
Browse files Browse the repository at this point in the history
Signed-off-by: DTadrzak <daniel.tadrzak@intel.com>
  • Loading branch information
DTadrzak committed Nov 23, 2016
1 parent 67b6153 commit 4587100
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
21 changes: 21 additions & 0 deletions keystone/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ spec:
metadata:
labels:
app: keystone-api
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"name": "init",
"image": "quay.io/stackanetes/kubernetes-entrypoint:v0.1.0",
"env": [
{
"name": "DEPENDENCY_SERVICE",
"value": "mariadb"
},
{
"name": "DEPENDENCY_JOBS",
"value": "mariadb-seed,nova-db-sync"
},
{
"name": "COMMAND",
"value": "echo Done"
}
]
}
]'
spec:
nodeSelector:
{{ .Values.global.deployment.control_node_label }}: enabled
Expand Down
17 changes: 17 additions & 0 deletions mariadb/templates/mariadb-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ spec:
labels:
app: mariadb
galera: enabled
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"name": "init",
"image": "quay.io/stackanetes/kubernetes-entrypoint:v0.1.0",
"env": [
{
"name": "DEPENDENCY_JOBS",
"value": "mariadb-seed"
},
{
"name": "COMMAND",
"value": "echo Done"
}
]
}
]'
spec:
nodeSelector:
{{ .Values.deployment.control_node_label }}: enabled
Expand Down

0 comments on commit 4587100

Please sign in to comment.