- This hands-on will use the reference microservices from GoogleCloudPlatform/microservices-demo
- Any local K8s cluster up and running (Docker Desktop/Minikube/kind/...)
If you have already installed kubectl and it is pointing to some other environment, such as minikube or a GKE cluster, ensure you change the context so that kubectl is pointing to docker-desktop:
kubectl config get-contexts
kubectl config use-context docker-desktop
# Now check the cluster
kubectl get nodes
kubectl cluster-info
kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/microservices-demo/main/release/kubernetes-manifests.yaml
Access the web frontend in a browser using the frontend's port-forwaring.
# check services
kubectl get svc
# forward
kubectl port-forward svc/frontend 8080:80
Now we can access: http://localhost:8080/ , result looks like:
Delete the app
kubectl delete -f https://raw.githubusercontent.com/GoogleCloudPlatform/microservices-demo/main/release/kubernetes-manifests.yaml