From a53802953eee10e2937e9b06d9cb52939de91634 Mon Sep 17 00:00:00 2001 From: redsoxfantom Date: Mon, 29 Jan 2024 10:06:31 -0500 Subject: [PATCH] Specify how to get public IP address --- docs/04-certificate-authority.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/04-certificate-authority.md b/docs/04-certificate-authority.md index 4e3074c..1885647 100644 --- a/docs/04-certificate-authority.md +++ b/docs/04-certificate-authority.md @@ -311,7 +311,7 @@ kube-scheduler.pem The `kubernetes-the-hard-way` static IP address will be included in the list of subject alternative names for the Kubernetes API Server certificate. This will ensure the certificate can be validated by remote clients. -Generate the Kubernetes API Server certificate and private key: +First get address of the public IP that you generated earlier: ```gcloud``` ``` @@ -325,6 +325,7 @@ KUBERNETES_PUBLIC_ADDRESS=$(gcloud compute addresses describe kubernetes-the-har KUBERNETES_PUBLIC_ADDRESS=$(az network public-ip show --name kubernetes-the-hard-way --query ipAddress -o tsv) ``` +Then generate the Kubernetes API Server certificate and private key: ``` KUBERNETES_HOSTNAMES=kubernetes,kubernetes.default,kubernetes.default.svc,kubernetes.default.svc.cluster,kubernetes.svc.cluster.local