netbox: New major with lost of changes
This commit is contained in:
parent
c96af698a2
commit
8619ab52b8
5 changed files with 33 additions and 31 deletions
|
@ -4,22 +4,22 @@ name: netbox
|
||||||
description: |
|
description: |
|
||||||
An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
|
An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
|
||||||
|
|
||||||
Important; With chart version 3.0.0 the old nginx+gunicorn setup is no more, refer to
|
Important; With chart version 4.0.0 there are major upgrades to the packaged Redis and Postgres,
|
||||||
https://github.com/netbox-community/netbox-docker/releases/tag/1.0.0 for more info.
|
as well as a major version bump of Netbox that introduces housekeeping. Take care when upgrading.
|
||||||
icon: https://raw.githubusercontent.com/digitalocean/netbox/develop/netbox/project-static/img/netbox.ico
|
icon: https://raw.githubusercontent.com/digitalocean/netbox/develop/netbox/project-static/img/netbox.ico
|
||||||
appVersion: 2.11.12
|
appVersion: 3.0.7
|
||||||
|
|
||||||
type: application
|
type: application
|
||||||
version: 3.0.12
|
version: 4.0.0
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Alexander Olofsson
|
- name: Alexander Olofsson
|
||||||
email: ace@haxalot.com
|
email: ace@haxalot.com
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
version: ~8.9.4
|
version: '> 8, < 11'
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
- name: redis
|
- name: redis
|
||||||
version: ~10.6.12
|
version: ~15
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
|
|
|
@ -15,7 +15,7 @@ data:
|
||||||
DB_PORT: {{ .Values.postgresql.postgresqlPort | default 5432 | quote }}
|
DB_PORT: {{ .Values.postgresql.postgresqlPort | default 5432 | quote }}
|
||||||
|
|
||||||
REDIS_HOST: {{ include "netbox.redisHost" . }}
|
REDIS_HOST: {{ include "netbox.redisHost" . }}
|
||||||
REDIS_PORT: {{ .Values.redis.redisPort | quote }}
|
REDIS_PORT: {{ .Values.redis.master.service.port | default 6379 | quote }}
|
||||||
REDIS_SSL: "false"
|
REDIS_SSL: "false"
|
||||||
|
|
||||||
{{- if .Values.superuser.name }}
|
{{- if .Values.superuser.name }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- if or .Values.housekeeping.enabled (semverCompare ">3.0.0" (include "netbox.imageTag" .)) -}}
|
{{- if .Values.housekeeping.enabled -}}
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
|
@ -39,13 +39,11 @@ spec:
|
||||||
image: "{{ .Values.image.repository }}:{{ include "netbox.imageTag" . }}"
|
image: "{{ .Values.image.repository }}:{{ include "netbox.imageTag" . }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
{{- if .Values.redis.usePassword }}
|
|
||||||
- name: REDIS_PASSWORD
|
- name: REDIS_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "netbox.redis.fullname" . }}
|
name: {{ include "netbox.redis.fullname" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.existingDjangoSecret }}
|
{{- if .Values.existingDjangoSecret }}
|
||||||
- name: SECRET_KEY
|
- name: SECRET_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -74,14 +72,18 @@ spec:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 8080
|
containerPort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- with .Values.livenessProbe }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
{{ toYaml . | nindent 12 }}
|
||||||
port: http
|
{{- end }}
|
||||||
path: /
|
{{- with .Values.readinessProbe }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
{{ toYaml . | nindent 12 }}
|
||||||
port: http
|
{{- end }}
|
||||||
path: /
|
{{- with .Values.startupProbe }}
|
||||||
|
readinessProbe:
|
||||||
|
{{ toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -105,9 +107,9 @@ spec:
|
||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.extraVolumes }}
|
{{- if .Values.extraVolumes }}
|
||||||
{{ toYaml .Values.extraVolumes | indent 8 }}
|
{{ toYaml .Values.extraVolumes | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
|
@ -52,16 +52,16 @@ postgresql:
|
||||||
# existingSecretKey: postgresql-password
|
# existingSecretKey: postgresql-password
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
cluster:
|
architecture: standalone
|
||||||
enabled: false
|
auth:
|
||||||
|
enabled: true
|
||||||
|
# password: netbox
|
||||||
|
|
||||||
master:
|
master:
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
slave:
|
service:
|
||||||
persistence:
|
port: 6379
|
||||||
enabled: false
|
|
||||||
# password: netbox
|
|
||||||
redisPort: 6379
|
|
||||||
|
|
||||||
# NB; Not specifying a key or existing secret will cause it to regenerate on
|
# NB; Not specifying a key or existing secret will cause it to regenerate on
|
||||||
# every upgrade
|
# every upgrade
|
||||||
|
@ -139,9 +139,9 @@ worker:
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
housekeeping:
|
housekeeping:
|
||||||
## Netbox 3.0.0 and upwards need housekeeping to be ran, if you're not using
|
## Netbox 3.0.0 and upwards need a housekeeping pod, if you're not using
|
||||||
## a versioned tag then you may need to set this parameter
|
## 3.0 then you may need to set this parameter
|
||||||
# enabled: true
|
enabled: true
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# limits:
|
# limits:
|
||||||
|
|
Loading…
Reference in a new issue