Can't get pod on k8s with the error message: "Error from server (Internal Error): Fail to check auth"

You need to know your own namespace auth

Display the merged config configuration

kubectl config view

Show all context lists

kubectl config get-contexts

Display the current Cluster name

kubectl config current-context

Switch to any Cluster

kubectl config use-context {context_name}

Show all namespace lists

kubectl get namespace

Switch to any Namespace

kubectl config set-context --current --namespace = {namespace_name}

k8s config’s namespace should set as “assignment” to deploy your assignment to the WISE-PaaS K8s

1. kubectl config set-context <context-name> --namespace=assignment
2. kubectl config use-context <context-name>