k3s-ansible/roles/master-secondary/files/k3s-secondary-master.sh

5 lines
125 B
Bash
Raw Normal View History

2024-11-23 21:46:13 +00:00
#!/bin/bash
export K3S_TOKEN="$1"
curl -sfL https://get.k3s.io | sh -s - server --cluster-init --server "https://${2}:6443"