k3s-ansible/roles/worker/files/k3s-agent.sh
2024-11-23 22:46:13 +01:00

5 lines
109 B
Bash

#!/bin/bash
export K3S_TOKEN="$1"
curl -sfL https://get.k3s.io | sh -s - agent --server "https://${2}:6443"