Keystone chart bugfixes
* start.sh was added back, which had requiring sourcing * the naming convention for charts is finalized with this example landing on configmap-*.yaml to satisfy those of us with OCD * imagePullPolicies added for init-containers, required by helm 2.1.0 which does not supply them by default
This commit is contained in:
parent
5f42a81c8a
commit
385a8a099e
@ -8,7 +8,7 @@
|
|||||||
{{- define "mariadb_host"}}mariadb.{{.Release.Namespace}}.svc.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
{{- define "mariadb_host"}}mariadb.{{.Release.Namespace}}.svc.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
||||||
|
|
||||||
# keystone
|
# keystone
|
||||||
{{- define "keystone_db_host"}}{{ include "mariadb_host" . }}{{end}}
|
{{- define "keystone_db_host"}}{{ include "mariadb_host" . }}{{- end}}
|
||||||
{{- define "keystone_api_endpoint_host_admin"}}keystone-api.{{.Release.Namespace}}.svc.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
{{- define "keystone_api_endpoint_host_admin"}}keystone-api.{{.Release.Namespace}}.svc.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
||||||
{{- define "keystone_api_endpoint_host_internal"}}keystone-api.{{.Release.Namespace}}.svc.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
{{- define "keystone_api_endpoint_host_internal"}}keystone-api.{{.Release.Namespace}}.svc.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
||||||
{{- define "keystone_api_endpoint_host_public"}}keystone-api.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
{{- define "keystone_api_endpoint_host_public"}}keystone-api.{{ include "region" . }}.{{ include "tld" . }}{{- end}}
|
||||||
|
8
keystone/templates/bin/_start.sh.tpl
Normal file
8
keystone/templates/bin/_start.sh.tpl
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
# Loading Apache2 ENV variables
|
||||||
|
source /etc/apache2/envvars
|
||||||
|
|
||||||
|
# start apache with any container arguments
|
||||||
|
apache2 -DFOREGROUND $*
|
@ -7,3 +7,5 @@ data:
|
|||||||
{{ tuple "bin/_db-sync.sh.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_db-sync.sh.tpl" . | include "template" | indent 4 }}
|
||||||
init.sh: |
|
init.sh: |
|
||||||
{{ tuple "bin/_init.sh.tpl" . | include "template" | indent 4 }}
|
{{ tuple "bin/_init.sh.tpl" . | include "template" | indent 4 }}
|
||||||
|
start.sh: |
|
||||||
|
{{ tuple "bin/_start.sh.tpl" . | include "template" | indent 4 }}
|
@ -5,7 +5,7 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
keystone.conf: |+
|
keystone.conf: |+
|
||||||
{{ tuple "etc/_keystone.conf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_keystone.conf.tpl" . | include "template" | indent 4 }}
|
||||||
mpm-event.conf: |+
|
mpm_event.conf: |+
|
||||||
{{ tuple "etc/_mpm_event.conf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_mpm_event.conf.tpl" . | include "template" | indent 4 }}
|
||||||
wsgi-keystone.conf: |+
|
wsgi-keystone.conf: |+
|
||||||
{{ tuple "etc/_wsgi-keystone.conf.tpl" . | include "template" | indent 4 }}
|
{{ tuple "etc/_wsgi-keystone.conf.tpl" . | include "template" | indent 4 }}
|
@ -13,6 +13,7 @@ spec:
|
|||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
"image": "{{ .Values.images.entrypoint }}",
|
"image": "{{ .Values.images.entrypoint }}",
|
||||||
|
"imagePullPolicy": "{{ .Values.images.pull_policy }}",
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "NAMESPACE",
|
"name": "NAMESPACE",
|
||||||
@ -43,9 +44,10 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: keystone-api
|
- name: keystone-api
|
||||||
image: {{ .Values.images.api }}
|
image: {{ .Values.images.api }}
|
||||||
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
command:
|
command:
|
||||||
- apache2
|
- bash
|
||||||
- -DFOREGROUND
|
- /tmp/start.sh
|
||||||
ports:
|
ports:
|
||||||
- containerPort: {{ .Values.network.port.public }}
|
- containerPort: {{ .Values.network.port.public }}
|
||||||
- containerPort: {{ .Values.network.port.admin }}
|
- containerPort: {{ .Values.network.port.admin }}
|
||||||
@ -58,26 +60,23 @@ spec:
|
|||||||
subPath: keystone.conf
|
subPath: keystone.conf
|
||||||
- name: wsgikeystone
|
- name: wsgikeystone
|
||||||
mountPath: /etc/apache2/conf-enabled/wsgi-keystone.conf
|
mountPath: /etc/apache2/conf-enabled/wsgi-keystone.conf
|
||||||
subPath: wsgi_keystone.conf
|
subPath: wsgi-keystone.conf
|
||||||
- name: mpmeventconf
|
- name: mpmeventconf
|
||||||
mountPath: /etc/apache2/mods-available/mpm_event.conf
|
mountPath: /etc/apache2/mods-available/mpm_event.conf
|
||||||
subPath: mpm_event.conf
|
subPath: mpm_event.conf
|
||||||
|
- name: startsh
|
||||||
|
mountPath: /tmp/start.sh
|
||||||
|
subPath: start.sh
|
||||||
volumes:
|
volumes:
|
||||||
- name: keystoneconf
|
- name: keystoneconf
|
||||||
configMap:
|
configMap:
|
||||||
name: keystone-etc
|
name: keystone-etc
|
||||||
items:
|
|
||||||
- key: keystone.conf
|
|
||||||
path: keystone.conf
|
|
||||||
- name: wsgikeystone
|
- name: wsgikeystone
|
||||||
configMap:
|
configMap:
|
||||||
name: keystone-etc
|
name: keystone-etc
|
||||||
items:
|
|
||||||
- key: wsgi-keystone.conf
|
|
||||||
path: wsgi_keystone.conf
|
|
||||||
- name: mpmeventconf
|
- name: mpmeventconf
|
||||||
configMap:
|
configMap:
|
||||||
name: keystone-etc
|
name: keystone-etc
|
||||||
items:
|
- name: startsh
|
||||||
- key: mpm-event.conf
|
configMap:
|
||||||
path: mpm_event.conf
|
name: keystone-bin
|
@ -10,6 +10,7 @@ spec:
|
|||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
"image": "{{ .Values.images.entrypoint }}",
|
"image": "{{ .Values.images.entrypoint }}",
|
||||||
|
"imagePullPolicy": "{{ .Values.images.pull_policy }}",
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "NAMESPACE",
|
"name": "NAMESPACE",
|
||||||
@ -35,7 +36,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: keystone-db-sync
|
- name: keystone-db-sync
|
||||||
image: {{ .Values.images.db_sync }}
|
image: {{ .Values.images.db_sync }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
command:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/db-sync.sh
|
- /tmp/db-sync.sh
|
||||||
|
@ -10,6 +10,7 @@ spec:
|
|||||||
{
|
{
|
||||||
"name": "init",
|
"name": "init",
|
||||||
"image": "{{ .Values.images.entrypoint }}",
|
"image": "{{ .Values.images.entrypoint }}",
|
||||||
|
"imagePullPolicy": "{{ .Values.images.pull_policy }}",
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "NAMESPACE",
|
"name": "NAMESPACE",
|
||||||
@ -35,7 +36,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: keystone-init
|
- name: keystone-init
|
||||||
image: {{ .Values.images.init }}
|
image: {{ .Values.images.init }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
||||||
command:
|
command:
|
||||||
- bash
|
- bash
|
||||||
- /tmp/init.sh
|
- /tmp/init.sh
|
||||||
|
@ -14,6 +14,7 @@ images:
|
|||||||
api: quay.io/stackanetes/stackanetes-keystone-api:newton
|
api: quay.io/stackanetes/stackanetes-keystone-api:newton
|
||||||
init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
|
init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
|
||||||
entrypoint: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
|
entrypoint: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
|
||||||
|
pull_policy: "IfNotPresent"
|
||||||
|
|
||||||
keystone:
|
keystone:
|
||||||
version: v2.0
|
version: v2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user