2 # Copyright © 2018 Amdocs, Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ include "common.release" . }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
31 app: {{ include "common.name" . }}
35 app: {{ include "common.name" . }}
36 release: {{ include "common.release" . }}
39 - name: {{ include "common.name" . }}
40 image: {{ .Values.repository }}/{{ .Values.image }}
41 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
43 - containerPort: {{ .Values.service.internalPort }}
44 # disable liveness probe when breakpoints set in debugger
45 # so K8s doesn't restart unresponsive container
46 {{ if .Values.liveness.enabled }}
49 port: {{ .Values.service.internalPort }}
50 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
51 periodSeconds: {{ .Values.liveness.periodSeconds }}
55 port: {{ .Values.service.internalPort }}
56 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
57 periodSeconds: {{ .Values.readiness.periodSeconds }}
62 name: {{ template "common.fullname" . }}-pass
64 - name: EMAIL_PASSWORD
67 name: {{ template "common.fullname" . }}-pass
69 - name: NAPALM_PASSWORD
72 name: {{ template "common.fullname" . }}-pass
77 name: {{ template "common.fullname" . }}-pass
79 - name: SUPERUSER_PASSWORD
82 name: {{ template "common.fullname" . }}-pass
83 key: SUPERUSER_PASSWORD
84 - name: SUPERUSER_API_TOKEN
87 name: {{ template "common.fullname" . }}-pass
88 key: SUPERUSER_API_TOKEN
90 value: {{ .Values.config.allowedHosts | quote }}
92 value: {{ .Values.config.dbName }}
94 value: {{ .Values.config.dbUser }}
96 value: {{ .Values.config.dbHost }}
98 value: {{ .Values.config.emailServer }}
100 value: {{ .Values.config.emailPort | quote }}
101 - name: EMAIL_USERNAME
102 value: {{ .Values.config.emailUsername }}
103 - name: EMAIL_TIMEOUT
104 value: {{ .Values.config.emailTimeout | quote }}
106 value: {{ .Values.config.emailFrom }}
108 value: {{ .Values.config.mediaRoot }}
109 - name: NAPALM_USERNAME
110 value: {{ .Values.config.napalmUsername }}
111 - name: NAPALM_TIMEOUT
112 value: {{ .Values.config.napalmTimeout | quote }}
113 - name: MAX_PAGE_SIZE
114 value: {{ .Values.config.maxPageSize | quote }}
115 - name: SUPERUSER_NAME
116 value: {{ .Values.config.superuserName }}
117 - name: SUPERUSER_EMAIL
118 value: {{ .Values.config.superuserEmail }}
120 - mountPath: /etc/localtime
123 - mountPath: /opt/netbox/startup_scripts
124 name: {{ include "common.fullname" . }}-startupscripts-config
125 - mountPath: /opt/netbox/initializers
126 name: {{ include "common.fullname" . }}-initializers-config
127 - mountPath: /etc/netbox/config
128 name: {{ include "common.fullname" . }}-configuration-config
129 - name: {{ include "common.fullname" . }}
130 mountPath: /opt/netbox/netbox/static
132 {{ include "common.resources" . | indent 12 }}
133 {{- if .Values.nodeSelector }}
135 {{ toYaml .Values.nodeSelector | indent 10 }}
137 {{- if .Values.affinity }}
139 {{ toYaml .Values.affinity | indent 10 }}
145 - name: {{ include "common.fullname" . }}
146 persistentVolumeClaim:
147 claimName: {{ include "common.release" . }}-{{ .Values.persistence.staticPvName }}
148 - name: {{ include "common.fullname" . }}-startupscripts-config
150 name: {{ include "common.fullname" . }}-startupscripts-configmap
151 - name: {{ include "common.fullname" . }}-initializers-config
153 name: {{ include "common.fullname" . }}-initializers-configmap
154 - name: {{ include "common.fullname" . }}-configuration-config
156 name: {{ include "common.fullname" . }}-configuration-configmap
158 - name: "{{ include "common.namespace" . }}-docker-registry-key"