mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-23 23:49:12 +00:00
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "modem-stats.fullname" . }}
|
|
labels:
|
|
app: {{ template "modem-stats.name" . }}
|
|
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "modem-stats.name" . }}
|
|
release: {{ .Release.Name }}
|
|
replicas: {{ default 1 .Values.replicas }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "modem-stats.name" . }}
|
|
release: {{ .Release.Name }}
|
|
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 "modem-stats.name" . }}
|
|
mountPath: /src/config.ini
|
|
subPath: config.ini
|
|
{{- if .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml .Values.nodeSelector | indent 8 }}
|
|
{{- end }}
|
|
volumes:
|
|
- name: {{ template "modem-stats.name" . }}
|
|
configMap:
|
|
name: {{ template "modem-stats.fullname" . }}
|
|
items:
|
|
- key: config.ini
|
|
path: config.ini |