Created
October 21, 2020 02:33
-
-
Save andrewrynhard/3a3a93fbaea671064d24e7a5eb6e82ed to your computer and use it in GitHub Desktop.
This file contains 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
docker run -d -p 5000:5000 \ | |
-e REGISTRY_PROXY_REMOTEURL=https://registry-1.docker.io \ | |
--restart always \ | |
--name registry-docker.io registry:2 | |
docker run -d -p 5001:5000 \ | |
-e REGISTRY_PROXY_REMOTEURL=https://k8s.gcr.io \ | |
--restart always \ | |
--name registry-k8s.gcr.io registry:2 | |
docker run -d -p 5002:5000 \ | |
-e REGISTRY_PROXY_REMOTEURL=https://quay.io \ | |
--restart always \ | |
--name registry-quay.io registry:2.5 | |
docker run -d -p 5003:5000 \ | |
-e REGISTRY_PROXY_REMOTEURL=https://gcr.io \ | |
--restart always \ | |
--name registry-gcr.io registry:2 | |
make clean | |
make sfyra | |
make talos-artifacts | |
chmod +x _out/v0.7.0-alpha.7/talosctl-linux-amd64 | |
sudo -E ./_out/sfyra bootstrap cluster \ | |
--registry-mirrors docker.io=http://172.24.0.1:5000 \ | |
--registry-mirrors k8s.gcr.io=http://172.24.0.1:5001 \ | |
--registry-mirrors quay.io=http://172.24.0.1:5002 \ | |
--registry-mirrors gcr.io=http://172.24.0.1:5003 \ | |
--registry-mirrors ghcr.io=http://172.24.0.1:5004 | |
sudo -E ./_out/sfyra bootstrap capi | |
sudo -E ./_out/sfyra bootstrap servers | |
talosctl config nodes 172.24.0.2 | |
talosctl kubeconfig bootstrap | |
accept all servers (kubectl --kubeconfig bootstrap edit servers) | |
bash -c 'cat <<EOF | kubectl --kubeconfig bootstrap apply -f - | |
apiVersion: metal.sidero.dev/v1alpha1 | |
kind: Environment | |
metadata: | |
name: default | |
spec: | |
kernel: | |
url: "https://github.com/talos-systems/talos/releases/latest/download/vmlinuz" | |
sha512: "" | |
args: | |
- initrd=initramfs.xz | |
- page_poison=1 | |
- slab_nomerge | |
- slub_debug=P | |
- pti=on | |
- random.trust_cpu=on | |
- ima_template=ima-ng | |
- ima_appraise=fix | |
- ima_hash=sha512 | |
- console=tty0 | |
- console=ttyS1,115200n8 | |
- earlyprintk=ttyS1,115200n8 | |
- panic=30 | |
- printk.devkmsg=on | |
- talos.platform=metal | |
- talos.config=http://172.24.0.2:9091/configdata?uuid= | |
initrd: | |
url: "https://github.com/talos-systems/talos/releases/latest/download/initramfs.xz" | |
sha512: "" | |
EOF' | |
bash -c 'cat <<EOF | kubectl --kubeconfig bootstrap apply -f - | |
apiVersion: metal.sidero.dev/v1alpha1 | |
kind: ServerClass | |
metadata: | |
name: default | |
spec: | |
qualifiers: | |
cpu: | |
- manufacturer: QEMU | |
EOF' | |
(in another terminal): sudo -E ./_out/sfyra loadbalancer create --kubeconfig bootstrap --load-balancer-port 10000 --cluster-name demo | |
set -x CONTROL_PLANE_ENDPOINT http://172.24.0.1:10000 | |
set -x CONTROL_PLANE_SERVERCLASS default | |
set -x WORKER_SERVERCLASS default | |
set -x KUBERNETES_VERSION v1.19.3 | |
clusterctl config cluster demo -i sidero:v0.1.0-alpha.4 > demo.yaml | |
kubectl --kubeconfig bootstrap appy -f demo.yam |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment