mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
05cf548b9e
* fix annotations for comcast chart * fix annotations for modem-stats chart * fix annotations for nzbget chart * fix annotations for rtorrent-flood chart * fix annotations for speedtest chart * fix annotations for uptimerobot chart
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "comcast.fullname" . }}
|
|
labels:
|
|
app: {{ template "comcast.name" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "comcast.name" . }}
|
|
release: {{ .Release.Name }}
|
|
replicas: {{ default 1 .Values.replicas }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "comcast.name" . }}
|
|
release: {{ .Release.Name }}
|
|
{{- if .Values.podAnnotations }}
|
|
annotations:
|
|
{{- range $key, $value := .Values.podAnnotations }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 12 }}
|
|
volumeMounts:
|
|
- name: {{ template "comcast.name" . }}
|
|
mountPath: /src/config.ini
|
|
subPath: config.ini
|
|
{{- if .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml .Values.nodeSelector | indent 8 }}
|
|
{{- end }}
|
|
volumes:
|
|
- name: {{ template "comcast.name" . }}
|
|
configMap:
|
|
name: {{ template "comcast.fullname" . }}
|
|
items:
|
|
- key: config.ini
|
|
path: config.ini |