Skip to content

Commit

Permalink
Merge pull request #37 from catenax-ng/persistent-volume-claim
Browse files Browse the repository at this point in the history
add simple persistent volume claim example
  • Loading branch information
Csaba Fabian committed Dec 2, 2022
2 parents a150baf + 9937b0b commit 2724e42
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/k8s-helm-example/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
type: application
name: k8s-helm-example
version: 0.1.5
version: 0.1.6
appVersion: "1.23.2"
description: A Helm chart for Kubernetes for Catena-X
home: https://github.com/catenax-ng/k8s-helm-example
Expand Down
6 changes: 6 additions & 0 deletions charts/k8s-helm-example/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ spec:
readOnly: true
mountPath: "/usr/share/nginx/html/config.json"
subPath: "config.json"
- name: pv-tmp-demo
readOnly: false
mountPath: /tmp/demo
volumes:
- name: config-frontend-volume
configMap:
name: config-frontend
- name: pv-tmp-demo
persistentVolumeClaim:
claimName: pvc-persistent-tmp-demo
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/k8s-helm-example/templates/persistentVolumeClaim.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: pvc-persistent-tmp-demo
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Mi

0 comments on commit 2724e42

Please sign in to comment.