portdirect f02e0eb78d OpenStack Heat Initial Commit
Initial commit of Heat Chart
2017-01-02 01:05:04 +00:00

77 lines
2.4 KiB
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: heat-cloudwatch
spec:
replicas: {{ .Values.replicas }}
template:
metadata:
labels:
app: heat-cloudwatch
annotations:
pod.beta.kubernetes.io/init-containers: '[
{
"name": "init",
"image": {{ .Values.images.dep_check | quote }},
"imagePullPolicy": {{ .Values.images.pull_policy | quote }},
"env": [
{
"name": "NAMESPACE",
"value": "{{ .Release.Namespace }}"
},
{
"name": "DEPENDENCY_SERVICE",
"value": "{{ include "joinListWithColon" .Values.dependencies.cloudwatch.service }}"
},
{
"name": "DEPENDENCY_JOBS",
"value": "{{ include "joinListWithColon" .Values.dependencies.cloudwatch.jobs }}"
},
{
"name": "COMMAND",
"value": "echo done"
}
]
}
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
containers:
- name: heat-cloudwatch
image: {{ .Values.images.cloudwatch }}
imagePullPolicy: {{ .Values.images.pull_policy }}
command:
- bash
- /tmp/start.sh
ports:
- containerPort: {{ .Values.service.cloudwatch.port }}
readinessProbe:
tcpSocket:
port: {{ .Values.service.cloudwatch.port }}
volumeMounts:
- name: heat-cloudwatch-sh
mountPath: /tmp/start.sh
subPath: start.sh
readOnly: true
- name: heat-ini-api-paste
mountPath: /etc/heat/api-paste.ini
subPath: api-paste.ini
readOnly: true
- name: heat-conf-cloudwatch
mountPath: /etc/heat/conf/heat-cloudwatch.conf
subPath: heat-cloudwatch.conf
readOnly: true
{{ include "heat_config_volume_mounts" . | indent 12 }}
volumes:
- name: heat-cloudwatch-sh
configMap:
name: heat-cloudwatch-sh
- name: heat-ini-api-paste
configMap:
name: heat-ini-api-paste
- name: heat-conf-cloudwatch
configMap:
name: heat-conf-cloudwatch
{{ include "heat_config_volumes" . | indent 8 }}