Skip to content

Not seeing any aliens "namespace undefined" on Minikube #100

@brentrmck

Description

@brentrmck

I have deployed kubeinvaders into the "kubeinvaders" namespace, and a few nginx pods in both "namespace1" and "namespace2".

I am running this locally on my mac, via Minikube. I had to change the driver in the Makefile to docker, virtualbox was throwing errors for my machine. I can access the front end of the app, by port forward to 8080 and visiting "http://localhost:8080" but when i go to "Enable Game Mode" I cannot see any aliens, nothing to shoot.

Terminal output from logs:
$kubectl logs kubeinvaders-69b9757c84-tgprt -n kubeinvaders -f

2025/07/01 21:00:13 [notice] 10#10: using the "epoll" event method
2025/07/01 21:00:13 [notice] 10#10: openresty/1.27.1.2
2025/07/01 21:00:13 [notice] 10#10: OS: Linux 6.10.14-linuxkit
2025/07/01 21:00:13 [notice] 10#10: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2025/07/01 21:00:13 [notice] 10#10: start worker processes
2025/07/01 21:00:13 [notice] 10#10: start worker process 15
2025/07/01 21:00:13 [notice] 10#10: start worker process 16
2025/07/01 21:02:47 [info] 15#15: *2 client 127.0.0.1 closed keepalive connection
2025/07/01 21:03:10 [info] 15#15: *4 client 127.0.0.1 closed keepalive connection
2025/07/01 21:03:10 [info] 16#16: *6 client 127.0.0.1 closed keepalive connection
2025/07/01 21:03:10 [info] 16#16: *3 client 127.0.0.1 closed keepalive connection
2025/07/01 21:03:10 [info] 15#15: *5 client 127.0.0.1 closed keepalive connection
2025/07/01 21:03:10 [info] 16#16: *1 client 127.0.0.1 closed keepalive connection

I am running this locally on my mac, via Minikube. I had to change the driver in the Makefile to docker, virtualbox was throwing errors for my machine. I can access the front end of the app, by port forward to 8080 and visiting "http://localhost:8080" but when i go to "Enable Game Mode" I cannot see any aliens, nothing to shoot.

Terminal output from curl:
$curl "http://localhost:8080/kube/pods?action=list&namespace=namespace1" -k

{"items":[{"name":"nginx-deployment-94c45f98d-4wp6t","status":"ready"},{"name":"nginx-deployment-94c45f98d-58mwv","status":"ready"},{"name":"nginx-deployment-94c45f98d-5bmxn","status":"ready"},{"name":"nginx-deployment-94c45f98d-5n8cn","status":"ready"},{"name":"nginx-deployment-94c45f98d-6qhwz","status":"ready"},{"name":"nginx-deployment-94c45f98d-ds7z4","status":"ready"},{"name":"nginx-deployment-94c45f98d-f4qb8","status":"ready"},{"name":"nginx-deployment-94c45f98d-fbqvn","status":"ready"},{"name":"nginx-deployment-94c45f98d-fr2mz","status":"ready"},{"name":"nginx-deployment-94c45f98d-kj4wv","status":"ready"},{"name":"nginx-deployment-94c45f98d-l6klh","status":"ready"},{"name":"nginx-deployment-94c45f98d-l8c9x","status":"ready"},{"name":"nginx-deployment-94c45f98d-mv5fk","status":"ready"},{"name":"nginx-deployment-94c45f98d-p2sr5","status":"ready"},{"name":"nginx-deployment-94c45f98d-pf4br","status":"ready"},{"name":"nginx-deployment-94c45f98d-qq9sn","status":"ready"},{"name":"nginx-deployment-94c45f98d-tcdkc","status":"ready"},{"name":"nginx-deployment-94c45f98d-wzpf8","status":"ready"},{"name":"nginx-deployment-94c45f98d-zgwcx","status":"ready"},{"name":"nginx-deployment-94c45f98d-zw49k","status":"ready"}]}

Any other ideas to try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions