Skip to content

emka.web.id

writing knowledge, recording civilization

Menu
  • Home
  • Tutorial
  • Search
Menu

Cara Mudah Buat YAMK Kubernetes & Docker dengan Cyclops

Posted on June 8, 2024

Dunia pengembangan aplikasi kini semakin dinamis. Teknologi kontainer dan orkestrasi kontainer seperti Docker dan Kubernetes menjadi primadona. Artikel ini akan mengajak Anda, para pemula, untuk mengenal dan menggunakan Docker dan Kubernetes secara sederhana.

Mengenal Docker: Kemas dan Kirim Aplikasi dengan Mudah

Docker ibarat kotak ajaib yang dapat mengemas sebuah aplikasi beserta dependensinya menjadi sebuah unit yang ringkas dan mandiri. Ini membuat aplikasi menjadi lebih mudah untuk dijalankan di berbagai lingkungan, termasuk cloud computing.

Instalasi Docker di Ubuntu:

Perintah berikut akan membantu Anda menginstall Docker di sistem operasi Ubuntu:

# Perbarui daftar paket terlebih dahulu
sudo apt-get update

# Tambahkan key GPG resmi Docker
sudo apt-get install ca-certificates curl
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

# Tambahkan repositori Docker ke sources.list
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list

# Perbarui daftar paket dan install Docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# Verifikasi instalasi:
sudo docker version

Menjalankan Aplikasi dengan Docker:

Setelah terinstall, Anda dapat menjalankan image (citra) aplikasi yang tersedia di Docker Hub. Untuk menarik image, Anda perlu memiliki akun di Docker Hub (https://hub.docker.com/signup).

Berikut beberapa perintah dasar untuk menggunakan Docker:

  • docker images – menampilkan semua image yang tersedia di sistem Anda.
  • docker run <nama_image> – menjalankan image yang diinginkan. Contoh: docker run hello-world
  • docker ps – menampilkan kontainer yang sedang berjalan.
  • docker ps -a – menampilkan semua kontainer, termasuk yang sudah berhenti.
  • docker start <nama_kontainer> – memulai kontainer yang sebelumnya dihentikan.
  • docker stop <nama_kontainer> – menghentikan kontainer yang sedang berjalan.

Pengenalan Kubernetes: Orkestrasi Kontainer untuk Skala Besar

Ketika Anda memiliki banyak kontainer yang bekerja sama menjalankan sebuah aplikasi, saat itulah Kubernetes hadir untuk membantu mengelolanya. Kubernetes adalah platform orkestrasi kontainer open-source yang mampu mengautomasi deployment, scaling, dan manajemen kontainer.

Menjalankan Kubernetes Lokal dengan Minikube:

Minikube adalah tool yang memudahkan kita menjalankan cluster Kubernetes lokal di mesin development. Berikut langkah menginstall Minikube:

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && sudo install minikube-linux-amd64 /usr/local/bin/minikube
minikube config set driver docker
minikube start --driver=docker

Memulai dengan Cyclops: Antarmuka Ramah untuk Konfigurasi Kubernetes

Konfigurasi Kubernetes menggunakan file YAML yang bisa jadi rumit bagi pemula. Cyclops hadir sebagai solusi. Cyclops adalah tool open-source yang menyediakan antarmuka web yang mudah digunakan untuk mengkonfigurasi aplikasi Anda yang akan berjalan di Kubernetes.

Untuk menjalankan Cyclops, Anda hanya perlu menjalankan 2 perintah berikut:

kubectl apply -f https://raw.githubusercontent.com/cyclops-ui/cyclops/v0.6.2/install/cyclops-install.yaml && kubectl apply -f https://raw.githubusercontent.com/cyclops-ui/cyclops/v0.6.2/install/demo-templates.yaml

Tunggu beberapa saat hingga cluster Kubernetes Anda menjalankan Cyclops. Anda dapat mengeceknya dengan perintah:

kubectl get po -A

Akses Cyclops di Browser:

Setelah Cyclops berjalan, Anda perlu melakukan port-forwarding untuk mengaksesnya dari browser. Jalankan perintah berikut:

kubectl port-forward svc/cyclops-ui 3000:3000 -n cyclops

Sekarang, Anda dapat mengakses antarmuka Cyclops di http://localhost:3000. Selamat mencoba!

Terbaru

  • Stop Overengineering Your Infrastructure: Docker Compose vs Kubernetes Resources
  • Traefik 3.8 New Feature: Yaegi v2 and the Gateway API Finally Make Custom Plugins Worth the Effort
  • Raspberry Pi OS: Why the November Update is a Win for Minimalism
  • React Can useState Hook Explained in 60 Seconds
  • How Do You Build an MMO Solo?
  • NixOS 26.11 “Zokor” Might Be the Most Practical Release for Desktop Power Users Yet
  • Why Your AWS Bill Can Just Tripled Overnight?
  • Why Indonesia’s Battle with Google is a Dangerous Game of Chicken
  • SYS010 Malware Explained: How Malvertising on Meta Bypasses MFA and Hijacks Your Digital Identity
  • Linux Mint 27 Adrien: Why This Version Jump is Make Sense?
  • NFS2ROOT: A 12-Year Reminder That Your Linux Kernel Is Never Truly Safe
  • The Death of Browsing and the Rise of the “Answer Engine Economy”
  • What’s new in Proxmox VE 9.3?
  • Why Your Morning Routine Needs an API: The Art of iOS Automation
  • Proof of Work is the New Certification: 5 AWS Projects to Build Before 2027
  • Omarchy is Our first agentic operating system
  • The Death of Popper.js: Why CSS Anchor Positioning is the New Standard for Connected UI
  • Why Your 2027 Cloud Career Depends on Moving Beyond Basic AWS Services
  • Why Discord is Ditching Electron for Rust: Is GPUi Actually the Future?
  • The End of the KDE Era: Why KaOS 2026.11 Is a Bold, Dangerous Gamble
  • The $2 Billion Code: Why GTA 6 is a Technical Miracle and a Hardware Nightmare
  • LibreDB Studio Explained
  • PHP 8.6 Is Officially Out: What’s New, What Breaks, and How We’re Upgrading
  • Rewriting Legacy Apps: 4 Data Migration Strategies That Actually Work
  • How to Install Clean Windows 11 Without Any Bloatware (Step-by-Step Guide)
  • IP Address Rate Limiting is Flawed—Here is the Right Way to Do It
  • Are Fedora 45 Stuck in Its Comfort Zone? A Short Review
  • Hacktober Recap 2026, A Month Full of Dangerous CVE: eMudhra, Gitlab, Brotli, PHP, NodeJS etc
  • 7 Skill Keamanan Jaringan yang Membuat Network Engineer Makin Dibutuhkan
  • How to Spin Up Disposable macOS and Linux VMs on Apple Silicon with TartVM
  • Canonical: Ubuntu coming soon to Snapdragon X2 Series platforms
  • Finally, wolfSSL adds post-quantum algorithms!
  • How to Run Gemma Embedding Models Using Docker
  • Deploy Nginx Rootful Container with Podman
  • How to Sandboxing Browser on Linux Desktop with Flatpak
  • When to use an MCP server vs CLI with DevTools for agents
  • Your MCP Server Is a Search Result Now
  • AI Roadmap: How To Become An Agentic Operations Manager In 2027
  • What Does a Machine Learning Data Scientist Do?
  • How To Use T3 Code

©2026 emka.web.id | Design: Newspaperly WordPress Theme