summaryrefslogtreecommitdiff
path: root/inventory
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-08-15 22:42:01 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-08-16 00:36:07 +0200
commit20947da3f0961ea36ea62cb54ff675c2a60bcffd (patch)
treece62a0d4ad13b14695116503a4451e1027c3a65c /inventory
parentkubernetes/kubeadm: move node-ip kubelet parameter to kubeadm config (diff)
kubernetes/kubeadm: make k8s node name configureable
Diffstat (limited to 'inventory')
-rw-r--r--inventory/group_vars/k8s-emc/vars.yml2
-rw-r--r--inventory/group_vars/kubernetes-cluster/vars.yml2
-rw-r--r--inventory/hosts.ini4
3 files changed, 7 insertions, 1 deletions
diff --git a/inventory/group_vars/k8s-emc/vars.yml b/inventory/group_vars/k8s-emc/vars.yml
index 2a41746b..aa46fb56 100644
--- a/inventory/group_vars/k8s-emc/vars.yml
+++ b/inventory/group_vars/k8s-emc/vars.yml
@@ -1,4 +1,6 @@
---
+kubernetes_node_name: "{{ inventory_hostname | replace('ele-', '') }}"
+
kubernetes_version: 1.24.3
kubernetes_cri_tools_pkg_version: 1.24.2-00
kubernetes_container_runtime: containerd
diff --git a/inventory/group_vars/kubernetes-cluster/vars.yml b/inventory/group_vars/kubernetes-cluster/vars.yml
index edec4e3e..3b91f793 100644
--- a/inventory/group_vars/kubernetes-cluster/vars.yml
+++ b/inventory/group_vars/kubernetes-cluster/vars.yml
@@ -1,4 +1,6 @@
---
+kubernetes_node_name: "{{ inventory_hostname }}"
+
kubernetes_network_plugin_replaces_kube_proxy: false
kubernetes_network_plugin_variant: default
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index 9f1ad97f..1b6fb279 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -262,7 +262,9 @@ ele-emc-r0 host_name=emc-r0
[elevate-mediachannel-edge]
ele-emc-e01 host_name=emc-e01
ele-emc-e02 host_name=emc-e02
-#ele-emc-e03 host_name=emc-e03
+
+#[elevate-mediachannel_todelete]
+#ele-emc-e03 host_name=emc-e03 kubernetes_node_name=emc-e03
###############################