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.
17 apiVersion: extensions/v1beta1
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ .Release.Name }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ .Release.Name }}
36 - name: {{ include "common.name" . }}
37 image: {{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}
38 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
40 - containerPort: {{ .Values.service.internalPort }}
41 # disable liveness probe when breakpoints set in debugger
42 # so K8s doesn't restart unresponsive container
43 {{ if .Values.liveness.enabled }}
46 port: {{ .Values.service.internalPort }}
47 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.liveness.periodSeconds }}
52 path: /api/dcim/regions/
53 port: {{ .Values.service.internalPort }}
55 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
56 periodSeconds: {{ .Values.readiness.periodSeconds }}
61 name: {{ template "common.fullname" . }}-pass
63 - name: EMAIL_PASSWORD
66 name: {{ template "common.fullname" . }}-pass
68 - name: NAPALM_PASSWORD
71 name: {{ template "common.fullname" . }}-pass
76 name: {{ template "common.fullname" . }}-pass
78 - name: SUPERUSER_PASSWORD
81 name: {{ template "common.fullname" . }}-pass
82 key: SUPERUSER_PASSWORD
83 - name: SUPERUSER_API_TOKEN
86 name: {{ template "common.fullname" . }}-pass
87 key: SUPERUSER_API_TOKEN
89 value: {{ .Values.config.allowedHosts | quote }}
91 value: {{ .Values.config.dbName }}
93 value: {{ .Values.config.dbUser }}
95 value: {{ .Values.config.dbHost }}
97 value: {{ .Values.config.emailServer }}
99 value: {{ .Values.config.emailPort | quote }}
100 - name: EMAIL_USERNAME
101 value: {{ .Values.config.emailUsername }}
102 - name: EMAIL_TIMEOUT
103 value: {{ .Values.config.emailTimeout | quote }}
105 value: {{ .Values.config.emailFrom }}
107 value: {{ .Values.config.mediaRoot }}
108 - name: NAPALM_USERNAME
109 value: {{ .Values.config.napalmUsername }}
110 - name: NAPALM_TIMEOUT
111 value: {{ .Values.config.napalmTimeout | quote }}
112 - name: MAX_PAGE_SIZE
113 value: {{ .Values.config.maxPageSize | quote }}
114 - name: SUPERUSER_NAME
115 value: {{ .Values.config.superuserName }}
116 - name: SUPERUSER_EMAIL
117 value: {{ .Values.config.superuserEmail }}
119 - mountPath: /etc/localtime
122 - mountPath: /opt/netbox/startup_scripts
123 name: {{ include "common.fullname" . }}-startupscripts-config
124 - mountPath: /opt/netbox/initializers
125 name: {{ include "common.fullname" . }}-initializers-config
126 - mountPath: /etc/netbox/config
127 name: {{ include "common.fullname" . }}-configuration-config
128 - name: {{ include "common.fullname" . }}
129 mountPath: /opt/netbox/netbox/static
131 {{ include "common.resources" . | indent 12 }}
132 {{- if .Values.nodeSelector }}
134 {{ toYaml .Values.nodeSelector | indent 10 }}
136 {{- if .Values.affinity }}
138 {{ toYaml .Values.affinity | indent 10 }}
144 - name: {{ include "common.fullname" . }}
145 persistentVolumeClaim:
146 claimName: {{ .Release.Name }}-{{ .Values.persistence.staticPvName }}
147 - name: {{ include "common.fullname" . }}-startupscripts-config
149 name: {{ include "common.fullname" . }}-startupscripts-configmap
150 - name: {{ include "common.fullname" . }}-initializers-config
152 name: {{ include "common.fullname" . }}-initializers-configmap
153 - name: {{ include "common.fullname" . }}-configuration-config
155 name: {{ include "common.fullname" . }}-configuration-configmap