Create google cloud kubernetes cluster with default node pool
Experimental: Create kubernetes deployment and service with kubernetes provider from terraform (disable)
- Follow this GCP terraform tutorial to install terraform
- Follow this Configure gcloud SDK to configure
gcloud
- Configure gcloud
- Run
terraform init
- Create new workspace
terraform workspace new blue
- Run
terraform apply
and then type "yes"
These steps will be replace by terraform files
- Run
gcloud auth login
to get a token - Run
gcloud container clusters get-credentials --zone us-central1 --project dsp-sock-shop-juan $(terraform workspace show)-gke-sock-shop
to authenticate with your cluster. Replace project and zone according to your setup - Rename cluster with
kubectx gke-$(terraform workspace show)=gke_dsp-sock-shop-juan_us-central1_$(terraform workspace show)-gke-sock-shop
The current terraform script already provide istio into the cluster using helm. However, it is also possible to install istio using istioctl
- Install istioctl using
brew install istioctl
- Apply istio config
istioctl install
- Install istio operators
Note: Kiali requires prometheus to works. Additionally, it looks for jeager and grafana.
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/prometheus.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/grafana.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/jaeger.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/kiali.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.12/samples/addons/extras/zipkin.yaml
- (Kiali)[https://istio.io/latest/docs/ops/integrations/kiali/]. istioctl dashboard kiali
- (Prometheus)[https://istio.io/latest/docs/ops/integrations/prometheus/]. istioctl dashboard prometheus
- (Grafana)[https://istio.io/latest/docs/ops/integrations/grafana/]. istioctl dashboard grafana
- (Jaeger)[https://istio.io/latest/docs/ops/integrations/jaeger/]. istioctl dashboard jaeger
- (Zipkin)[https://istio.io/latest/docs/ops/integrations/zipkin/]. istioctl dashboard zipkin