Using Your Own Domain

Using a custom domain with Kubeflow on GKE

This guide describes how to use a custom domain with Kubeflow on Google CloudPlatform (GCP).

Before you start

This guide assumes you have already set up Kubeflow on GCP. If you haven’t doneso, follow the guide togetting started with Kubeflow on GCP.

Using your own domain

If you want to use your own domain instead of ${KF_NAME}.endpoints.${PROJECT}.cloud.goog, follow these instructions after running kfctl build:

  • Replace hostname in kustomize/iap-ingress/base/params.env with your own domain.
  1. ...
  2. hostname=<enter your domain here>
  3. ingressName=envoy-ingress
  4. ipName=kf-test-ip
  5. oauthSecretName=kubeflow-oauth
  6. ...
  • Apply the changes.

Using kfctl.

  1. kfctl apply -V -f ${CONFIG_FILE}

Or using kubectl.

  1. kubectl apply -k kustomize/iap-ingress
  • Remove the cloud-endpoints component.
  1. kubectl delete -k kustomize/cloud-endpoints

Delete the endpoint created by the cloud-endpoints-controller, if any.

  1. gcloud endpoints services delete ${KF_NAME}.endpoints.${PROJECT}.cloud.goog
  • Check Ingress to verify that your domain was properly configured.
  1. kubectl -n istio-system describe ingresses
  • Get the address of the static IP address created.
  1. IPNAME=${KF_NAME}-ip
  2. gcloud compute addresses describe ${IPNAME} --global --format="value(address)"
  • Use your DNS provider to map the fully qualified domain specified in the first step to the above IP address.

Feedback

Was this page helpful?

Glad to hear it! Please tell us how we can improve.

Sorry to hear that. Please tell us how we can improve.

Last modified 11.02.2020: Update 'Using your own domain' (#1166) (#1650) (200de17f)