curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Verify number of args expected: 1 | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <network_data.json>" | |
exit 1 | |
fi | |
NETWORK_DATA_FILE=$1 |
- Reference:
https://vmguru.com/2021/04/how-to-install-rancher-on-k3s/
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
kubectl create namespace cattle-system
https://jhouse0317.tistory.com/149?category=940906
module github.com/alknopfler/cli-ztp-deployment
Code:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<-Done channel | |
import ( | |
"fmt" | |
) | |
//converts a list of strings to a channel | |
func stringChain(done <-chan struct{}, strs ...string) <-chan string { | |
out := make(chan string) | |
go func() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parsing arbitrary JSON using interfaces in Go | |
// Demonstrates how to parse JSON with abritrary key names | |
// See https://blog.golang.org/json-and-go for more info on generic JSON parsing | |
package main | |
import ( | |
"encoding/json" | |
"fmt" |
This is the fix for the error in mac os to run virt-manager:
https://theworldofrafex.blog/2017/12/13/instalando-virt-manager-en-mac-os-high-sierra-10-13/
NewerOlder