-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure other than Backstage container to mount PVC volume to (#582)
* Add containers annotation to default PVC Signed-off-by: gazarenkov <[email protected]> * use PVC for dynamic-plugins volume in RHDH default config Signed-off-by: gazarenkov <[email protected]> * regenerate rhdh default configmap Signed-off-by: gazarenkov <[email protected]> * rollback rhdh config Signed-off-by: gazarenkov <[email protected]> * docs refinement Signed-off-by: gazarenkov <[email protected]> * docs refinement Signed-off-by: gazarenkov <[email protected]> --------- Signed-off-by: gazarenkov <[email protected]>
- Loading branch information
1 parent
d3131a2
commit 5df8826
Showing
16 changed files
with
219 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,44 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: myclaim1 | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
volumeMode: Filesystem | ||
resources: | ||
requests: | ||
storage: 8Gi | ||
storageClassName: slow | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: myclaim2 | ||
annotations: | ||
rhdh.redhat.com/mount-path: /mount/path/from/annotation | ||
rhdh.redhat.com/containers: "backstage-backend,install-dynamic-plugins" | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
volumeMode: Filesystem | ||
resources: | ||
requests: | ||
storage: 8Gi | ||
storageClassName: slow | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: myclaim3 | ||
annotations: | ||
rhdh.redhat.com/mount-path: /mount/path/from/annotation2 | ||
rhdh.redhat.com/containers: "*" | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
volumeMode: Filesystem | ||
resources: | ||
requests: | ||
storage: 8Gi | ||
storageClassName: slow |
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,24 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: <to_be_replaced> # placeholder for 'backstage-<cr-name>' | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
rhdh.redhat.com/app: # placeholder for 'backstage-<cr-name>' | ||
template: | ||
metadata: | ||
labels: | ||
rhdh.redhat.com/app: # placeholder for 'backstage-<cr-name>' | ||
spec: | ||
initContainers: | ||
- image: 'quay.io/rhdh/rhdh-hub-rhel9:next' | ||
name: install-dynamic-plugins | ||
- image: 'quay.io/rhdh/rhdh-hub-rhel9:next' | ||
name: another-init-container | ||
containers: | ||
- name: backstage-backend | ||
image: quay.io/rhdh/rhdh-hub-rhel9:next | ||
- name: another-container | ||
image: quay.io/rhdh/rhdh-hub-rhel9:next |
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