From 880de1a2d7bbedde82dcf4cd22e36f429d8351df Mon Sep 17 00:00:00 2001 From: Tarashish Mishra Date: Wed, 18 Sep 2024 16:05:53 +0530 Subject: [PATCH] Make sure nfs is included in k8s resource names --- helm/jupyter-home-nfs/templates/NOTES.txt | 2 +- helm/jupyter-home-nfs/templates/deployment.yaml | 4 ++-- helm/jupyter-home-nfs/templates/persistent-volume-claim.yaml | 4 ++-- helm/jupyter-home-nfs/templates/persistent-volume.yaml | 2 +- helm/jupyter-home-nfs/templates/service.yaml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm/jupyter-home-nfs/templates/NOTES.txt b/helm/jupyter-home-nfs/templates/NOTES.txt index a210b5c..bfea353 100644 --- a/helm/jupyter-home-nfs/templates/NOTES.txt +++ b/helm/jupyter-home-nfs/templates/NOTES.txt @@ -8,4 +8,4 @@ Using dynamic provisioning. {{- end }} Your NFS server is now available inside the cluster at the following address: -{{ .Release.Name }}-service.{{ .Release.Namespace }}.svc.cluster.local +{{ .Release.Name }}-nfs-service.{{ .Release.Namespace }}.svc.cluster.local diff --git a/helm/jupyter-home-nfs/templates/deployment.yaml b/helm/jupyter-home-nfs/templates/deployment.yaml index 71c677b..0d54440 100644 --- a/helm/jupyter-home-nfs/templates/deployment.yaml +++ b/helm/jupyter-home-nfs/templates/deployment.yaml @@ -1,7 +1,7 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ .Release.Name }}-deployment + name: {{ .Release.Name }}-nfs-deployment spec: replicas: 1 selector: @@ -38,4 +38,4 @@ spec: volumes: - name: home-directories persistentVolumeClaim: - claimName: {{ .Release.Name }}-home-directories-claim \ No newline at end of file + claimName: {{ .Release.Name }}-nfs-home-directories-claim \ No newline at end of file diff --git a/helm/jupyter-home-nfs/templates/persistent-volume-claim.yaml b/helm/jupyter-home-nfs/templates/persistent-volume-claim.yaml index bb9ce93..13b5da0 100644 --- a/helm/jupyter-home-nfs/templates/persistent-volume-claim.yaml +++ b/helm/jupyter-home-nfs/templates/persistent-volume-claim.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: {{ .Release.Name }}-home-directories-claim + name: {{ .Release.Name }}-nfs-home-directories-claim spec: accessModes: {{- toYaml .Values.persistentVolume.accessModes | nindent 4 }} @@ -11,5 +11,5 @@ spec: storage: {{ .Values.persistentVolume.size }} storageClassName: "" {{- if or .Values.eks.enabled .Values.gke.enabled }} - volumeName: {{ .Release.Name }}-home-directories-volume + volumeName: {{ .Release.Name }}-nfs-home-directories-volume {{- end }} diff --git a/helm/jupyter-home-nfs/templates/persistent-volume.yaml b/helm/jupyter-home-nfs/templates/persistent-volume.yaml index 046c66c..bcb99f0 100644 --- a/helm/jupyter-home-nfs/templates/persistent-volume.yaml +++ b/helm/jupyter-home-nfs/templates/persistent-volume.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: PersistentVolume metadata: - name: {{ .Release.Name }}-home-directories-volume + name: {{ .Release.Name }}-nfs-home-directories-volume spec: capacity: storage: {{ .Values.persistentVolume.size }} diff --git a/helm/jupyter-home-nfs/templates/service.yaml b/helm/jupyter-home-nfs/templates/service.yaml index 247ae5e..6152793 100644 --- a/helm/jupyter-home-nfs/templates/service.yaml +++ b/helm/jupyter-home-nfs/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ .Release.Name }}-service + name: {{ .Release.Name }}-nfs-service spec: type: {{ .Values.service.type }} ports: