You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{- range $index, $path := .Values.dataNodeHostPath }}
19
+
apiVersion: v1
20
+
kind: PersistentVolumeClaim
21
+
metadata:
22
+
# This name uniquely identifies the PVC. Will be used in deployment below.
23
+
name: hdfs-data-volume-claim-{{ $index }}
24
+
labels:
25
+
app: hdfs-name-storage-claim-{{ $index }}
26
+
spec:
27
+
# Read more about access modes here: http://kubernetes.io/docs/user-guide/persistent-volumes/#access-modes
28
+
accessModes:
29
+
- ReadWriteOnce
30
+
resources:
31
+
# This is the request for storage. Should be available in the cluster.
32
+
requests:
33
+
storage: 5Gi
34
+
# Uncomment and add storageClass specific to your requirements below. Read more https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1
35
+
#storageClassName:
36
+
---
37
+
{{- end }}
18
38
apiVersion: extensions/v1beta1
19
39
kind: DaemonSet
20
40
metadata:
@@ -175,8 +195,8 @@ spec:
175
195
volumes:
176
196
{{- range $index, $path := .Values.dataNodeHostPath }}
Copy file name to clipboardExpand all lines: charts/hdfs-simple-namenode-k8s/templates/namenode-statefulset.yaml
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,24 @@ spec:
28
28
selector:
29
29
app: hdfs-namenode
30
30
---
31
+
apiVersion: v1
32
+
kind: PersistentVolumeClaim
33
+
metadata:
34
+
# This name uniquely identifies the PVC. Will be used in deployment below.
35
+
name: hdfs-name-volume-claim
36
+
labels:
37
+
app: hdfs-name-storage-claim
38
+
spec:
39
+
# Read more about access modes here: http://kubernetes.io/docs/user-guide/persistent-volumes/#access-modes
40
+
accessModes:
41
+
- ReadWriteOnce
42
+
resources:
43
+
# This is the request for storage. Should be available in the cluster.
44
+
requests:
45
+
storage: 5Gi
46
+
# Uncomment and add storageClass specific to your requirements below. Read more https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1
0 commit comments