In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Today, I will talk to you about what is MicroK8s, K3s and Katacoda. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
Introduction
We will introduce the following three parts of services: MicroK8s, K3s and Katacoda. MicroK8 and K3 are located in lightweight Kubernetes environments and are expected to be used not only for learning, but also for a variety of environments, such as the IoT environment with limited capacity. Katacoda is a free comprehensive learning site where you can learn native cloud technologies based on browsers, not only running Kubernetes, but also offering free learning courses.
MicroK8s
MicroK8s is a lightweight Kubernetes environment. Unlike Minikube, it does not require VirtualBox, so it can be run on a virtual server. It is a lightweight single node with comprehensive functions such as Istio,Knative and Kubeflow, which is very suitable for learning Kubernetes.
Now, let's use Micro K8. Go to the official website and click the getting started button.
Here, select "macOS" and click the "download Multipass for macOS" button to download the installer.
Start multipass from the console and enter multipass. Then use snap to install microk8s.
$multipass launch-- name microk8s-vm-- mem4G-- disk40GLaunched: microk8s-vm$multipass shell microk8s-vm Welcome to Ubuntu18.04.3LTS (GNU/Linux4.15.0-70-generic x86 / 64) * Documentation: https://help.ubuntu.com* Management: https://landscape.canonical.com* Support: https://ubuntu.com/advantageSystem informationasofMon Nov2519:15:38JST2019System load:0.03Processes:103Usageof/:2.5%of38.60GB Users loggedin:0Memory usage:3% IP addressforenp0s2:192.168.64. 3Swap usage:0%0packages can be updated.0updates are security updates.To run a commandasadministrator (user "root") Use "sudo" .See "man sudo_root" fordetails.multipass@microk8s-vm:~$ sudo snap install microk8s--classic2019-11-25T19:33:10+09:00INFO Waitingforrestart...microk8s v1.16.3fromCanonical ✓ installed
Check the startup status of MicroK8s.
Multipass@microk8s-vm:~$ sudo microk8s.status-- wait-readymAicrok8s is runningaddons:cilium: disableddashboard: disableddns: disabledfluentd: disabledgpu: disabledhelm: disabledingress: disabledistio: disabledjaeger: disabledjuju: disabledknative: disabledkubeflow: disabledlinkerd: disabledmetrics-server: disabledprometheus: disabledrbac: disabledregistry: disabledstorage: disabled
Start the standard service and the installation is complete.
Multipass@microk8s-vm:~$ sudo microk8s.enable dns dashboard registryEnablingDNSApplyingmanifestserviceaccount/corednscreatedconfigmap/corednscreateddeployment.apps/corednscreatedservice/ http://kube-dnscreatedclusterrole.rbac.authorization.k8s.io/corednscreatedclusterrolebinding.rbac.authorization.k8s.io/corednscreated ~ medium ~ Applyingregistry manifestnamespace/container-registrycreatedpersistentvolumeclaim/registry-claimcreateddeployment.apps/registrycreatedservice/registrycreatedTheregistry is enabled
Just like Minikube, try kubectl. Below, execute "get Node" and "get Service".
To stop MicroK8, run "microk8s.stop".
Multipass@microk8s-vm:~$ sudo microk8s.kubectlgetnodesNAME STATUS ROLES AGE VERSIONmicrok8s-vm Ready4d19h v1.16.3 multipassages microk8sMuffle vmlvvmlvvmlvvmlvvmlvvmlvmlvv1.16.3multipassages microk8sFor $sudo microk8s.kubectlgetservicesNAME TYPE CLUSTER-IP EXTERNAL-IP PORT (S) AGEkubernetes ClusterIP10.152.183.1443/TCP4d19h
Multipass@microk8s-vm:~$ sudo microk8s.stopStopped.
K3s
K3s is a lightweight Kubernetes environment and is the official release of Kubernetes. Developed by Rancher Labs, it is provided as a binary file smaller than 40MB. Because of its light weight, it is expected to be used in applications such as edge computing, Internet of things and CI.
V1.0 was released on November 18, 2019, and as of April 15, 2020, the latest version is v1.17.4 + k3s1.
Note that the supported operating system is Ubuntu or Raspbian Buster and does not work on Mac.
Simply execute the following command to complete the installation, and you can use the kubectl command, and so on.
$curl-sfL https://get.k3s.io | sh-[INFO] Finding latestrelee [info] Usingv1.17.4+ k3s1as released [info] Downloadinghash https://github.com/rancher/k3s/releases/download/v1.17.4+k3s1/sha256sum-amd64.txt[INFO] Downloadingbinary https://github.com/rancher/k3s/releases/download/v1.17.4+k3s1/k3s[INFO] Verifyingbinarydownload [INFO] Installing k3sto/usr/local/bin/k3s [INFO] Creating / usr/local/bin/kubectl symlinktok3s [INFO] Creating / usr / local/bin/crictl symlinktok3s [INFO] Skipping / usr/local/bin/ctr symlinktok3s CommandexistsinPATHat/usr/bin/ctr [INFO] Creating killall script / usr/local/bin/k3s-killall.sh [INFO] Creatinguninstallscript / usr/local/bin/k3s-uninstall.sh [INFO] env: Creating environmentfile/etc/systemd/system/k3s.service.env [INFO] systemd: Creating servicefile/etc/systemd/system/k3s.service [INFO] systemd: Enabling k3s unitCreated symlink / etc/systemd/system/multi-user.target.wants/k3s.service → / etc/systemd/system/k3s.service. [INFO] Systemd:Startingk3s$ sudo kubectlgetnodesNAMESTATUSROLESAGEVERSIONip-172-xx-xx-xx Readymaster112s v1.17.4+k3s1
Katacoda
Katacoda is a comprehensive free learning site for cloud native technologies such as Kubernetes,Docker and Tensorflow, and you can only use browsers such as "play with Kubernetes Class" to learn.
It is recommended for users who do not have a cloud environment such as EKS or GKE, or who try it immediately without installing Minikube.
For example, try to select start course in introduction to Kubernetes. In the start a single Node Cluster course, you can easily follow the steps shown in the left pane and type commands in the right pane.
Micro K8s and K3 are easy to manufacture and light in weight. Another advantage of Katacoda is that you can start learning immediately using only a browser.
After reading the above, do you have any further understanding of what is MicroK8s, K3s and Katacoda? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.