-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Persistence for Static files | ||
|
||
If you want you can enable persistence for the static files of Nautobot. This configuration creates a Persistent Volume Claim called `nautobot-static` and mount it at `/opt/nautobot/static` path of the Pods. Unfortunately, if your underlying storage solution doesn't support `ReadWriteMany` option, you have to use node affinity in order for the Pods of the deployment to be scheduled in the same node as the Persistant Volume. | ||
|
||
```yaml | ||
nautobot: | ||
persistence: | ||
enabled: true | ||
storageClass: "your-storage-class" | ||
accessMode: "ReadWriteMany" | ||
size: "2Gi" | ||
``` | ||
Below there is an example that is using Node labels as selector to create the PVC and schedule the Pods in the same node. | ||
```yaml | ||
nautobot: | ||
persistence: | ||
enabled: true | ||
storageClass: "your-storage-class" | ||
size: "2Gi" | ||
selector: | ||
matchLabel: | ||
nautobot-storage: static | ||
|
||
# Selector for the Pods of the deployment. | ||
nodeSelector: | ||
nautobot-storage: static | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters