rancher-partner-charts/charts/kubecost/cost-analyzer/2.4.2/templates/mimir-proxy-deployment-temp...

46 lines
1.2 KiB
YAML

{{- if .Values.global.mimirProxy }}
{{- if .Values.global.mimirProxy.enabled }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "cost-analyzer.fullname" . }}-mimir-proxy
namespace: {{ .Release.Namespace }}
labels:
app: mimir-proxy
{{- with .Values.global.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
selector:
matchLabels:
app: mimir-proxy
template:
metadata:
labels:
app: mimir-proxy
{{- with .Values.global.additionalLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
- name: {{ .Values.global.mimirProxy.name }}
image: {{ .Values.global.mimirProxy.image }}
ports:
- containerPort: {{ .Values.global.mimirProxy.port }}
protocol: TCP
resources: {}
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: default-conf
readOnly: true
volumes:
- name: default-conf
configMap:
name: {{ template "cost-analyzer.fullname" . }}-mimir-proxy
items:
- key: default.conf
path: default.conf
{{- end }}
{{- end }}