<p>Good day!</p>

<p>I bumped into this post:
<a href="https://cleverbuilder.com/articles/spring-boot-kubernetes/" rel="nofollow noreferrer">https://cleverbuilder.com/articles/spring-boot-kubernetes/</a></p>

<p>And It seems I am able to run my spring-boot RESTful application as it is showing in the Minikube Dashboard. The problem is when I try to execute <code>kubectl get pods</code> or <code>kubectl get svc</code> I am not seeing my application. The kubernetes namespace that my application using is <code>test</code>. I'm really puzzled now on how can I access my application. Please shed some light. Thanks!</p>

Oneb
<p>Run, <code>kubectl get pods -n test</code>, <code>kubectl get svc -n test</code> and this should show you the desired output.</p>

<p>By default, <code>Kubernetes</code> starts with the following three namespaces: <code>Default</code>: Catch-all namespace for all objects not belonging to either of the <code>kube-public</code> or <code>kube-system</code> namespaces. The <code>default</code> namespace is used to hold the default set of pods, services, and deployments used by the cluster. Since, your pod is in a <code>custom</code> namespace <code>test</code> (you created). You'll need to specify the namespace where your deployment is been created or pod is been deployed.</p>

<p>So, <code>kubectl get pods</code> is actually <code>kubectl get pods -n default</code> meaning show pods in default namespace. hence, doing <code>kubectl get pods -n test</code> will show you all your pods in <code>test</code> namespace.</p>

<p><a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/" rel="nofollow noreferrer">See Documentation</a></p>
