Use microk8s to make a kubernetes environment in Linux

注意:从 github上来看 microk8s的状态不好,有100+的issues,且其build状态为failed。暂停关于microk8s方面的任务。

The microk8s is a good entry level tool to help us get started with kubernetes.

To install it, refer to
https://microk8s.io/docs/ .

After that, when we want to access the api server, we'll need the default username and password. It …

Continue Reading

Get started with Kubernetes - minikube + Docker on Windows 10

NOTE(Justin): 从minikube开始但又定制选项的情况下, 遇到问题很难处理. 不如从基础起步, 逐步增加内容.

Install kubectl

With chocolatey,

$ choco install kubernetes-cli
# Installed to C:\ProgramData\chocolatey\lib\kubernetes-cli\tools

References: https://kubernetes.io/docs/tasks/tools/install-kubectl/

Create a VM with docker-machine

Create virtual switch 'aexv' first. 然后使用 docker-machine 来创建一个 有docker的虚拟机. 这里需要取消proxy设置, 否则容易出现网络问题.

$ docker-machine --native-ssh create -d hyperv …

Continue Reading