[1] MicroK8s – Instalacja
11 lutego 2021Zainstaluj [MicroK8s], czyli „odchudzony” Kubernetes dostarczony przez firmę Canonical.
[1] Zainstaluj Snappy: [18] Snappy – Instalacja
[2] Zainstaluj MicroK8s za pomocą Snappy.
[root@vlsr01 ~]# snap install microk8s --classic
[3] Po instalacji MicroK8s zostanie on uruchomiony automatycznie. Aby go zatrzymać/uruchomić zrób jak poniżej.
# pokaż status [root@vlsr01 ~]# microk8s status microk8s is running high-availability: no datastore master nodes: 127.0.0.1:19001 datastore standby nodes: none addons: enabled: ha-cluster # Configure high availability on the current node disabled: ambassador # Ambassador API Gateway and Ingress cilium # SDN, fast with full network policy dashboard # The Kubernetes dashboard dns # CoreDNS fluentd # Elasticsearch-Fluentd-Kibana logging and monitoring gpu # Automatic enablement of Nvidia CUDA helm # Helm 2 - the package manager for Kubernetes helm3 # Helm 3 - Kubernetes package manager host-access # Allow Pods connecting to Host services smoothly ingress # Ingress controller for external access istio # Core Istio service mesh services jaeger # Kubernetes Jaeger operator with its simple config keda # Kubernetes-based Event Driven Autoscaling knative # The Knative framework on Kubernetes. kubeflow # Kubeflow for easy ML deployments linkerd # Linkerd is a service mesh for Kubernetes and other frameworks metallb # Loadbalancer for your Kubernetes cluster metrics-server # K8s Metrics Server for API access to service metrics multus # Multus CNI enables attaching multiple network interfaces to pods portainer # Portainer UI for your Kubernetes cluster prometheus # Prometheus operator for monitoring and logging rbac # Role-Based Access Control for authorisation registry # Private image registry exposed on localhost:32000 storage # Storage class; allocates storage from host directory traefik # traefik Ingress controller for external access # pokaż konfigurację [root@vlsr01 ~]# microk8s config apiVersion: v1 clusters: - cluster: certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURBVENDQWVtZ0F3SUJBZ0lKQUppZ2Ivd1BXb2pRTUo= server: https://192.168.100.101:16443 name: microk8s-cluster contexts: - context: cluster: microk8s-cluster user: admin name: microk8s current-context: microk8s kind: Config preferences: {} users: - name: admin user: token: WHFUN1ZtL3QzLy9SKzd4QmsdfgregergSE4yR2xJNXEwOTJEN2hRTi9iY1FEMD0K [root@vlsr01 ~]# microk8s kubectl get all NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 9m41s [root@vlsr01 ~]# microk8s kubectl get nodes NAME STATUS ROLES AGE VERSION vlsr01.zicher.lab Ready <none> 10m v1.20.1-34+e7db93d188d0d1 # stop MicroK8s [root@vlsr01 ~]# microk8s stop stop of [microk8s.daemon-apiserver microk8s.daemon-apiserver-kicker microk8s.daemon-cluster-agent microk8s.… Stopped. [root@vlsr01 ~]# microk8s status microk8s is not running, try microk8s start # start MicroK8s [root@vlsr01 ~]# microk8s start Started. # wyłącz MicroK8S [root@vlsr01 ~]# snap disable microk8s microk8s disabled # włącz MicroK8s [root@vlsr01 ~]# snap enable microk8s microk8s enabled