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:

  • Remove the cloud-endpoints component:
  1. cd ${KF_DIR}/kustomize
  2. kubectl delete -f cloud-endpoints.yaml
  • Set the domain for your ingress to be the fully qualified domain name:
  1. cd ${KF_DIR}/kustomize
  2. gvim iap-ingress.yaml # Or basic-auth-ingress.yaml
  • Find and replace the value for the hostname:
  1. data:
  2. hostname: <enter your endpoint here>
  • Apply the changes:
  1. kubectl apply -f iap-ingress.yaml
  • Get the address of the static IP address created:
  1. IPNAME=${KF_NAME}-ip
  2. gcloud --project=${PROJECT} compute addresses describe --global ${IPNAME}
  • Use your DNS provider to map the fully qualified domain specified in the first step to the IP address reserved:in GCP.