0

My apologies for this as I'm new to Kubernetes, on the Google platform.

What is the correct way to use the FrontendConfig CRD in GKE to redirect HTTP traffic to HTTPS at the Ingress?

There is a similar question here: stackoverflow thread on FrontendConfig, but that doesn't indicate clear steps

Any help will be appreciated.

Shabirmean
  • 2,341
  • 4
  • 21
  • 34
jsy
  • 71
  • 6
  • Hello @jsy, FrontendConfig's are another type of Kubenetes resource specific to Google Cloud's managed K8s service. It is supported in any GKE cluster from `v1.18.10-gke.600` and above. You can create one just like how you create other resources using yaml files. You can have. a look at the `Service`, `Ingress` and `FrontendConfig` files [at this link](https://github.com/GoogleCloudPlatform/bank-of-anthos/tree/master/extras/tls-ip-selfsigned) for an example. Note that this example uses TLS certs, you can comment/remove those if not needed. – Shabirmean Apr 28 '21 at 07:27
  • thank you. i will take a look. from a cursory glance, it looks like kubectl apply -f will do the trick. once i have done that, is there a way i can see these CRDs from the web console? or are they only visible via CLI? – jsy Apr 29 '21 at 08:35
  • You can view them in Google Cloud Console. When on the GKE window go to the `Object Browser` tab. Under the `Object kind` tab select `FronendConfig`. https://justpaste.it/7xnxs – Shabirmean Apr 29 '21 at 17:55

0 Answers0