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

  • 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
  • Belajar Cyber Security dari Nol hingga Siap Kerja, Ini Roadmap Lengkapnya
  • Running Windows 11 on Apple Silicon: UTM vs. Parallels Desktop vs. VMware Fusion
  • Testing PikaOS, a Rolling Debian Distribution Special for Gaming and Content Creation
  • Engineering the On-Premises AI Data Center: An In-Depth Technical Review of the HP ZGX Fury AI Station
  • Trying my new Favourite Task Manager, TMOG on Omarchy Linux
  • ASRock Industrial AI Box A395: Is This the Best Compact Strix Halo System for Local AI?
  • Redox OS: A Rust-Based Microkernel Operating System (And How It Differs from Linux)
  • Canonical Is Bringing Back Ubuntu Core Desktop — This Time With a Clearer Plan
  • systemd Officially Adds Support for Rust Components
  • Rocky Linux Creator Builds a Brand-New “Not Linux” Kernel in 11 Days Using AI
  • Building a local AI agent in Workshop on Ubuntu 26.10
  • 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
  • Alexandr Wang: The Riemann Hypothesis Means Superintelligence Is Arriving
  • Claude Ship Explained: AI-Managed Repositories
  • How Herdr Solves the Local Agent Problem When You Close Your Laptop
  • Why 32-Bit Precision is Overkill and How Quantization Rescues Edge AI
  • Building an Autonomous Event Planning Agent with Google Gemini (No Code Required!)

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