Merge "Configuration Management Overrides for Cinder"
This commit is contained in:
commit
8bf8282f6d
23
cinder/templates/_funcs.tpl
Normal file
23
cinder/templates/_funcs.tpl
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
{{- define "cinder.is_ceph_configured" -}}
|
||||||
|
{{- range $section, $values := .Values.conf.backends -}}
|
||||||
|
{{- if kindIs "map" $values -}}
|
||||||
|
{{- if eq $values.volume_driver "cinder.volume.drivers.rbd.RBDDriver" -}}
|
||||||
|
true
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
@ -12,20 +12,102 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
{{- include "cinder.conf.cinder_values_skeleton" .Values.conf.cinder | trunc 0 -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.auth_uri -}}
|
||||||
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token "auth_uri" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
# FIXME(alanmeadows) fix for broken keystonemiddleware oslo config gen in newton - will remove in future
|
||||||
|
{{- if empty .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.auth_url -}}
|
||||||
|
{{- tuple "identity" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token "auth_url" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.memcached_servers -}}
|
||||||
|
{{- tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.hostname_endpoint_uri_lookup" | set .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token "memcached_servers" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.cinder.database.oslo.db.connection -}}
|
||||||
|
{{- tuple "oslo_db" "internal" "user" "mysql" . | include "helm-toolkit.authenticated_endpoint_uri_lookup"| set .Values.conf.cinder.database.oslo.db "connection" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.cinder.default.oslo.messaging.transport_url -}}
|
||||||
|
{{- tuple "oslo_messaging" "internal" "user" "amqp" . | include "helm-toolkit.authenticated_endpoint_uri_lookup" | set .Values.conf.cinder.default.oslo.messaging "transport_url" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{- if empty .Values.conf.cinder.default.cinder.glance_api_servers -}}
|
||||||
|
{{- tuple "image" "internal" "api" . | include "helm-toolkit.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.default.cinder "glance_api_servers" | quote | trunc 0 -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: cinder-etc
|
name: cinder-etc
|
||||||
data:
|
data:
|
||||||
cinder.conf: |+
|
cinder.conf: |+
|
||||||
|
{{ if .Values.conf.cinder.override -}}
|
||||||
|
{{ .Values.conf.cinder.override | indent 4 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.conf.cinder.prefix -}}
|
||||||
|
{{ .Values.conf.cinder.prefix | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{ tuple "etc/_cinder.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "etc/_cinder.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.conf.cinder.append -}}
|
||||||
|
{{ .Values.conf.cinder.append | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
backends.conf: |+
|
||||||
|
{{ if .Values.conf.backends.override -}}
|
||||||
|
{{ .Values.conf.backends.override | indent 4 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.conf.backends.prefix -}}
|
||||||
|
{{ .Values.conf.backends.prefix | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{ include "helm-toolkit.utils.to_ini" .Values.conf.backends | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.conf.backends.append -}}
|
||||||
|
{{ .Values.conf.backends.append | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
rootwrap.conf: |+
|
rootwrap.conf: |+
|
||||||
|
{{ if .Values.conf.rootwrap.override -}}
|
||||||
|
{{ .Values.conf.rootwrap.override | indent 4 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.conf.rootwrap.prefix -}}
|
||||||
|
{{ .Values.conf.rootwrap.prefix | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
{{ tuple "etc/_rootwrap.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "etc/_rootwrap.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.conf.rootwrap.append -}}
|
||||||
|
{{ .Values.conf.rootwrap.append | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
api-paste.ini: |+
|
api-paste.ini: |+
|
||||||
{{ tuple "etc/_cinder-api-paste.ini.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ if .Values.conf.paste.override -}}
|
||||||
|
{{ .Values.conf.paste.override | indent 4 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- if .Values.conf.paste.prefix -}}
|
||||||
|
{{ .Values.conf.paste.prefix | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{ tuple "etc/_api-paste.ini.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.conf.paste.append -}}
|
||||||
|
{{ .Values.conf.paste.append | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
policy.json: |+
|
policy.json: |+
|
||||||
|
{{ if .Values.conf.policy.override -}}
|
||||||
|
{{ .Values.conf.policy.override | indent 4 }}
|
||||||
|
{{- else -}}
|
||||||
{{ tuple "etc/_policy.json.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "etc/_policy.json.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if include "cinder.is_ceph_configured" . -}}
|
||||||
ceph.conf: |+
|
ceph.conf: |+
|
||||||
|
{{ if .Values.conf.ceph.override -}}
|
||||||
|
{{ .Values.conf.ceph.override | indent 4 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- end }}
|
||||||
{{ tuple "etc/_ceph.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "etc/_ceph.conf.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
ceph.client.{{ .Values.ceph.cinder_user }}.keyring: |+
|
{{- if .Values.conf.ceph.append -}}
|
||||||
|
{{ .Values.conf.ceph.append | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
ceph.client.{{ .Values.conf.backends.rbd1.rbd_user }}.keyring: |+
|
||||||
{{ tuple "etc/_ceph-cinder.keyring.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "etc/_ceph-cinder.keyring.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
@ -11,9 +11,11 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.api }}
|
{{- $dependencies := .Values.dependencies.api }}
|
||||||
|
{{- $mounts_cinder_api := .Values.mounts.cinder_api.cinder_api }}
|
||||||
|
{{- $mounts_cinder_api_init := .Values.mounts.cinder_api.init_container }}
|
||||||
|
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -36,7 +38,7 @@ spec:
|
|||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_cinder_api_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -59,13 +61,11 @@ spec:
|
|||||||
- /tmp/cinder-api.sh
|
- /tmp/cinder-api.sh
|
||||||
ports:
|
ports:
|
||||||
- name: c-api
|
- name: c-api
|
||||||
containerPort: {{ .Values.network.api.port }}
|
containerPort: {{ .Values.conf.cinder.default.cinder.osapi_volume_listen_port }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: {{ .Values.network.api.port }}
|
port: {{ .Values.conf.cinder.default.cinder.osapi_volume_listen_port }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-etc-cinder
|
|
||||||
mountPath: /etc/cinder
|
|
||||||
- name: pod-var-cache-cinder
|
- name: pod-var-cache-cinder
|
||||||
mountPath: /var/cache/cinder
|
mountPath: /var/cache/cinder
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
@ -84,9 +84,8 @@ spec:
|
|||||||
mountPath: /etc/cinder/policy.json
|
mountPath: /etc/cinder/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ if $mounts_cinder_api.volumeMounts }}{{ toYaml $mounts_cinder_api.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-cinder
|
|
||||||
emptyDir: {}
|
|
||||||
- name: pod-var-cache-cinder
|
- name: pod-var-cache-cinder
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
@ -95,3 +94,4 @@ spec:
|
|||||||
- name: cinder-etc
|
- name: cinder-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: cinder-etc
|
name: cinder-etc
|
||||||
|
{{ if $mounts_cinder_api.volumes }}{{ toYaml $mounts_cinder_api.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -11,9 +11,11 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.scheduler }}
|
{{- $dependencies := .Values.dependencies.scheduler }}
|
||||||
|
{{- $mounts_cinder_scheduler := .Values.mounts.cinder_scheduler.cinder_scheduler }}
|
||||||
|
{{- $mounts_cinder_scheduler_init := .Values.mounts.cinder_scheduler.init_container }}
|
||||||
|
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -36,7 +38,7 @@ spec:
|
|||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_cinder_scheduler_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -58,8 +60,6 @@ spec:
|
|||||||
- bash
|
- bash
|
||||||
- /tmp/cinder-scheduler.sh
|
- /tmp/cinder-scheduler.sh
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-etc-cinder
|
|
||||||
mountPath: /etc/cinder
|
|
||||||
- name: pod-var-cache-cinder
|
- name: pod-var-cache-cinder
|
||||||
mountPath: /var/cache/cinder
|
mountPath: /var/cache/cinder
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
@ -78,9 +78,8 @@ spec:
|
|||||||
mountPath: /etc/cinder/policy.json
|
mountPath: /etc/cinder/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ if $mounts_cinder_scheduler.volumeMounts }}{{ toYaml $mounts_cinder_scheduler.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-cinder
|
|
||||||
emptyDir: {}
|
|
||||||
- name: pod-var-cache-cinder
|
- name: pod-var-cache-cinder
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
@ -89,3 +88,4 @@ spec:
|
|||||||
- name: cinder-etc
|
- name: cinder-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: cinder-etc
|
name: cinder-etc
|
||||||
|
{{ if $mounts_cinder_scheduler.volumes }}{{ toYaml $mounts_cinder_scheduler.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -11,9 +11,11 @@
|
|||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.volume }}
|
{{- $dependencies := .Values.dependencies.volume }}
|
||||||
|
{{- $mounts_cinder_volume := .Values.mounts.cinder_volume.cinder_volume }}
|
||||||
|
{{- $mounts_cinder_volume_init := .Values.mounts.cinder_volume.init_container }}
|
||||||
|
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -36,7 +38,7 @@ spec:
|
|||||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_cinder_volume_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -58,8 +60,6 @@ spec:
|
|||||||
- bash
|
- bash
|
||||||
- /tmp/cinder-volume.sh
|
- /tmp/cinder-volume.sh
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: pod-etc-cinder
|
|
||||||
mountPath: /etc/cinder
|
|
||||||
- name: pod-var-cache-cinder
|
- name: pod-var-cache-cinder
|
||||||
mountPath: /var/cache/cinder
|
mountPath: /var/cache/cinder
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
@ -70,17 +70,21 @@ spec:
|
|||||||
mountPath: /etc/cinder/cinder.conf
|
mountPath: /etc/cinder/cinder.conf
|
||||||
subPath: cinder.conf
|
subPath: cinder.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
- name: cinder-etc
|
||||||
|
mountPath: /etc/cinder/conf/backends.conf
|
||||||
|
subPath: backends.conf
|
||||||
|
readOnly: true
|
||||||
|
{{- if include "cinder.is_ceph_configured" . }}
|
||||||
- name: cinder-etc
|
- name: cinder-etc
|
||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: cinder-etc
|
mountPath: /etc/ceph/ceph.client.{{ .Values.conf.backends.rbd1.rbd_user }}.keyring
|
||||||
mountPath: /etc/ceph/ceph.client.{{ .Values.ceph.cinder_user }}.keyring
|
subPath: ceph.client.{{ .Values.conf.backends.rbd1.rbd_user }}.keyring
|
||||||
subPath: ceph.client.{{ .Values.ceph.cinder_user }}.keyring
|
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{- end }}
|
||||||
|
{{ if $mounts_cinder_volume.volumeMounts }}{{ toYaml $mounts_cinder_volume.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-cinder
|
|
||||||
emptyDir: {}
|
|
||||||
- name: pod-var-cache-cinder
|
- name: pod-var-cache-cinder
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
- name: cinder-bin
|
- name: cinder-bin
|
||||||
@ -89,3 +93,4 @@ spec:
|
|||||||
- name: cinder-etc
|
- name: cinder-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: cinder-etc
|
name: cinder-etc
|
||||||
|
{{ if $mounts_cinder_volume.volumes }}{{ toYaml $mounts_cinder_volume.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
[client.{{ .Values.ceph.cinder_user }}]
|
[client.{{ .Values.conf.backends.rbd1.rbd_user }}]
|
||||||
{{- if .Values.ceph.cinder_keyring }}
|
{{- if .Values.conf.ceph.cinder_keyring }}
|
||||||
key = {{ .Values.ceph.cinder_keyring }}
|
key = {{ .Values.conf.ceph.cinder_keyring }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
key = {{- include "secrets/ceph-client-key" . -}}
|
key = {{- include "secrets/ceph-client-key" . -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -15,9 +15,9 @@
|
|||||||
[global]
|
[global]
|
||||||
rgw_thread_pool_size = 1024
|
rgw_thread_pool_size = 1024
|
||||||
rgw_num_rados_handles = 100
|
rgw_num_rados_handles = 100
|
||||||
{{- if .Values.ceph.monitors }}
|
{{- if .Values.conf.ceph.monitors }}
|
||||||
[mon]
|
[mon]
|
||||||
{{ range .Values.ceph.monitors }}
|
{{ range .Values.conf.ceph.monitors }}
|
||||||
[mon.{{ . }}]
|
[mon.{{ . }}]
|
||||||
host = {{ . }}
|
host = {{ . }}
|
||||||
mon_addr = {{ . }}
|
mon_addr = {{ . }}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -21,14 +21,14 @@ data:
|
|||||||
OS_AUTH_URL: |
|
OS_AUTH_URL: |
|
||||||
{{ tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | b64enc | indent 4 }}
|
{{ tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | b64enc | indent 4 }}
|
||||||
OS_REGION_NAME: |
|
OS_REGION_NAME: |
|
||||||
{{ .Values.keystone.cinder_region_name | b64enc | indent 4 }}
|
{{ .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.region_name | b64enc | indent 4 }}
|
||||||
OS_PROJECT_DOMAIN_NAME: |
|
OS_PROJECT_DOMAIN_NAME: |
|
||||||
{{ .Values.keystone.cinder_project_domain | b64enc | indent 4 }}
|
{{ .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.project_domain_name | b64enc | indent 4 }}
|
||||||
OS_PROJECT_NAME: |
|
OS_PROJECT_NAME: |
|
||||||
{{ .Values.keystone.cinder_project_name | b64enc | indent 4 }}
|
{{ .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.project_name | b64enc | indent 4 }}
|
||||||
OS_USER_DOMAIN_NAME: |
|
OS_USER_DOMAIN_NAME: |
|
||||||
{{ .Values.keystone.cinder_user_domain | b64enc | indent 4 }}
|
{{ .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.user_domain_name | b64enc | indent 4 }}
|
||||||
OS_USERNAME: |
|
OS_USERNAME: |
|
||||||
{{ .Values.keystone.cinder_user | b64enc | indent 4 }}
|
{{ .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.username | b64enc | indent 4 }}
|
||||||
OS_PASSWORD: |
|
OS_PASSWORD: |
|
||||||
{{ .Values.keystone.cinder_password | b64enc | indent 4 }}
|
{{ .Values.conf.cinder.keystone_authtoken.keystonemiddleware.auth_token.password | b64enc | indent 4 }}
|
||||||
|
@ -18,7 +18,7 @@ metadata:
|
|||||||
name: cinder-api
|
name: cinder-api
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: {{ .Values.network.api.port }}
|
- port: {{ .Values.conf.cinder.default.cinder.osapi_volume_listen_port }}
|
||||||
{{ if .Values.network.api.node_port.enabled }}
|
{{ if .Values.network.api.node_port.enabled }}
|
||||||
nodePort: {{ .Values.network.api.node_port.port }}
|
nodePort: {{ .Values.network.api.node_port.port }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -56,54 +56,82 @@ keystone:
|
|||||||
admin_project_name: "admin"
|
admin_project_name: "admin"
|
||||||
admin_project_domain: "default"
|
admin_project_domain: "default"
|
||||||
admin_region_name: "RegionOne"
|
admin_region_name: "RegionOne"
|
||||||
|
|
||||||
cinder_user: "cinder"
|
|
||||||
cinder_user_domain: "default"
|
|
||||||
cinder_user_role: "admin"
|
cinder_user_role: "admin"
|
||||||
cinder_password: "password"
|
|
||||||
cinder_project_name: "service"
|
|
||||||
cinder_project_domain: "default"
|
|
||||||
cinder_region_name: "RegionOne"
|
|
||||||
|
|
||||||
network:
|
network:
|
||||||
api:
|
api:
|
||||||
name: "cinder-api"
|
name: "cinder-api"
|
||||||
port: 8776
|
|
||||||
node_port:
|
node_port:
|
||||||
enabled: false
|
enabled: false
|
||||||
port: 30877
|
port: 30877
|
||||||
|
|
||||||
ceph:
|
|
||||||
enabled: true
|
|
||||||
monitors: []
|
|
||||||
cinder_user: "admin"
|
|
||||||
# a null value for the keyring will
|
|
||||||
# attempt to use the key from
|
|
||||||
# common/secrets/ceph-client-key
|
|
||||||
cinder_keyring: null
|
|
||||||
|
|
||||||
backends:
|
conf:
|
||||||
enabled:
|
paste:
|
||||||
- rbd1
|
override:
|
||||||
rbd1:
|
append:
|
||||||
secret: null
|
policy:
|
||||||
user: "admin"
|
override:
|
||||||
pool: "volumes"
|
append:
|
||||||
|
rootwrap:
|
||||||
glance:
|
override:
|
||||||
version: 2
|
append:
|
||||||
|
ceph:
|
||||||
messaging:
|
override:
|
||||||
hosts: rabbitmq
|
append:
|
||||||
user: rabbitmq
|
monitors: []
|
||||||
password: password
|
cinder_keyring: null
|
||||||
|
cinder:
|
||||||
|
override:
|
||||||
api:
|
append:
|
||||||
workers: 8
|
database:
|
||||||
|
oslo:
|
||||||
misc:
|
db:
|
||||||
debug: false
|
max_retries: -1
|
||||||
|
default:
|
||||||
|
oslo:
|
||||||
|
log:
|
||||||
|
debug: false
|
||||||
|
use_syslog: false
|
||||||
|
use_stderr: true
|
||||||
|
cinder:
|
||||||
|
enable_v1_api: false
|
||||||
|
volume_name_template: "%s"
|
||||||
|
osapi_volume_workers: 8
|
||||||
|
glance_api_version: 2
|
||||||
|
os_region_name: RegionOne
|
||||||
|
host: cinder-volume-worker
|
||||||
|
osapi_volume_listen_port: 8776
|
||||||
|
enabled_backends: "rbd1"
|
||||||
|
keystone_authtoken:
|
||||||
|
keystonemiddleware:
|
||||||
|
auth_token:
|
||||||
|
auth_version: v3
|
||||||
|
auth_type: password
|
||||||
|
region_name: RegionOne
|
||||||
|
project_domain_name: default
|
||||||
|
project_name: service
|
||||||
|
user_domain_name: default
|
||||||
|
username: cinder
|
||||||
|
password: password
|
||||||
|
oslo_concurrency:
|
||||||
|
oslo:
|
||||||
|
concurrency:
|
||||||
|
lock_path: "/var/lib/cinder/tmp"
|
||||||
|
backends:
|
||||||
|
override:
|
||||||
|
append:
|
||||||
|
# Those options will be written to backends.conf as-is.
|
||||||
|
rbd1:
|
||||||
|
volume_driver: cinder.volume.drivers.rbd.RBDDriver
|
||||||
|
volume_backend_name: rbd1
|
||||||
|
rbd_pool: volumes
|
||||||
|
rbd_ceph_conf: "/etc/ceph/ceph.conf"
|
||||||
|
rbd_flatten_volume_from_snapshot: false
|
||||||
|
rbd_max_clone_depth: 5
|
||||||
|
rbd_store_chunk_size: 4
|
||||||
|
rados_connect_timeout: -1
|
||||||
|
rbd_user: "admin"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
db_init:
|
db_init:
|
||||||
@ -210,6 +238,25 @@ endpoints:
|
|||||||
scheme: mysql+pymysql
|
scheme: mysql+pymysql
|
||||||
port:
|
port:
|
||||||
mysql: 3306
|
mysql: 3306
|
||||||
|
oslo_messaging:
|
||||||
|
auth:
|
||||||
|
admin:
|
||||||
|
username: admin
|
||||||
|
password: password
|
||||||
|
user:
|
||||||
|
username: rabbitmq
|
||||||
|
password: password
|
||||||
|
hosts:
|
||||||
|
default: rabbitmq
|
||||||
|
path: /
|
||||||
|
scheme: rabbit
|
||||||
|
port:
|
||||||
|
amqp: 5672
|
||||||
|
oslo_cache:
|
||||||
|
hosts:
|
||||||
|
default: memcache
|
||||||
|
port:
|
||||||
|
memcache: 11211
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
enabled: false
|
enabled: false
|
||||||
@ -269,3 +316,14 @@ resources:
|
|||||||
limits:
|
limits:
|
||||||
memory: "1024Mi"
|
memory: "1024Mi"
|
||||||
cpu: "2000m"
|
cpu: "2000m"
|
||||||
|
|
||||||
|
mounts:
|
||||||
|
cinder_api:
|
||||||
|
init_container: null
|
||||||
|
cinder_api:
|
||||||
|
cinder_scheduler:
|
||||||
|
init_container: null
|
||||||
|
cinder_scheduler:
|
||||||
|
cinder_volume:
|
||||||
|
init_container: null
|
||||||
|
cinder_volume:
|
||||||
|
28
helm-toolkit/templates/utils/_to_ini.tpl
Normal file
28
helm-toolkit/templates/utils/_to_ini.tpl
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# Copyright 2017 The Openstack-Helm Authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
{{- define "helm-toolkit.to_ini" -}}
|
||||||
|
{{- range $section, $values := . -}}
|
||||||
|
{{- if kindIs "map" $values -}}
|
||||||
|
[{{ $section }}]
|
||||||
|
{{range $key, $value := $values -}}
|
||||||
|
{{- if kindIs "slice" $value -}}
|
||||||
|
{{ $key }} = {{ include "helm-toolkit.joinListWithComma" $value }}
|
||||||
|
{{else -}}
|
||||||
|
{{ $key }} = {{ $value }}
|
||||||
|
{{end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
Loading…
Reference in New Issue
Block a user