talosctl gen config talos-kubevirt https://talos-kubevirt.home.arpa:6443 --additional-sans 192.168.1.70,talos-kubevirt --install-disk /dev/vda --output-dir $(pwd)/talos
❯ cat deploy.sh
#kubectl --kubeconfig $HOME/.kube/poweredge delete -f ./kubevirt/
#sleep 12
#kubectl --kubeconfig $HOME/.kube/poweredge apply -f ./kubevirt/
#sleep 120
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
#!/usr/bin/env bash | |
# Creating Tumbleweed Template | |
wget https://download.opensuse.org/tumbleweed/appliances/openSUSE-Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2 | |
qm create 9000 --name tumbleweed --cores 2 --memory 4096 --net0 virtio,bridge=vmbr0 | |
qm importdisk 9000 openSUSE-Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2 local-lvm | |
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0 | |
qm set 9000 --boot c --bootdisk virtio0 | |
qm set 9000 --agent 1 | |
qm set 9000 --vga qxl |
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
name: Check comments for /commands | |
on: | |
issue_comment: | |
types: [created] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest |
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
#!/bin/bash | |
# Creates a Ubuntu Cloud-Init Ready VM Template in Proxmox | |
# | |
# Update the image name and URL for Ubuntu 22.04 LTS | |
export IMAGENAME="jammy-server-cloudimg-amd64.img" | |
export IMAGEURL="https://cloud-images.ubuntu.com/jammy/current/" | |
export STORAGE="local-zfs-cache" | |
export VMNAME="ubuntu-2204-cloudinit-template" | |
export VMID=902204 |
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
version: '3' | |
services: | |
database: | |
image: 'mongo' | |
container_name: 'my-mongo-container' # give your contatner a name | |
environment: | |
- MONGO_INITDB_DATABASE=your-database-name # database name you want to make | |
- MONGO_INITDB_ROOT_USERNAME=my-container-root-username # set your container root username | |
- MONGO_INITDB_ROOT_PASSWORD=secret # set your contatner root password | |
volumes: |
VyOS is an open source network operating system based on Debian GNU/Linux. It provides a free routing platform that competes directly with other commercially available solutions from well known network providers.[W]
The entire configuration is managed through a CLI that mimic the JunOS cli behaviour. (And I really like that :)
It embeds tons of network features. Most useful with a scaleway deployment will probably be :
- VPN: Ipsec, Wireguard, Openvpn..
- Routing protocols: BGP, OSPF..
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
# Install Ubiquiti Unifi Controller on Ubuntu 20.04. | |
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020. | |
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps. | |
sudo apt update | |
sudo apt install --yes apt-transport-https | |
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list | |
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg |
multipass from Canoncial is like Docker Desktop, but for Ubuntu and works on MacOS, Linux and Windows.
Use-case:
We can get a Kubernetes cluster with k3s in a very short period of time. We can use this for workshops and building labs, and for R&D, including testing.
- Get multipass.run
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
#!/bin/bash | |
K3S_VERSION=v0.8.0 | |
BIN_DIR=/usr/local/bin | |
# for master | |
#cat > /opt/k3s_env_put.sh << 'EOF' | |
##!/bin/bash | |
# | |
#ip=$(hostname | cut -d'.' -f1 | cut -d'-' -f2,3,4,5 | tr '-' '.') |
NewerOlder