devops:docker:kubernetes:tutorial-win-minikube
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devops:docker:kubernetes:tutorial-win-minikube [2024/07/21 14:44] – skipidar | devops:docker:kubernetes:tutorial-win-minikube [2024/07/24 20:22] (current) – skipidar | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| </ | </ | ||
| - | == Prefix | + | == " |
| Use the alias on Linux | Use the alias on Linux | ||
| Line 66: | Line 66: | ||
| - | To just use " | + | |
| - | on Windows do | + | |
| - | < | + | |
| - | alias kubectl=" | + | |
| - | </ | + | |
| Line 80: | Line 76: | ||
| {{https:// | {{https:// | ||
| {{https:// | {{https:// | ||
| + | |||
| + | |||
| + | |||
| + | == On Minikube - open a port to listen on your Windows machine == | ||
| + | |||
| + | Assume you earlier created some **deployment** | ||
| + | |||
| + | <sxh shell> | ||
| + | minikube kubectl -- create deployment demo-consume-api --image=ghcr.io/ | ||
| + | </ | ||
| + | |||
| + | This application is running on port '' | ||
| + | |||
| + | Then to expose the deployment | ||
| + | |||
| + | <sxh shell> | ||
| + | minikube service list | ||
| + | |----------------------|---------------------------|--------------|-----| | ||
| + | | NAMESPACE | ||
| + | |----------------------|---------------------------|--------------|-----| | ||
| + | | default | ||
| + | | default | ||
| + | | kube-system | ||
| + | | kubernetes-dashboard | dashboard-metrics-scraper | No node port | | | ||
| + | | kubernetes-dashboard | kubernetes-dashboard | ||
| + | |----------------------|---------------------------|--------------|-----| | ||
| + | |||
| + | |||
| + | # pick the service deployment | ||
| + | # its on port 8080 | ||
| + | # now make a port exposed | ||
| + | |||
| + | minikube service --url demo-consume-api | ||
| + | http:// | ||
| + | ❗ Because you are using a Docker driver on windows, the terminal needs to be open to run it. | ||
| + | |||
| + | # other terminal you now can | ||
| + | curl http:// | ||
| + | |||
| + | </ | ||
| + | |||
devops/docker/kubernetes/tutorial-win-minikube.1721573087.txt.gz · Last modified: by skipidar
