-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for persistent NFS storage type in production deployments
- Loading branch information
1 parent
7c0a475
commit 42fc64f
Showing
21 changed files
with
222 additions
and
43 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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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,10 @@ | ||
kind: Kustomization | ||
|
||
namespace: ${NAMESPACE} | ||
|
||
bases: | ||
- ../../base | ||
|
||
resources: | ||
- resources/storebase-pvc.yaml | ||
- resources/storebase-pv.yaml |
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,15 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: storebase | ||
labels: | ||
volume: storebase | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
capacity: | ||
storage: 10Gi | ||
# Mount a physical dir in the HOST onto the key store in pfcon. This dir | ||
# is given by the STOREBASE env variable substitution. | ||
hostPath: | ||
path: ${STOREBASE} |
14 changes: 14 additions & 0 deletions
14
kubernetes/prod/overlays/host/resources/storebase-pvc.yaml
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,14 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: storebase | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: "" | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
selector: | ||
matchLabels: | ||
volume: storebase |
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,13 @@ | ||
kind: Kustomization | ||
|
||
namespace: ${NAMESPACE} | ||
|
||
bases: | ||
- ../../base | ||
|
||
resources: | ||
- resources/storebase-pvc.yaml | ||
- resources/storebase-pv.yaml | ||
|
||
patches: | ||
- patches/pman-env.yaml |
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,15 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: pman | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: pman | ||
# NFS needs additional env variables | ||
env: | ||
- name: STORAGE_TYPE | ||
value: ${STORAGE_TYPE} | ||
- name: NFS_SERVER | ||
value: ${NFS_SERVER} |
Oops, something went wrong.