Skip to content

Commit 2a1edc1

Browse files
committed
set hdfs datanode to 3
1 parent b2bafb0 commit 2a1edc1

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

charts/hdfs/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ maintainers:
1111
name: hdfs
1212
sources:
1313
- https://github.com/apache/hadoop
14-
version: 0.1.1
14+
version: 0.1.2

charts/hdfs/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ The following table lists the configurable parameters of the Hadoop chart and th
4646
| antiAffinity | string | `"soft"` | |
4747
| conf.coreSite | string | `nil` | |
4848
| conf.hdfsSite."dfs.replication" | int | `3` | |
49-
| dataNode.pdbMinAvailable | int | `1` | |
50-
| dataNode.replicas | int | `1` | |
49+
| dataNode.pdbMinAvailable | int | `3` | |
50+
| dataNode.replicas | int | `3` | |
5151
| dataNode.resources.limits.cpu | string | `"1000m"` | |
5252
| dataNode.resources.limits.memory | string | `"2048Mi"` | |
5353
| dataNode.resources.requests.cpu | string | `"10m"` | |
@@ -73,6 +73,7 @@ The following table lists the configurable parameters of the Hadoop chart and th
7373
| ingress.nameNode.hosts[0] | string | `"hdfs-namenode.local"` | |
7474
| ingress.nameNode.labels | object | `{}` | |
7575
| ingress.nameNode.path | string | `"/"` | |
76+
| nameNode.replicas | int | `1` | |
7677
| nameNode.pdbMinAvailable | int | `1` | |
7778
| nameNode.port | int | `8020` | |
7879
| nameNode.resources.limits.cpu | string | `"1000m"` | |

charts/hdfs/templates/hdfs-nn-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ spec:
1515
app.kubernetes.io/component: namenode
1616
{{- include "hdfs.labels" . | nindent 6 }}
1717
serviceName: {{ include "hdfs.fullname" . }}-namenode
18-
replicas: 1
18+
replicas: {{ .Values.nameNode.replicas }}
1919
template:
2020
metadata:
2121
labels:

charts/hdfs/values.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ httpfs:
2222
adminPort: 14001
2323

2424
nameNode:
25-
port: 8020
25+
replicas: 1
2626
pdbMinAvailable: 1
27+
port: 8020
2728
resources:
2829
requests:
2930
memory: "256Mi"
@@ -32,8 +33,8 @@ nameNode:
3233
memory: "2048Mi"
3334
cpu: "1000m"
3435
dataNode:
35-
replicas: 1
36-
pdbMinAvailable: 1
36+
replicas: 3
37+
pdbMinAvailable: 3
3738
resources:
3839
requests:
3940
memory: "256Mi"

0 commit comments

Comments
 (0)