Skip to content

Instantly share code, notes, and snippets.

@pbochynski
Created November 12, 2019 08:06
Show Gist options
  • Save pbochynski/2b775279e36213065b6dc6fad5448b34 to your computer and use it in GitHub Desktop.
Save pbochynski/2b775279e36213065b6dc6fad5448b34 to your computer and use it in GitHub Desktop.
Static IP for GKE cluster

Create a Kyma cluster. By default, GKE uses the Ephemeral IPs. The best option is to use the Cloud NAT together with GKE to get the static IP.

But for demo purpose, the easiest way for me was to disable the auto-scaling and change IP of each VM instance from the existing node pool to Static. (non-production option!)

Disable autoscaling for an existing node pool:

  1. Visit the Google Kubernetes Engine in GCP Console.

  2. Choose the cluster and its node pool and click its Edit button, which looks like a pencil.

  3. Disable Enable autoscaling option.

  4. Click Save.

Change VM instance IP version

  1. Visit the External IP addresses

  2. Choose the IP entry assigned to your VM instance.

  3. Select static option from dropbox menu in Type column.

  4. Set static name and click create.

NOTE: Do that for each instance from your node pool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment