mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 16:09:08 +00:00
ead44d74e3
Fixes #47
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "digitalocean-dyndns.fullname" . }}
|
|
labels:
|
|
app: {{ template "digitalocean-dyndns.name" . }}
|
|
chart: {{ template "digitalocean-dyndns.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "digitalocean-dyndns.name" . }}
|
|
release: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "digitalocean-dyndns.name" . }}
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
env:
|
|
- name: DIGITALOCEAN_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ template "digitalocean-dyndns.fullname" . }}
|
|
key: digitalocean-dyndns-apikey
|
|
- name: DOMAIN
|
|
value: "{{ .Values.digitialocean.domain }}"
|
|
- name: NAME
|
|
value: "{{ .Values.digitialocean.name }}"
|
|
- name: SLEEP_INTERVAL
|
|
value: "{{ .Values.digitialocean.sleep_interval }}"
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 12 }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|