Heat: Add volume over-rides
This PS brings Heat inline with Nova, Neutron and Keystone providing a mechanism for appending additional volumes to the manifests as required. Change-Id: I17045d35ce5d3e7cfc654c1d962aabd8e6fc73f8
This commit is contained in:
parent
e836b6b09c
commit
8b42b24a23
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.api }}
|
{{- $dependencies := .Values.dependencies.api }}
|
||||||
|
{{- $mounts_heat_api := .Values.mounts.heat_api.heat_api }}
|
||||||
|
{{- $mounts_heat_api_init := .Values.mounts.heat_api.init_container }}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -26,7 +28,7 @@ spec:
|
|||||||
app: heat-api
|
app: heat-api
|
||||||
annotations:
|
annotations:
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_heat_api_init | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -70,6 +72,7 @@ spec:
|
|||||||
mountPath: /etc/heat/policy.json
|
mountPath: /etc/heat/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ if $mounts_heat_api.volumeMounts }}{{ toYaml $mounts_heat_api.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -84,3 +87,4 @@ spec:
|
|||||||
- name: heatpolicy
|
- name: heatpolicy
|
||||||
configMap:
|
configMap:
|
||||||
name: heat-etc
|
name: heat-etc
|
||||||
|
{{ if $mounts_heat_api.volumes }}{{ toYaml $mounts_heat_api.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.cfn }}
|
{{- $dependencies := .Values.dependencies.cfn }}
|
||||||
|
{{- $mounts_heat_cfn := .Values.mounts.heat_cfn.heat_cfn }}
|
||||||
|
{{- $mounts_heat_cfn_init := .Values.mounts.heat_cfn.init_container }}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -26,7 +28,7 @@ spec:
|
|||||||
app: heat-cfn
|
app: heat-cfn
|
||||||
annotations:
|
annotations:
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_heat_cfn_init | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -70,6 +72,7 @@ spec:
|
|||||||
mountPath: /etc/heat/policy.json
|
mountPath: /etc/heat/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ if $mounts_heat_cfn.volumeMounts }}{{ toYaml $mounts_heat_cfn.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -84,3 +87,4 @@ spec:
|
|||||||
- name: heatpolicy
|
- name: heatpolicy
|
||||||
configMap:
|
configMap:
|
||||||
name: heat-etc
|
name: heat-etc
|
||||||
|
{{ if $mounts_heat_cfn.volumes }}{{ toYaml $mounts_heat_cfn.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.cloudwatch }}
|
{{- $dependencies := .Values.dependencies.cloudwatch }}
|
||||||
|
{{- $mounts_heat_cloudwatch := .Values.mounts.heat_cloudwatch.heat_cloudwatch }}
|
||||||
|
{{- $mounts_heat_cloudwatch_init := .Values.mounts.heat_cloudwatch.init_container }}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -26,7 +28,7 @@ spec:
|
|||||||
app: heat-cloudwatch
|
app: heat-cloudwatch
|
||||||
annotations:
|
annotations:
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_heat_cloudwatch_init | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -70,6 +72,7 @@ spec:
|
|||||||
mountPath: /etc/heat/policy.json
|
mountPath: /etc/heat/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ if $mounts_heat_cloudwatch.volumeMounts }}{{ toYaml $mounts_heat_cloudwatch.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -84,3 +87,4 @@ spec:
|
|||||||
- name: heatpolicy
|
- name: heatpolicy
|
||||||
configMap:
|
configMap:
|
||||||
name: heat-etc
|
name: heat-etc
|
||||||
|
{{ if $mounts_heat_cloudwatch.volumes }}{{ toYaml $mounts_heat_cloudwatch.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
{{- $dependencies := .Values.dependencies.engine }}
|
{{- $dependencies := .Values.dependencies.engine }}
|
||||||
|
{{- $mounts_heat_engine := .Values.mounts.heat_engine.heat_engine }}
|
||||||
|
{{- $mounts_heat_engine_init := .Values.mounts.heat_engine.init_container }}
|
||||||
apiVersion: apps/v1beta1
|
apiVersion: apps/v1beta1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
@ -27,7 +29,7 @@ spec:
|
|||||||
app: heat-engine
|
app: heat-engine
|
||||||
annotations:
|
annotations:
|
||||||
pod.beta.kubernetes.io/init-containers: '[
|
pod.beta.kubernetes.io/init-containers: '[
|
||||||
{{ tuple $envAll $dependencies "[]" | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
{{ tuple $envAll $dependencies $mounts_heat_engine_init | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
||||||
]'
|
]'
|
||||||
spec:
|
spec:
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
@ -62,6 +64,7 @@ spec:
|
|||||||
mountPath: /etc/heat/policy.json
|
mountPath: /etc/heat/policy.json
|
||||||
subPath: policy.json
|
subPath: policy.json
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
{{ if $mounts_heat_engine.volumeMounts }}{{ toYaml $mounts_heat_engine.volumeMounts | indent 12 }}{{ end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: pod-etc-heat
|
- name: pod-etc-heat
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
@ -73,3 +76,4 @@ spec:
|
|||||||
- name: heatpolicy
|
- name: heatpolicy
|
||||||
configMap:
|
configMap:
|
||||||
name: heat-etc
|
name: heat-etc
|
||||||
|
{{ if $mounts_heat_engine.volumes }}{{ toYaml $mounts_heat_engine.volumes | indent 8 }}{{ end }}
|
||||||
|
@ -349,3 +349,17 @@ resources:
|
|||||||
limits:
|
limits:
|
||||||
memory: "1024Mi"
|
memory: "1024Mi"
|
||||||
cpu: "2000m"
|
cpu: "2000m"
|
||||||
|
|
||||||
|
mounts:
|
||||||
|
heat_api:
|
||||||
|
init_container: null
|
||||||
|
heat_api:
|
||||||
|
heat_cfn:
|
||||||
|
init_container: null
|
||||||
|
heat_cfn:
|
||||||
|
heat_cloudwatch:
|
||||||
|
init_container: null
|
||||||
|
heat_cloudwatch:
|
||||||
|
heat_engine:
|
||||||
|
init_container: null
|
||||||
|
heat_engine:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user