use yamlencode for k3s configs...

...and remove the now, hopefully unneeded workaround for
agent.conf, all values are in config.yaml now
This commit is contained in:
phaer
2022-02-07 12:56:13 +01:00
parent e2d1ed3068
commit 960311ebd4
7 changed files with 29 additions and 69 deletions

View File

@@ -1,3 +0,0 @@
SERVER_URL="${server_url}"
NODE_TOKEN="${node_token}"
AGENT_OPTS=

View File

@@ -1,4 +0,0 @@
node-ip: ${node_ip}
kubelet-arg: "cloud-provider=external"
flannel-iface: eth1
node-name: ${node_name}

View File

@@ -1,16 +0,0 @@
cluster-init: true
disable-cloud-controller: true
disable:
- servicelb
- local-storage
flannel-iface: eth1
node-ip: ${node_ip}
advertise-address: ${node_ip}
tls-san: ${node_ip}
kubelet-arg: "cloud-provider=external"
token: ${token}
node-name: ${node_name}
%{ if !allow_scheduling_on_control_plane }
node-taint:
- node-role.kubernetes.io/master:NoSchedule
%{ endif }

View File

@@ -1,16 +0,0 @@
server: ${first_control_plane_url}
disable-cloud-controller: true
disable:
- servicelb
- local-storage
flannel-iface: eth1
node-ip: ${node_ip}
advertise-address: ${node_ip}
tls-san: ${node_ip}
kubelet-arg: "cloud-provider=external"
token: ${token}
node-name: ${node_name}
%{ if !allow_scheduling_on_control_plane }
node-taint:
- node-role.kubernetes.io/master:NoSchedule
%{ endif }