Skip to content

Kubernetes ci deployment - kubectl error No resources found

I used a simple rails app and deployed with the gitlab.ci template for kubernetes.

I used cloud shell to run the following command:

test@cloudshell:~ (project_name)$ gcloud container clusters get-credentials cluster_name --zone us-central1-a --project project_name
Fetching cluster endpoint and auth data.
kubeconfig entry generated for backend.
test@cloudshell:~ (project_name)$ kubectl get pods
No resources found.
test@cloudshell:~ (project_name)$ kubectl get all
NAME             TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)   AGE
svc/kubernetes   ClusterIP   10.41.210.1   <none>        443/TCP   8h

I was expecting much more information and that I can access my pods? Everything in the kubernetes dashboard is up and running.

I am not sure how to run migration without connecting to the pod? Maybe any idea to that?

Edited by Simon