-
Notifications
You must be signed in to change notification settings - Fork 0
tricks
jorgesanchezperez edited this page Jul 23, 2020
·
5 revisions
- CPUs: 6
- Memory: 8.00 GB
- Swap: 1.5 GB
- Disk image size: 59.6 GB
To acces a service in a cluster
- Change the k8s context to the cluster context
gcloud container clusters get-credentials [cluster-name] --zone europe-west4 --project [GC project]
- Set the port forward to the cluster
kubectl port-forward pod/[POD_NAME] [PORT]
- Change the k8s context to the cluster context
gcloud container clusters get-credentials master_dev --zone europe-west4 --project openbanking-214714
- Set the port forward to the cluster
kubectl port-forward pod/mongo-mongodb-primary-0 27017
Now you can access to mongo service deployed in the cluster on localhost:27017
docker stop $(docker ps -a -q) && docker rm -f $(docker ps -a -q) && docker rmi -f $(docker images -q)
docker images -f "dangling=true" -q