mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-19 10:30:41 +03:00
Specify how to get public IP address
This commit is contained in:
@@ -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.
|
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```
|
```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)
|
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
|
KUBERNETES_HOSTNAMES=kubernetes,kubernetes.default,kubernetes.default.svc,kubernetes.default.svc.cluster,kubernetes.svc.cluster.local
|
||||||
|
Reference in New Issue
Block a user