51 lines
1.3 KiB
YAML
Executable File
51 lines
1.3 KiB
YAML
Executable File
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: {{ .Release.Namespace }}
|
|
name: {{ include "rally-exporter.fullname" . }}
|
|
labels:
|
|
{{- include "rally-exporter.labels" . | indent 4 }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- include "rally-exporter.labels" . | indent 6 }}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
|
|
labels:
|
|
{{- include "rally-exporter.labels" . | indent 8 }}
|
|
spec:
|
|
containers:
|
|
- name: rally-exporter
|
|
image: vexxhost/rally-exporter:latest
|
|
args:
|
|
- default
|
|
- /etc/rally/plan.yaml
|
|
volumeMounts:
|
|
- name: exporter-config
|
|
mountPath: /etc/rally
|
|
ports:
|
|
- name: metrics
|
|
containerPort: 9355
|
|
env:
|
|
- name: OS_CLIENT_CONFIG_FILE
|
|
value: /etc/rally/clouds.yaml
|
|
volumes:
|
|
- name: exporter-config
|
|
secret:
|
|
secretName: {{ include "rally-exporter.fullname" . }}
|
|
{{- with .Values.hostAliases }}
|
|
hostAliases:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|