Skip to content

Set of tools and scripts that make work with minikube less painful

Notifications You must be signed in to change notification settings

Vfialkin/minikube-tools

Repository files navigation

⚡ Tools to work with minikube

Contains set of tools and scripts that make work with minikube less painful

Initialize tools:

.\Init.ps1

It will download kubefwd and other tools and add this folder to PATH 💥

Start minikube 🚀:
.\M-Start.ps1

Checks if minikube is stale\stopped or misconfigured and starts it with following addons:

  • Deploys service masterhost.shared and setups forwarding to host ip

Not 127.0.0.1 but your VM host machine IP that changes on restart. This way services inside the cluster can access resources running on your machine, like sql server, just use masterhost.shared as an endpoint name and make sure port in firewall is open to internal network (1433 for sql)

  • Adds dns names to localhost:
    1. masterhost.shared and masterhost.shared.svc.cluster.local - as 127.0.0.1, to make it easier for debug without changing configs
    2. minikube.host - to access exposed services by host name (ex. http://minikube.host:30562 for kibana)
    3. Anything else you need, just checkout the file ;)
Other Scripts (add your own!)
M-Restart.ps1 #forces restart even if minikube is running
Use-Minikube.ps1 #Switch context to minikube
Use-Dev.ps1 #Switch context to dev
M-Deploy-This.ps1 #Shortcut for 'Invoke-Build Build-DockerImage, Install-Release'. (will switch to minukube context)
M-Publish-Masterhost #redeploy masterhost without minikube restart (part of M-Start)
M-CleanLogs.ps1 #Clean k8s logs

About

Set of tools and scripts that make work with minikube less painful

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published