Add helm chart

This commit is contained in:
Julien Girardin 2019-08-27 17:14:20 +02:00
parent ce9158eb07
commit b9c35fb62f
19 changed files with 656 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{{- if eq .Values.kind "Deployment" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "netbox.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "netbox.name" . }}
helm.sh/chart: {{ include "netbox.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- with .Values.extraLabels }}
{{ . | toYaml | trim | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.deployment.replicaCount }}
{{ include "netbox.common" . | indent 2 }}
{{- if .Values.persistence.enabled }}
{{ required "With Deployment, .Values.persistence.customClaim is required for persistence" .Values.persistence.customClaim | toYaml | nindent 4 }}
{{- end }}
{{- end }}