Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minikube on Macbook Pro M4 Max via Docker #73

Open
obriensystems opened this issue Dec 3, 2024 · 1 comment
Open

Minikube on Macbook Pro M4 Max via Docker #73

obriensystems opened this issue Dec 3, 2024 · 1 comment
Assignees

Comments

@obriensystems obriensystems self-assigned this Dec 3, 2024
@obriensystems
Copy link
Member Author

obriensystems commented Dec 3, 2024

(venv-metal) michaelobrien@mbp8 src % kubectl config get-contexts
CURRENT   NAME             CLUSTER          AUTHINFO         NAMESPACE
          docker-desktop   docker-desktop   docker-desktop   
*         minikube         minikube         minikube         default
(venv-metal) michaelobrien@mbp8 src % kubectl get nodes
NAME       STATUS   ROLES           AGE   VERSION
minikube   Ready    control-plane   47s   v1.31.0
(venv-metal) michaelobrien@mbp8 src % kubectl create deployment hello-minikube --image=kicbase/echo-server:1.0
deployment.apps/hello-minikube created
(venv-metal) michaelobrien@mbp8 src % kubectl expose deployment hello-minikube --type=NodePort --port=8080
service/hello-minikube exposed
(venv-metal) michaelobrien@mbp8 src % kubectl get services hello-minikube
NAME             TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
hello-minikube   NodePort   10.100.248.95   <none>        8080:32602/TCP   8s
(venv-metal) michaelobrien@mbp8 src % minikube service hello-minikube
|-----------|----------------|-------------|---------------------------|
| NAMESPACE |      NAME      | TARGET PORT |            URL            |
|-----------|----------------|-------------|---------------------------|
| default   | hello-minikube |        8080 | http://192.168.49.2:32602 |
|-----------|----------------|-------------|---------------------------|
🏃  Starting tunnel for service hello-minikube.
|-----------|----------------|-------------|------------------------|
| NAMESPACE |      NAME      | TARGET PORT |          URL           |
|-----------|----------------|-------------|------------------------|
| default   | hello-minikube |             | http://127.0.0.1:61703 |
|-----------|----------------|-------------|------------------------|
🎉  Opening service default/hello-minikube in default browser...
❗  Because you are using a Docker driver on darwin, the terminal needs to be open to run it.
^C✋  Stopping tunnel for service hello-minikube.


better natively served
(venv-metal) michaelobrien@mbp8 src % kubectl port-forward service/hello-minikube 7080:8080
Forwarding from 127.0.0.1:7080 -> 8080
Forwarding from [::1]:7080 -> 8080
Handling connection for 7080

(venv-metal) michaelobrien@Michaels-MBP pipeline % curl http://127.0.0.1:7080
Request served by hello-minikube-7d48979fd6-w6zvd

HTTP/1.1 GET /

Host: 127.0.0.1:7080
Accept: */*
User-Agent: curl/8.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant