Praktikum Kubernetes
Download ISO ubuntu server
https://mirror.unpad.ac.id/iso/ubuntu/20.04/ubuntu-20.04.6-live-server-amd64.iso
Download virtualbox
https://www.virtualbox.org/wiki/Downloads
Repository ubuntu 20.04 lokal
deb http://kebo.pens.ac.id/ubuntu/ focal main restricted universe multiverse
deb http://kebo.pens.ac.id/ubuntu/ focal-updates main restricted universe multiverse
deb http://kebo.pens.ac.id/ubuntu/ focal-security main restricted universe multiverse
deb http://kebo.pens.ac.id/ubuntu/ focal-backports main restricted universe multiverse
deb http://kebo.pens.ac.id/ubuntu/ focal-proposed main restricted universe multiverse
Topologi server
Praktikum
- Install kubadm, kubelet and kubectl
kubeadm: perintah untuk mem-bootstrap cluster.
kubelet: komponen yang berjalan pada semua mesin di cluster Anda dan melakukan hal-hal seperti memulai pod dan container.
kubectl: baris perintah yang digunakan untuk berkomunikasi dengan cluster Anda.
- Update paket dan library yang diperlukan dari repositori
sudo apt-get update # apt-transport-https may be a dummy package; if so, you can skip that package sudo apt-get install -y apt-transport-https ca-certificates curl gpg
- Download the public signing key untuk Kubernetes dari paket repositori
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
- Tambahkan appropriate Kubernetes pada
apt
repository
# This overwrites any existing configuration in /etc/apt/sources.list.d/kubernetes.list
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
- Lakukan instalasi
sudo apt-get update sudo apt-get install -y kubelet kubeadm kubectl sudo apt-mark hold kubelet kubeadm kubectl
- sadsad
- asdsad
- asdasd