How do I setup Kubernetes and run kubectl commands from windows machine
WSL(Windows subsystems linux) can be leveraged when you want to run kubectl commands from windows machine. Steps as below,
- Enable WSL with Kalilinux
- Install Windows Docker
- Create docker hub account and link account to Windows docker
- In Windows docker, go to settings
- Then enable Kubernetes
- Setup Persistent volume claim (pvc) by creating a yaml configuration for this.
- Run kubectl apply to yaml file
- When creating pods, or does kubectl deployment, make sure volume mounting done based on pvc
- Verify pod status by accessing commandline to docker containet directories