Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion charts/nautobot/templates/nautobot-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,12 +433,15 @@ spec:
persistentVolumeClaim:
claimName: {{ include "common.names.fullname" $ }}-static
{{- else }}
emptyDir: {}
{{- toYaml $nautobot.staticFilesVolume | nindent 10 }}
{{- end }}
{{- if $nautobot.persistenceMediaFiles.enabled }}
- name: "nautobot-media"
persistentVolumeClaim:
claimName: {{ include "common.names.fullname" $ }}-media
{{- else if $nautobot.mediaFilesVolume }}
- name: "nautobot-media"
{{- toYaml $nautobot.mediaFilesVolume | nindent 10 }}
{{- end }}
- name: "git-repos"
emptyDir: {}
Expand Down
7 changes: 7 additions & 0 deletions charts/nautobot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ nautobot:
value: 2
periodSeconds: 15

# --- Define the volume for the static files
staticFilesVolume:
emptyDir: {}

# Add a Persistent Volume Claim for Nautobot static files
persistenceStaticFiles:
# --- Enable PVC and the relevant volumes
Expand All @@ -269,6 +273,9 @@ nautobot:
# matchLabel:
# nautobot-storage: static

# --- Define the volume for the media files
mediaFilesVolume: {}

# Add a Persistent Volume Claim for Nautobot media files
persistenceMediaFiles:
# --- Enable PVC and the relevant volumes
Expand Down
Loading