Add extravolumes to netbox
This commit is contained in:
parent
889099f26d
commit
8d3f88485c
3 changed files with 32 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: "2.6.1"
|
appVersion: "2.6.1"
|
||||||
description: A Helm chart for Kubernetes
|
description: An IP address management (IPAM) and data center infrastructure management (DCIM) tool.
|
||||||
|
icon: https://raw.githubusercontent.com/digitalocean/netbox/develop/netbox/project-static/img/netbox.ico
|
||||||
name: netbox
|
name: netbox
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
|
|
|
@ -49,7 +49,16 @@ spec:
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml .Values.resources | nindent 12 }}
|
||||||
volumeMounts: []
|
{{- if or .Values.persistence.enabled .Values.extraVolumeMounts }}
|
||||||
|
volumeMounts:
|
||||||
|
{{- if .Values.persistence.enabled }}
|
||||||
|
- name: data
|
||||||
|
mountPath: /etc/netbox/media
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.extraVolumeMounts }}
|
||||||
|
{{ toYaml .Values.extraVolumeMounts | indent 10 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
# - name: netbox-configuration
|
# - name: netbox-configuration
|
||||||
# path: /etc/netbox/config
|
# path: /etc/netbox/config
|
||||||
# readOnly: true
|
# readOnly: true
|
||||||
|
@ -79,8 +88,14 @@ spec:
|
||||||
# - name: netbox-startup-scripts
|
# - name: netbox-startup-scripts
|
||||||
# configMap:
|
# configMap:
|
||||||
# name: {{ .Chart.Name }}-startup-scripts
|
# name: {{ .Chart.Name }}-startup-scripts
|
||||||
- name: netbox-media-files
|
{{- if .Values.persistence.enabled }}
|
||||||
emptyDir: {}
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ include "netbox.fullname" . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.extraVolumes }}
|
||||||
|
{{ toYaml .Values.extraVolumes | indent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with .Values.affinity }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
|
|
@ -100,6 +100,17 @@ tolerations: []
|
||||||
|
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
|
extraVolumes: []
|
||||||
|
|
||||||
|
extraVolumeMounts: []
|
||||||
|
# - name: extra-music-data
|
||||||
|
# mountPath: /srv/funkwhale/data/music
|
||||||
|
# readOnly: true
|
||||||
|
# existingClaim: volume-claim
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue