Skip to content

emka.web.id

writing knowledge, recording civilization

Menu
  • Home
  • Tutorial
  • Search
Menu

Tutorial Kubero: Instalasi Kubero di Kubernetes Cluster

Posted on May 19, 2024

Ingin deploy aplikasi di Kubernetes dengan mudah? Kubero adalah solusinya! Artikel ini akan memandu Anda melalui instalasi Kubero, termasuk komponen yang diperlukan dan langkah-langkah instalasi.

Persiapan Sebelum Instalasi

Sebelum memulai instalasi Kubero, pastikan Anda memiliki hal-hal berikut:

  • Cluster Kubernetes: Kubero dapat dijalankan di berbagai cluster Kubernetes. Jika Anda belum memilikinya, Anda dapat menggunakan Kind untuk membuat cluster lokal di desktop Anda.
  • kubectl: kubectl adalah tool baris perintah untuk mengelola cluster Kubernetes. Pastikan kubectl sudah terinstal dan terkonfigurasi dengan benar.
  • Kubero CLI (Opsional): Kubero CLI adalah tool opsional yang dapat membantu Anda dalam instalasi dan pengelolaan Kubero.

Catatan:

  • Kubero didesain untuk bekerja dengan Nginx Ingress Controller, Metrics Server, dan Cert Manager. Jika Anda menggunakan Ingress Controller lain, Anda perlu menyesuaikan langkah instalasi.
  • Beberapa fitur seperti pengaturan metrik dan proxy mungkin tidak berfungsi dengan baik jika menggunakan Ingress Controller lain.

Komponen Kubero

Instalasi Kubero terdiri dari beberapa komponen berikut:

  • Ingress Controller: Komponen ini berfungsi untuk merutekan trafik ke aplikasi Anda di cluster Kubernetes.
  • Metrics Server: Komponen ini diperlukan untuk menampilkan penggunaan CPU dan Memori pada Kubero UI.
  • Cert Manager: Komponen ini digunakan untuk generate dan mengelola sertifikat TLS untuk keamanan aplikasi Anda.
  • Monitoring Stack (opsional): Komponen ini diperlukan untuk memantau aplikasi Anda dengan statistik jangka panjang.
  • Kubero Operator: Komponen inti yang mengelola instalasi dan konfigurasi aplikasi Anda di Kubernetes.
  • Kubero UI: Antarmuka pengguna berbasis web untuk mengelola dan memantau aplikasi Kubero Anda.

Instalasi Komponen Kubero

Ada dua opsi instalasi Kubero:

  1. Instalasi Minimal: Instalasi minimal hanya akan menginstal Kubero Operator dan resource yang dibutuhkan. Kubero UI akan diinstal pada langkah terpisah.
  2. Instalasi Penuh dengan OLM (Operator Lifecycle Manager): Opsi ini akan menginstal OLM dan Kubero Operator secara bersamaan. Sama seperti instalasi minimal, Kubero UI akan diinstal pada langkah terpisah.

Mari kita mulai dengan instalasi minimal:

A. Instalasi Ingress Controller, Metrics Server, dan Cert Manager

  1. Ingress Controller:
    • Untuk Kind:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
Untuk penyedia layanan cloud lainnya, referensi resources resminya

2. Metrics Server:

kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml

3. Cert Manager:

kubectl apply -f https://operatorhub.io/install/cert-manager.yaml

B. Instalasi Monitoring Stack (opsional)

Untuk memantau aplikasi Anda dengan statistik jangka panjang, Anda perlu menginstal Prometheus dan kube-metrics.

kubectl apply -f https://raw.githubusercontent.com/kubero-dev/kubero-operator/main/config/samples/application_v1alpha1_kuberoprometheus.yaml

Catatan: Pastikan Ingress Controller Nginx Anda dikonfigurasi dengan benar sesuai dokumentasi: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/monitoring.md

Instalasi Kubero UI

Kubero UI menyediakan antarmuka web untuk mengelola instalasi Kubero Anda. Ada dua cara untuk menginstal Kubero UI:

Menggunakan Kubero CLI:

kubero install -c kubero-ui

Menggunakan kubectl:

a. Buat namespace untuk Kubero UI:

kubectl create namespace kubero

b. Buat secret untuk Kubero UI (sesuaikan dengan kebutuhan Anda):

kubectl create secret generic kubero-secrets \
    --from-literal=KUBERO_WEBHOOK_SECRET=$(openssl rand -hex 20) \
    --from-literal=KUBERO_SESSION_KEY=$(openssl rand -hex 20) \
    --from-literal=GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_TOKEN \
    -n kubero

Keterangan:

VariableRequiredDescription
GIT_DEPLOYMENTKEY_PUBLICdeprecated(Bug in Operator =< v0.0.70, set to random string)
GIT_DEPLOYMENTKEY_PRIVATE_B64deprecated(Bug in Operator =< v0.0.70, set to random string)
KUBERO_WEBHOOK_SECRETrequiredRandom secret string
KUBERO_SESSION_KEYrequiredRandom secret string
KUBECONFIG_BASE64optionalBase64 encoded Kubeconfig, may contain multiple contexts (required for multi cluster)
KUBERO_USERSoptionalBase64 encoded jsonfile (see Authentication chapter)
GITHUB_PERSONAL_ACCESS_TOKENoptionalPersonal access token for GitHub API
GITEA_PERSONAL_ACCESS_TOKENoptionalPersonal access token for Gitea API

Deploy Kubero UI dengan perintah:

kubectl apply -f https://raw.githubusercontent.com/kubero-dev/kubero-operator/main/config/samples/application_v1alpha1_kubero.yaml -n kubero

Tunggu sampai proses selesai. Silakan lanjutkan dengan proses Konfigurasi.

Terbaru

  • Why Redis is actually fast
  • The Fake 2FA Scandals and Fake AI Apps on Microsoft Store
  • 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
  • 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
  • How to Let ChatGPT Control Your Computer From Your Phone (Step-by-Step)
  • Ternary Bonsai 2.5 at 215 TPS! Splash + DFlash2 on Apple M5 Max
  • 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

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