|
i know it work when i pass it as argument, i see that it must work also as part of config file |
Answered by
brandond
Jul 1, 2026
Replies: 2 comments 3 replies
|
Please show how exactly you are putting it in config.yaml. "It doesn't work" without an example of what you're actually doing isn't very helpful. |
1 reply
yes i read https://docs.k3s.io/installation/configuration#configuration-file and i followd the syntax i put it as cat > /etc/rancher/k3s/config.yaml <<EOF
node-ip: $MASTER_IP
flannel-iface: "eth1"
tls-san:
- $MASTER_IP
node-taint:
- "node-role.kubernetes.io/control-plane=:NoSchedule"
write-kubeconfig-mode: 644
EOFand also in worker file cat > /etc/rancher/k3s/config.yaml <<EOF
server: "https://$MASTER_IP:6443"
token: "$TOKEN"
node-ip: "$AGENT_IP"
flannel-iface: eth1
EOF |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, confirm that you have read: https://docs.k3s.io/installation/configuration#configuration-file