Skip to content

Commit e772378

Browse files
authored
Remove unnecessary clusterDomain option (#10)
1 parent fdc53ff commit e772378

File tree

5 files changed

+4
-17
lines changed

5 files changed

+4
-17
lines changed

charts/hdfs-datanode-k8s/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,13 @@ HDFS `datanodes` running inside a kubernetes cluster. See the other chart for
1818
$ kubectl label node YOUR-MASTER-NAME hdfs-datanode-exclude=yes
1919
```
2020

21-
2. Optionally, find the domain name of your k8s cluster that become part of
22-
pod and service host names. Default is `cluster.local`. See `values.yaml`
23-
for additional parameters to change. You can add them below in `--set`,
24-
as comma-separated entries.
25-
26-
3. Launch this helm chart, `hdfs-datanode-k8s`.
21+
2. Launch this helm chart, `hdfs-datanode-k8s`.
2722

2823
```
2924
$ helm install -n my-hdfs-datanode hdfs-datanode-k8s
3025
```
3126

32-
4. Confirm the daemons are launched.
27+
3. Confirm the daemons are launched.
3328

3429
```
3530
$ kubectl get pods | grep hdfs-datanode-

charts/hdfs-datanode-k8s/templates/datanode-daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
# This works only with /etc/resolv.conf mounted from the config map.
7171
# K8s version 1.6 will fix this, per https://github.com/kubernetes/kubernetes/pull/29378.
7272
- name: CORE_CONF_fs_defaultFS
73-
value: hdfs://hdfs-namenode-0.hdfs-namenode.default.svc.{{ .Values.clusterDomain }}:8020
73+
value: hdfs://hdfs-namenode-0.hdfs-namenode.default.svc.cluster.local:8020
7474
livenessProbe:
7575
initialDelaySeconds: 30
7676
httpGet:

charts/hdfs-datanode-k8s/values.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515

1616
# Default values for template variables.
1717

18-
# Set this to the domain name of your cluster that become part of POD and service
19-
# host names.
20-
clusterDomain: cluster.local
21-
2218
# A list of the local disk directories on cluster nodes that will contain the datanode
2319
# blocks. These paths will be mounted to the datanode as K8s HostPath volumes.
2420
# In a command line, the list should be enclosed in '{' and '}'.

charts/hdfs-resolv-conf/templates/resolve-conf-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ metadata:
2222
name: hdfs-resolv-conf
2323
data:
2424
resolv.conf: |
25-
search default.svc.{{ .Values.clusterDomain }} svc.{{ .Values.clusterDomain }} {{ .Values.clusterDomain }} {{ .Values.hostNetworkDomains }}
25+
search default.svc.cluster.local svc.cluster.local cluster.local {{ .Values.hostNetworkDomains }}
2626
nameserver {{ .Values.clusterDnsIP }}
2727
options ndots:5

charts/hdfs-resolv-conf/values.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,3 @@ clusterDnsIP: 10.96.0.10
2525
# If there are multiple names, then put them inside the quote separted by
2626
# spaces.
2727
hostNetworkDomains: ""
28-
29-
# Set this to the domain name of your cluster that becomes part of POD and service
30-
# host names.
31-
clusterDomain: cluster.local

0 commit comments

Comments
 (0)