kcli-cluster-deployment
/kcli-cluster-deployment
Prowadzi wdrażanie klastrów Kubernetes i zarządzanie nimi przez kcli, w tym OpenShift, k3s i kubeadm.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Prowadzi wdrażanie klastrów Kubernetes i zarządzanie nimi przez kcli, w tym OpenShift, k3s i kubeadm.
Oryginalny opis (EN)
Guides deployment and management of Kubernetes clusters with kcli. Use when deploying OpenShift, k3s, kubeadm, or other Kubernetes distributions.
Jak działa
- Supported Cluster Types
- Basic Cluster Commands
- OpenShift Deployment
- kubeadm Deployment
- k3s Deployment
- RKE2 Deployment
- HyperShift (Hosted Control Planes)
- MicroShift Deployment
- Cluster Directory Structure
- Scaling Operations
Podgląd SKILL.md
--- name: kcli-cluster-deployment description: Guides deployment and management of Kubernetes clusters with kcli. Use when deploying OpenShift, k3s, kubeadm, or other Kubernetes distributions. --- # kcli Cluster Deployment ## Supported Cluster Types | Type | Description | Module | |------|-------------|--------| | `openshift` | Red Hat OpenShift (IPI/UPI) | `kvirt/cluster/openshift/` | | `okd` | Community OpenShift | Same as openshift | | `hypershift` | OpenShift Hosted Control Planes | `kvirt/cluster/hypershift/` | | `microshift` | Lightweight edge OpenShift | `kvirt/cluster/microshift/` | | `generic` | Generic Kubernetes (alias: `kubernetes`) | `kvirt/cluster/kubernetes/` | | `kubeadm` | Standard Kubernetes via kubeadm | `kvirt/cluster/kubeadm/` | | `k3s` | Lightweight Kubernetes | `kvirt/cluster/k3s/` | | `rke2` | Rancher Kubernetes Engine 2 | `kvirt/cluster/rke2/` | | `aks` | Azure Kubernetes Service | `kvirt/cluster/aks/` | | `eks` | Amazon Elastic Kubernetes | `kvirt/cluster/eks/` | | `gke` | Google Kubernetes Engine | `kvirt/cluster/gke/` | ## Basic Cluster Commands ```bash # Create cluster kcli create kube <type> <clustername> # Create with parameters kcli create kube openshift -P ctlplanes=3 -P workers=2 mycluster # List clusters kcli list kube # Get cluster info kcli info kube mycluster # Delete cluster kcli delete kube mycluster # Scale cluster kcli scale kube <type> -P workers=5 mycluster # Get kubeconfig kcli get kubeconfig mycluster ``` ## OpenShift Deployment ### Minimal Example ```bash kcli create kube openshift -P pull_secret=~/pull-secret.json mycluster ``` ### Key Parameters ```yaml # Required pull_secret: ~/pull-secret.json # Red Hat pull secret domain: example.com # Base domain # Topology ctlplanes: 3 # Control plane nodes workers: 2 # Worker nodes version: stable # OpenShift version (stable, 4.14, etc.) # Resources ctlplane_memory: 16384 # Control plane memory (MB) ctlplane_numcpus: 8 # Control plane CPUs worker_memory: 8192 # Worker memory worker_numcpus: 4 # Worker CPUs # Networking network: default # Libvirt network api_ip: 192.168.122.253 # API VIP (auto-detected if omitted) ingress_ip: 192.168.122.252 # Ingress VIP ``` ### Disconnected/Air-gapped ```yaml disconnected_url: registry.local:5000 disconnected_user: admin disconnected_password: password ca: | -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- ``` ## kubeadm Deployment ```bash kcli create kube kubeadm -P domain=k8s.local -P ctlplanes=1 -P workers=2 myk8s ``` ### Key Parameters ```yaml domain: k8s.local # Required domain version: 1.29 # Kubernetes version ctlplanes: 1 # Control planes (odd number for HA) workers: 2 # Worker count network: default # Network name api_ip: 192.168.122.250 # API endpoint (for multi-ctlplane) image: centos9stream # Base OS image ``` ## k3s Deployment ```bash kcli create kube k3s -P ctlplanes=1 -P workers=2 myk3s ``` ### Key Parameters ```yaml ctlplanes: 1 workers: 2 version: latest # k3s version domain: k3s.local image: ubuntu2204 ``` ## RKE2 Deployment ```bash kcli create kube rke2 -P ctlplanes=1 -P workers=2 myrke2 ``` ### Key Parameters ```yaml ctlplanes: 1 workers: 2 version: latest # RKE2 version domain: rke2.local image: ubuntu2204 ``` ## HyperShift (Hosted Control Planes) ```bash kcli create kube hypershift \ -P pull_secret=~/pull-secret.json \ -P nodepool_replicas=2 \ myhypershift ``` ### Key Parameters ```yaml pull_secret: ~/pull-secret.json management_cluster: mgmt # Existing cluster name nodepool_replicas: 2 # Worker node count release_image: ... # Specific OCP release ``` ## MicroShift Deployment ```bash kcli create kube microshift -P pull_secret=~/pull-secret.json mymicroshift ``` ### Key Parameters ```yaml pull_secret: ~/pull-secret.json version: latest # MicroShift version image: rhel9 # RHEL-based image required ``` ## Cluster Directory Structure Clusters store state in `~/.kcli/clusters/<clustername>/`: ``` ~/.kcli/clusters/mycluster/ ├── kcli_parameters.yml # Stored parameters ├── kubeconfig # Cluster kubeconfig ├── auth/ # Auth credentials (OpenShift) │ ├── kubeadmin-password │ └── kubeconfig └── (other cluster-specific files) ``` ## Scaling Operations ```bash # Scale workers kcli scale kube openshift -P workers=5 mycluster # Scale control planes (careful!) kcli scale kube kubeadm -P ctlplanes=3 mycluster # Add nodes with specific parameters kcli scale kube openshift -P workers=3 -P worker_memory=16384 mycluster ``` ## Troubleshooting ### Check Deployment Progress ```bash # OpenShift: watch bootstrap kcli ssh mycluster-bootstrap journalctl -f -u bootkube # kubeadm: check cluster status export KUBECONFIG=~/.kcli/clusters/mycluster/kubeconfig kubectl get nodes kubectl get pods -A ``` ### Common Issues 1. **API IP not reachable**: Ensure `api_ip` is in the correct subnet 2. **Pull secret invalid**: Verify JSON format and Red Hat subscription 3. **Insufficient resources**: Check VM memory/CPU against requirements 4. **DNS resolution**: Ensure domain resolves or use `sslip: true` ### Debug Mode ```bash kcli -d create kube openshift mycluster # Verbose output ``` ## Cloud Provider Notes For cloud providers (AWS, GCP, Azure), kcli can: - Auto-create load balancers (`cloud_lb: true`) - Configure cloud DNS (`cloud_dns: true`) - Set up cloud storage (`cloud_storage: true`) ```yaml cloud_lb: true cloud_dns: true cloud_storage: true ```
Wersje
W bazie nie ma innych skilli o nazwie kcli-cluster-deployment.
Identyczna treść występuje jeszcze w 4 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki 90d2894958e6 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100kcli
Prowadzi przez używanie kcli: tworzenie maszyn wirtualnych, wdrażanie planów, zarządzanie klastrami i typowe operacje. - 100kcli-vm-operations
Prowadzi przez cykl życia maszyn wirtualnych w kcli: tworzenie, zarządzanie i diagnozowanie u różnych dostawców. - 100kubernetes-cluster-provisioning-with-kubeadm-and-cluster-api
Prowadzi uruchamianie własnych klastrów Kubernetes przez kubeadm (init, join, etcd, wysoka dostępność) oraz deklaratywne zarządzanie cyklem życia klastra przez Cluster API. - 95openshift-expert
Wspiera pracę z platformą OpenShift i Kubernetes: architektura klastra, operatory, sieć, storage, rozwiązywanie problemów, potoki CI/CD, analiza nieudanych testów i problemów z buildami. - 100openshift
Wspiera wdrażanie aplikacji Kubernetes na Red Hat OpenShift: CLI oc, DeploymentConfigs, Routes, Security Context Constraints i BuildConfigs. - 100k8s-cluster-api
Obsługuje Kubernetes Cluster API v1.12: clusterctl, ClusterClass i GitOps, ze skryptami do kontroli stanu, kopii zapasowych, migracji i lintowania oraz szablonami klastrów.