mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
* Add official ingressmonitorcontroller chart Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Remove trailing space from values.yaml in ingressmonitorcontroller chart Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Update chart.yaml in ingressmonitorcontroller chart Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Implement chart review comments Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Fix cluster role api version Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Add labels in rbac Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com> * Update api version of deployment Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
74 lines
2.7 KiB
YAML
74 lines
2.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
{{- if .Values.ingressMonitorController.deployment.annotations }}
|
|
{{ toYaml .Values.ingressMonitorController.deployment.annotations | indent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
app: {{ template "name" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: {{ .Release.Name | quote }}
|
|
heritage: {{ .Release.Service | quote }}
|
|
{{- if .Values.ingressMonitorController.deployment.labels }}
|
|
{{ toYaml .Values.ingressMonitorController.deployment.labels | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.ingressMonitorController.matchLabels }}
|
|
{{ toYaml .Values.ingressMonitorController.matchLabels | indent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.ingressMonitorController.useFullName }}
|
|
name: {{ template "fullname" . }}
|
|
{{- else }}
|
|
name: {{ template "name" . }}
|
|
{{- end }}
|
|
spec:
|
|
replicas: 1
|
|
revisionHistoryLimit: 2
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "name" . }}
|
|
release: {{ .Release.Name | quote }}
|
|
{{- if .Values.ingressMonitorController.matchLabels }}
|
|
{{ toYaml .Values.ingressMonitorController.matchLabels | indent 6 }}
|
|
{{- end }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "name" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: {{ .Release.Name | quote }}
|
|
heritage: {{ .Release.Service | quote }}
|
|
{{- if .Values.ingressMonitorController.deployment.labels }}
|
|
{{ toYaml .Values.ingressMonitorController.deployment.labels | indent 8 }}
|
|
{{- end }}
|
|
{{- if .Values.ingressMonitorController.matchLabels }}
|
|
{{ toYaml .Values.ingressMonitorController.matchLabels | indent 8 }}
|
|
{{- end }}
|
|
spec:
|
|
containers:
|
|
- env:
|
|
{{- if .Values.ingressMonitorController.watchNamespace }}
|
|
- name: KUBERNETES_NAMESPACE
|
|
value: {{ .Values.ingressMonitorController.watchNamespace | quote }}
|
|
{{- end }}
|
|
- name: CONFIG_FILE_PATH
|
|
value: {{ .Values.ingressMonitorController.configFilePath }}
|
|
image: "{{ .Values.ingressMonitorController.image.name }}:{{ .Values.ingressMonitorController.image.tag }}"
|
|
imagePullPolicy: {{ .Values.ingressMonitorController.image.pullPolicy }}
|
|
{{- if .Values.ingressMonitorController.useFullName }}
|
|
name: {{ template "fullname" . }}
|
|
{{- else }}
|
|
name: {{ template "name" . }}
|
|
{{- end }}
|
|
volumeMounts:
|
|
- mountPath: /etc/IngressMonitorController
|
|
name: config-volume
|
|
serviceAccountName: {{ template "serviceAccountName" . }}
|
|
volumes:
|
|
- configMap:
|
|
{{- if .Values.ingressMonitorController.useFullName }}
|
|
name: {{ template "fullname" . }}
|
|
{{- else }}
|
|
name: {{ template "name" . }}
|
|
{{- end }}
|
|
name: config-volume |