Skip to content
Tutorial emka
Menu
  • Home
  • Debian Linux
  • Ubuntu Linux
  • Red Hat Linux
Menu

Tutorial Kubernetes dengan Kind (Kubernetes in Docker)

Posted on January 29, 2024

Kind, singkatan dari Kubernetes IN Docker, adalah alat yang dirancang untuk menyederhanakan proses pembuatan kluster Kubernetes untuk pengembangan dan pengujian lokal. Dengan memanfaatkan kontainer Docker, Kind memungkinkan pengguna untuk dengan cepat dan efisien mengaktifkan kluster Kubernetes di mesin lokal mereka. Ini memberikan cara mudah untuk bereksperimen dengan berbagai versi, konfigurasi, dan skenario Kubernetes tanpa perlu infrastruktur eksternal. Fleksibilitas dan kecepatan Kind menjadikannya pilihan ideal bagi pengembang dan pengujian yang ingin mereplikasi lingkungan Kubernetes secara ringan dan portabel.

Menjelajahi Kubernetes dengan Kind

Kind (Kubernetes IN Docker) memudahkan pembuatan kluster Kubernetes untuk pengujian dan pengembangan. Mari kita coba mengatur Kind dan bereksperimen dengan konfigurasi yang berbeda.

Install Kind

Mulailah dengan menginstal Kind. Kunjungi halaman Kind Quick Start untuk petunjuk instalasi.

Buat Kluster Kind

Gunakan perintah berikut untuk membuat kluster Kind dasar:

$ kind create cluster –name test-kind

Perintah ini mengatur kluster default dengan satu node plane kontrol. Ini adalah cara termudah untuk mengaktifkan kluster Kubernetes.

Kind akan menggunakan Docker sebagai penyedia default. Sekarang, jika Anda ingin menggunakan Podman sebagai penyedia, Anda dapat menggunakan metode berikut:

$ KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster –name test-kind 

Namun, kita ingin membuat kluster Kubernetes multi-node dan bukan hanya satu node di sini. Untuk itu, kita perlu menggunakan file konfigurasi kluster. Sebelum itu, mari hapus kluster sebagai berikut.

$ kind delete cluster

Sesuaikan Kluster Anda dengan File Konfigurasi

Buat file konfigurasi, misalnya, ~/.kube/kind_cluster, dengan konten berikut:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
- role: worker 

Kemudian, buat kluster menggunakan konfigurasi ini:

$ kind create cluster –config ~/.kube/kind_cluster

Anda sekarang dapat menggunakan kluster Anda dengan:

kubectl cluster-info –context kind-kind

Tentukan Versi Kubernetes

Untuk menggunakan versi Kubernetes tertentu, berikan flag –image. Misalnya, perintah berikut akan membuat kluster dengan versi Kubernetes 1.29.

kind create cluster  
  --name my-kind-cluster  
  --config ~/.kube/kind_cluster  
  --image kindest/node:v1.29.0@sha256:eaa1450915475849a73a9227b8f201df25e55e268e5d619312131292e324d570 

Anda dapat mengganti v1.29.0 dan SHA256 dengan versi yang diinginkan.

Akses Kluster

Setelah kluster dibuat, Kind memberikan petunjuk untuk mengaksesnya. Atur konteks kubectl dan jelajahi kluster Anda:

$ kubectl cluster-info –context kind-my-kind-cluster

Plane kontrol Kubernetes berjalan di https://127.0.0.1:33805

CoreDNS berjalan di https://127.0.0.1:33805/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

Untuk debug dan mendiagnosis masalah kluster lebih lanjut, gunakan ‘kubectl cluster-info dump’.

$ kubectl get nodes

NAME                            STATUS   ROLES           AGE   VERSION

my-kind-cluster-control-plane   Ready    control-plane   64s   v1.29.0

my-kind-cluster-worker          Ready    <none>          40s   v1.29.0

my-kind-cluster-worker2         Ready    <none>          41s   v1.29.0

Sekarang Anda siap memanfaatkan kekuatan Kubernetes 1.29 dengan Kind!

Recent Posts

  • What is the Microsoft Teams Error “We Couldn’t Connect the Call” Error?
  • Why Does the VirtualBox System Service Terminate Unexpectedly? Here is the Full Definition
  • Why is Your Laptop Touchpad Overheating? Here are the Causes and Fixes
  • How to Disable All AI Features in Chrome Using Windows 11 Registry
  • How to Avoid Problematic Windows Updates: A Guide to System Stability
  • What is Microsoft Visual C++ Redistributable and How to Fix Common Errors?
  • What is the 99% Deletion Bug? Understanding and Fixing Windows 11 File Errors
  • How to Add a Password to WhatsApp for Extra Security
  • How to Recover Lost Windows Passwords with a Decryptor Tool
  • How to Fix Python Not Working in VS Code Terminal: A Troubleshooting Guide
  • Game File Verification Stuck at 0% or 99%: What is it and How to Fix the Progress Bar?
  • Why Does PowerPoint Underline Hyperlinks? Here is How to Remove Them
  • AI Bug Hunting with Semgrep
  • What is the Excel Power Query 0xc000026f Error?
  • How to Build Your Own Homelab AI Supercomputer 2026
  • How to Enable SSH in Oracle VirtualBox for Beginners
  • How to Intercept Secret IoT Camera Traffic
  • Build Ultra-Fast and Tiny Desktop Apps with Electrobun: A Beginner’s Guide
  • The Ultimate 2026 Coding Roadmap: How to Master Software Engineering with AI Agents
  • How to Master Cloud Infrastructure with Ansible and Terraform
  • How to Fix VirtualBox Stuck on Saving State: A Complete Guide
  • How to Run Windows Apps on Linux: A Complete Guide to WinBoat, WINE, and Beyond
  • Build Your Own AI Development Team: Deploying OpenClaw and Claude Code on a VPS!
  • How to Measure Real Success in the Age of AI: A Guide to Software Metrics That Actually Matter
  • Kubernetes Traffic Tutorial: How to Create Pod-Level Firewalls (Network Policies)
  • Inilah Rahasia Perbaiki Algoritma Video YouTube yang Mulai Sepi
  • Kenapa Cicilan di Bank Syariah Itu Tetap?
  • Inilah 7 Produk Digital Paling Realistis untuk Kalian yang Mau Jualan Online Tahun Ini!
  • Inilah 4 Strategi Memilih Niche SEO Terbaik Supaya Blog Kalian Cepat Ranking
  • Ini Trik Supaya Pengunjung Toko Online Kalian Jadi Pembeli Setia Pakai Omnisend!
  • How to Use Orbax Checkpointing with Keras and JAX for Robust Training
  • How to Automate Any PDF Form Using the Power of Manus AI
  • How to Training Your Own YOLO26 Object Detection Model!
  • How to Build a Full-Stack Mobile App in Minutes with YouWare AI
  • How to Create Consistent Characters and Cinematic AI Video Production with Seedance
  • Apa itu Spear-Phishing via npm? Ini Pengertian dan Cara Kerjanya yang Makin Licin
  • Apa Itu Predator Spyware? Ini Pengertian dan Kontroversi Penghapusan Sanksinya
  • Mengenal Apa itu TONESHELL: Backdoor Berbahaya dari Kelompok Mustang Panda
  • Siapa itu Kelompok Hacker Silver Fox?
  • Apa itu CVE-2025-52691 SmarterMail? Celah Keamanan Paling Berbahaya Tahun 2025
©2026 Tutorial emka | Design: Newspaperly WordPress Theme