K8s - DigitalOcean

Deploy Sampleapp on Kuberentes … Prerequisite Domain “kubbi.xyz”, ns1.digitalocean.com, ns2, ns3 … Digital Ocean Login Doku https://docs.digitalocean.com/products/kubernetes/getting-started/operational-readiness/ Build Kubbi Cluster Build Cluster with WebGUI or CLI via CLI time doctl kubernetes cluster create prod001 --region fra1 --node-pool "size=s-2vcpu-2gb;auto-scale=true;min-nodes=3;max-nodes=5" FRA1 3 Nodes 2 CPU 2 GB RAM 60 GB Disk Costs: 54 USD/Mt! Connecting and managing this cluster doctl kubernetes cluster kubeconfig save 4375b470-ebe8-4ccb-925a-345df364dfbd user@mac % doctl kubernetes cluster kubeconfig save 4375b470-ebe8-4ccb-925a-345df364dfbd Notice: Adding cluster credentials to kubeconfig file found in "/Users/user/.

K8s - Hetzner

Source https://www.youtube.com/watch?v=dEAtD9PVr_Q get Host Build a VM on Hetzner, Ubuntu 22.04 Patch Patch the Box apt-get update apt-get --fix-broken install apt-get -y upgrade apt-get install lynx uptimed Kurl Small give a try with kurl. the Open Source Kubernetes Installer ;) time curl https://kurl.sh/ccedeec |bash |tee -a install.md real 4m5.149s user 1m26.425s sys 0m22.249s Kurl Full same as small, but with most options enabled curl https://kurl.sh/13609c3 | sudo bash Ressource Warning got a warning as i took a bit a small VM (CX21).

K8s on Debian12

Install Debian 12 or install Debian 11.7 and Upgrade to 12 Setup 3 Nodes k8s-master k8s-worker1 k8s-worker2 Locale export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 Kubernetes https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" Swap Off swapoff -a sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab Install FW apt-get install ufw ufw enable Master ufw allow 22/tcp ufw allow 6443/tcp ufw allow 2379/tcp ufw allow 2380/tcp ufw allow 10250/tcp ufw allow 10251/tcp ufw allow 10252/tcp ufw allow 10255/tcp ufw reload Worker ufw allow 22/tcp ufw allow 10250/tcp ufw allow 30000:32767/tcp ufw reload Containerd cat << EOF >> /etc/modules-load.

K8s - Kubernetes

Show Contexts kubectl config get-contexts CURRENT NAME CLUSTER AUTHINFO NAMESPACE * do-fra1-k8s-1-24-xxxxxxxxxxx do-fra1-k8s-1-24-xxxxxxxxxxx do-fra1-k8s-1-24-xxxxxxxxxxxxxxxxx do-fra1-k8s-1-25-xxxxxxxxxxx do-fra1-k8s-1-25-xxxxxxxxxxx do-fra1-k8s-1-25-xxxxxxxxxxxxxxxxx do-fra1-k8s-xxxxx do-fra1-k8s-xxxxx do-fra1-k8s-xxxxxxxxxxx Delete old Contexts kubectl config delete-context do-fra1-k8s-xxxxx Any Comments ? sha256: f12aa09936d175b3e23f2eebc1c152675d68dce6096b9ec02d7f8429b954b4fe