mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-20 10:34:25 +00:00
Imported scripts from private repository and enforced the naming convention
This commit is contained in:
17
scripts/k3s/install.bash
Normal file
17
scripts/k3s/install.bash
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# https://k3s.io/
|
||||
|
||||
set -e
|
||||
|
||||
curl "https://github.com/k3s-io/k3s/releases/download/v1.19.7%2Bk3s1/k3s" \
|
||||
--location \
|
||||
--remote-name
|
||||
|
||||
sudo k3s server &
|
||||
# Kubeconfig is written to /etc/rancher/k3s/k3s.yaml
|
||||
sudo k3s kubectl get node
|
||||
|
||||
# On a different node run the below.
|
||||
# NODE_TOKEN comes from /var/lib/rancher/k3s/server/node-token on your server
|
||||
sudo k3s agent --server https://myserver:6443 --token ${NODE_TOKEN}
|
||||
Reference in New Issue
Block a user