preface
Record how we quickly set up a k8S development learning environment on MacOS; Since it’s fast, it’s best to minimize the compile behavior. So I used BREW to play with it;
System is dependent on
Install Kubectl and Minikube and helm
- kubectl: is used to control (configuration)
kubernetes
Command line tool - minikube: You can create a standalone version
kubernetes
The cluster - Helm: Package management tool for K8S
- Kyperkit: lightweight virtualization tool package
brew update
brew install kubernetes-cli minikube helm hyperkit docker-machine-driver-hyperkit
Copy the code
The only thing of note is probably the smart prompt configuration, because I use oh-my-zsh locally, so.zshrc can be configured this way
# Start oh-my-zsh plugin for K8S, separate plugin with space,
# The main plugin is Kubectl, other interested people can learn by themselves
# are some smart tips and quick jump
plugins=(zsh-autosuggestions z zsh-completions common-aliases kubectl)
# kubectl completion
if [ $commands[kubectl] ]; then
source <(kubectl completion zsh)
fi
Copy the code
Lens IDE
Making: github.com/lensapp/len…
This is a K8S IDE management tool, used to say,
I took a look at our development environment… Much of the information retrieval is very straightforward (e.g., service layer, task, storage, schedule); Configuration file read and operate some POD inside the container (terminal) is also very convenient! I won’t show you the service layer. Sensitive information is involved..
VS Code
VS Code is my main development tool, so I also searched for matching plug-ins
Kubernetes
K8s management plug-in maintained by Microsoft
VS Code Marketplace
Docker
Docker management software maintained by Microsoft
Yaml
Yaml plugin maintained by Red Hat
MiniKube boot effect!
conclusion
This set of configuration down, the local can play single K8S environment. As for ISTIO (Grid Management), the installation position is different for different platforms. Please refer to isTIO installation here. If there is something wrong, please leave a message and correct it in time. Thank you for reading!!