MicroK8s : इंस्टॉल करें2024/06/14 |
[MicroK8s] इंस्टॉल करें जो कि Canonical द्वारा प्रदान किया गया लाइटवेट Kubernetes है। |
|
[1] | Snappy से MicroK8s इंस्टॉल करें। स्नैपी स्थापित है और Ubuntu सर्वर पर डिफ़ॉल्ट रूप से चल रहा है, लेकिन यदि यह नहीं चल रहा है, तो इसे पहले [systemctl प्रारंभ snapd.socket] द्वारा प्रारंभ करें। |
root@dlp:~# snap install microk8s --classic microk8s (1.29/stable) v1.29.4 from Canonical✓ installed |
[2] | MicroK8s स्थापित करने के बाद, यह स्वचालित रूप से चलने लगता है। इसे रोकने या चालू करने के लिए निम्न प्रकार से सेट करें। |
# स्थिति दिखाओ root@dlp:~# microk8s status microk8s is running high-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none addons: enabled: dns # (core) CoreDNS ha-cluster # (core) Configure high availability on the current node helm # (core) Helm - the package manager for Kubernetes helm3 # (core) Helm 3 - the package manager for Kubernetes disabled: cert-manager # (core) Cloud native certificate management cis-hardening # (core) Apply CIS K8s hardening community # (core) The community addons repository dashboard # (core) The Kubernetes dashboard gpu # (core) Alias to nvidia add-on host-access # (core) Allow Pods connecting to Host services smoothly hostpath-storage # (core) Storage class; allocates storage from host directory ingress # (core) Ingress controller for external access kube-ovn # (core) An advanced network fabric for Kubernetes mayastor # (core) OpenEBS MayaStor metallb # (core) Loadbalancer for your Kubernetes cluster metrics-server # (core) K8s Metrics Server for API access to service metrics minio # (core) MinIO object storage nvidia # (core) NVIDIA hardware (GPU and network) support observability # (core) A lightweight observability stack for logs, traces and metrics prometheus # (core) Prometheus operator for monitoring and logging rbac # (core) Role-Based Access Control for authorisation registry # (core) Private image registry exposed on localhost:32000 rook-ceph # (core) Distributed Ceph storage using Rook storage # (core) Alias to hostpath-storage add-on, deprecated # कॉन्फ़िगरेशन दिखाएँ root@dlp:~# microk8s config apiVersion: v1 clusters: - cluster: certificate-authority-data: LS0tLS1CRUdJTiBD..... server: https://10.0.0.30:16443 name: microk8s-cluster contexts: - context: cluster: microk8s-cluster user: admin name: microk8s current-context: microk8s kind: Config preferences: {} users: - name: admin user: client-certificate-data: LS0tLS1CRUdJTiBDRVJ..... client-key-data: LS0tLS1CRUdJTiBSU0EgUFJJVkF.....root@dlp:~# microk8s kubectl get all NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 2m49sroot@dlp:~# microk8s kubectl get nodes NAME STATUS ROLES AGE VERSION dlp.srv.world Ready <none> 3m18s v1.29.4 # MicroK8s बंद करो root@dlp:~# microk8s stop Stopped.
root@dlp:~#
microk8s status microk8s is not running, try microk8s start # MicroK8s प्रारंभ करें root@dlp:~# microk8s start Started. # MicroK8s अक्षम करें root@dlp:~# snap disable microk8s microk8s disabled # MicroK8s सक्षम करें root@dlp:~# snap enable microk8s microk8s enabled |
Sponsored Link |
|