k exec -it <pod-name> -- cat /sys/fs/cgroup/memory/memory.usage_in_bytes
k exec -it <pod-name> -- cat /sys/fs/cgroup/cpu/cpuacct.usage
- List all available clusters
gcloud --project=<project-name> container clusters list
- Get credentials for a cluster in the list
gcloud --project=<project-name> container clusters get-credentials <cluster-name> --region <location-field-in-the-list>
- List all the contexts in Kubenetes to make sure the new cluster is there
kubectl config get-contexts
- Switch to the new cluster:
kubectl config use-context <new-cluster-context>
kubectl port-forward :