Skip to content

Instantly share code, notes, and snippets.

View cjlaidevlife's full-sized avatar
:shipit:
i am a site reboot engineer.

Chun-Jing, Lai cjlaidevlife

:shipit:
i am a site reboot engineer.
  • Taiwan
View GitHub Profile
@cjlaidevlife
cjlaidevlife / k3s-multipass.sh
Created July 29, 2020 08:49 — forked from lucj/k3s-multipass.sh
Setup a k3s kubernetes cluster using Multipass VMs
for node in node1 node2 node3;do
multipass launch -n $node
done
# Init cluster on node1
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
# Get node1's IP
IP=$(multipass info node1 | grep IPv4 | awk '{print $2}')
# To mounting an iso image on RHEL8.5 Linux
[RHEL8.5-BASEOS]
name=rhel8-baseos
baseurl=file:///mnt/dvd/BaseOS
gpgcheck=1
enabled=1
[RHEL8.5-APPSTREAM]
name=rhel8-appstream
@cjlaidevlife
cjlaidevlife / install_unstable_podman.sh
Last active October 15, 2022 05:55
install unstable version podman on ubuntu
#!/bin/bash
# describe: ubuntu install the unstable version with podman.
# reference: https://github.com/containers/podman.io/pull/552/files
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/Debian_Unstable/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:unstable.list
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/unstable/Debian_Unstable/Release.key" | sudo apt-key add -
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install podman