在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):mrbobbytables/k8s-intro-tutorials开源软件地址(OpenSource Url):https://github.com/mrbobbytables/k8s-intro-tutorials开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Kubernetes TutorialsBefore you beginThese tutorials accompany the presentation Introduction to Kubernetes and make use of Minikube. A tool that allows users to quickly spin up and run a single instance of Kubernetes locally using a variety of virtualization engines. To install it and the other tutorial dependencies, see the Installation Guides section. Each section assumes an instance of minikube is up and running. To start minikube for the first time, use the command:
To launch an alternative version of kubernetes within your minikube instance, supply an alternate version string:
Tutorials have been validated against minikube v1.2.0 running Kubernetes v1.15.1 and kubectl 1.15.1 Tutorial Index
Installation GuidesEnsure your laptop has Virtualization Extensions (Intel VT or AMD-V) enabled and is capable of running a 2 core, 2GB RAM Virtual Machine. The Installation guides are centered around using the Virtualbox Hypervisor. Others are available, but their installation and use have not been tested. OSX Installation GuideInstallation on OSX is done with Homebrew, an OSX package manager. If you have not installed it previously, please see their installation guide before continuing. WARNING: If you have previously installed virtualbox manually, do not try and upgrade it or reinstall it via brew. Upgrade it by manually by downloading it from the virtualbox site or by uninstalling it then reinstalling via brew. Note to High Sierra (10.13)+ Users: High Sierra introduced stricter security settings over the area in which brew installs some of its binaries. If you had brew previously installed (pre High Sierra) and have not done anything with it in some time, it should be reinstalled. For details regarding this issue, see this stackoverflow thread. Install
Once done, verify your Install. Optional: You can improve the general user experience of working with Windows Installation GuideInstallation on Windows is done with chocolatey, a Windows Package Manager. If you have not installed it previously, please see their installation guide before continuing. NOTE: The Windows 10 Fall Creators Update enabled HyperV by default on supported hardware. This tutorial has NOT been tested against HyperV, but should theoretically work. If you wish to use HyperV, you may skip disabling it and the installation of Virtualbox. However minikube must be configured and started in a different manner. Disable HyperV (will require restart). HyperV unfortunately prevents Virtualbox from functioning properly and must be disabled.
Install
Once done, verify your Install. LinuxLinux installation is different for each distro. General install information is linked below: Once done, verify your Install. Optional: You can improve the general user experience of working with Verifying InstallWith the software installed you can verify it is working correctly by executing:
This will take a little bit of time the first time it is run as it will download its needed dependencies and starts the virtual machine. When it completes, you can verify it is working correctly by executing:
You should get output similar to the following:
After that you may stop the virtual machine with:
Troubleshooting Install ProblemsOSX: Virtualbox fails to install via brewError Message:
This occurs on High Sierra if you had brew previously installed before upgrading OSX. High Sierra introduced stricter security settings over the area in which brew installs some of its binaries. To fix the issue, simply reinstall brew following the directions on the brew site. Then proceed with installing virtualbox. For details regarding this issue, see this stackoverflow thread. All Platforms: Minikube fails to start with a "kubeadm init error"This can be caused by a variety of issues. However the solution is the same. First try deleting and recreating the minikube instance
If that does not resolve the issue, delete the local minikube configs and try starting it again
That should hopefully resolve the kubeadm init error. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论