From ffd8ad9dc8b3274a37fad3bf3d9e8050febc99a7 Mon Sep 17 00:00:00 2001 From: Tom English Date: Thu, 21 Dec 2023 06:13:51 -0500 Subject: [PATCH] Create public IP address --- docs/03-compute-resources.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/03-compute-resources.md b/docs/03-compute-resources.md index e3b07c8..649623d 100644 --- a/docs/03-compute-resources.md +++ b/docs/03-compute-resources.md @@ -126,6 +126,7 @@ az network nsg rule create \ Allocate a static IP address that will be attached to the external load balancer fronting the Kubernetes API Servers: +```gcloud``` ``` gcloud compute addresses create kubernetes-the-hard-way \ --region $(gcloud config get-value compute/region) @@ -144,6 +145,28 @@ NAME ADDRESS/RANGE TYPE PURPOSE NETWORK REGION S kubernetes-the-hard-way XX.XXX.XXX.XXX EXTERNAL us-west1 RESERVED ``` +```az``` +``` +az network public-ip create \ + --name kubernetes-the-hard-way \ + --allocation-method Static + --version IPv4 +``` + +Verify the `kubernetes-the-hard-way` static IP address was created in your default Location: + +``` +az network public-ip list +``` + +> output + +``` +Name ResourceGroup Location Zones Address IdleTimeoutInMinutes ProvisioningState +----------------------- ---------------- ---------- ------- --------------- ---------------------- ------------------- +kubernetes-the-hard-way k8s-the-hard-way eastus XXX.XXX.XXX.XXX 4 Succeeded +``` + ## Compute Instances The compute instances in this lab will be provisioned using [Ubuntu Server](https://www.ubuntu.com/server) 20.04, which has good support for the [containerd container runtime](https://github.com/containerd/containerd). Each compute instance will be provisioned with a fixed private IP address to simplify the Kubernetes bootstrapping process.