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
|
||||
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
|
||||
version: 0.1.1
|
||||
version: 0.1.2
|
||||
|
|
|
@ -49,7 +49,16 @@ spec:
|
|||
protocol: TCP
|
||||
resources:
|
||||
{{- 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
|
||||
# path: /etc/netbox/config
|
||||
# readOnly: true
|
||||
|
@ -79,8 +88,14 @@ spec:
|
|||
# - name: netbox-startup-scripts
|
||||
# configMap:
|
||||
# name: {{ .Chart.Name }}-startup-scripts
|
||||
- name: netbox-media-files
|
||||
emptyDir: {}
|
||||
{{- if .Values.persistence.enabled }}
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ include "netbox.fullname" . }}
|
||||
{{- end }}
|
||||
{{- if .Values.extraVolumes }}
|
||||
{{ toYaml .Values.extraVolumes | indent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
|
|
@ -100,6 +100,17 @@ tolerations: []
|
|||
|
||||
affinity: {}
|
||||
|
||||
extraVolumes: []
|
||||
|
||||
extraVolumeMounts: []
|
||||
# - name: extra-music-data
|
||||
# mountPath: /srv/funkwhale/data/music
|
||||
# readOnly: true
|
||||
# existingClaim: volume-claim
|
||||
|
||||
persistence:
|
||||
enabled: false
|
||||
|
||||
worker:
|
||||
enabled: false
|
||||
|
||||
|
|
Loading…
Reference in a new issue