Merge pull request #53 from alanmeadows/fix_keystone
Keystone chart bugfixes
This commit is contained in:
commit
015c282595
@ -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,24 @@ 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