update docs
parent
61cc9be3f3
commit
1b0ca1eb84
|
@ -1,14 +1,51 @@
|
|||
# Infrastructure
|
||||
# Cloud Infrastructure Provisioning
|
||||
|
||||
Kubernetes can be installed just about anywhere physical or virtual machines can be run. In this lab we are going to focus on Google Cloud Platform (IaaS).
|
||||
|
||||
This lab will walk you through provisioning the compute instances required for running a H/A Kubernetes cluster. A total of 9 virtual machines will be created.
|
||||
|
||||
After completing this guide you should have the following compute instances:
|
||||
|
||||
```
|
||||
gcloud compute instances list
|
||||
```
|
||||
|
||||
````
|
||||
NAME ZONE MACHINE_TYPE INTERNAL_IP STATUS
|
||||
controller0 us-central1-f n1-standard-1 10.240.0.20 RUNNING
|
||||
controller1 us-central1-f n1-standard-1 10.240.0.21 RUNNING
|
||||
controller2 us-central1-f n1-standard-1 10.240.0.22 RUNNING
|
||||
etcd0 us-central1-f n1-standard-1 10.240.0.10 RUNNING
|
||||
etcd1 us-central1-f n1-standard-1 10.240.0.11 RUNNING
|
||||
etcd2 us-central1-f n1-standard-1 10.240.0.12 RUNNING
|
||||
worker0 us-central1-f n1-standard-1 10.240.0.30 RUNNING
|
||||
worker1 us-central1-f n1-standard-1 10.240.0.31 RUNNING
|
||||
worker2 us-central1-f n1-standard-1 10.240.0.32 RUNNING
|
||||
````
|
||||
|
||||
> All machines will be provisioned with fixed private IP addresses to simplify the bootstrap process.
|
||||
|
||||
To make our Kubernetes control plane remotely accessable a public IP address will be provisioned and assigned to a Load Balancer that will sit in front of the 3 Kubernetes controllers.
|
||||
|
||||
## Create the Kubernetes Public IP Address
|
||||
|
||||
Create a public IP address that will be used by remote clients to connect to the Kubernetes control plane:
|
||||
|
||||
```
|
||||
gcloud compute addresses create kubernetes
|
||||
```
|
||||
|
||||
```
|
||||
146.148.34.151
|
||||
gcloud compute addresses list
|
||||
```
|
||||
```
|
||||
NAME REGION ADDRESS STATUS
|
||||
kubernetes us-central1 146.148.34.151 RESERVED
|
||||
```
|
||||
|
||||
## etcd
|
||||
## Provision Virtual Machines
|
||||
|
||||
### etcd
|
||||
|
||||
```
|
||||
gcloud compute instances create etcd0 \
|
||||
|
@ -40,7 +77,7 @@ gcloud compute instances create etcd2 \
|
|||
--private-network-ip 10.240.0.12
|
||||
```
|
||||
|
||||
## Kubernetes Control Plane
|
||||
### Kubernetes Controllers
|
||||
|
||||
```
|
||||
gcloud compute instances create controller0 \
|
||||
|
@ -72,7 +109,7 @@ gcloud compute instances create controller2 \
|
|||
--private-network-ip 10.240.0.22
|
||||
```
|
||||
|
||||
## Kubernetes Workers
|
||||
### Kubernetes Workers
|
||||
|
||||
```
|
||||
gcloud compute instances create worker0 \
|
||||
|
@ -103,22 +140,3 @@ gcloud compute instances create worker2 \
|
|||
--machine-type n1-standard-1 \
|
||||
--private-network-ip 10.240.0.32
|
||||
```
|
||||
|
||||
### Verify
|
||||
|
||||
```
|
||||
gcloud compute instances list
|
||||
```
|
||||
|
||||
````
|
||||
NAME ZONE MACHINE_TYPE INTERNAL_IP STATUS
|
||||
controller0 us-central1-f n1-standard-1 10.240.0.20 RUNNING
|
||||
controller1 us-central1-f n1-standard-1 10.240.0.21 RUNNING
|
||||
controller2 us-central1-f n1-standard-1 10.240.0.22 RUNNING
|
||||
etcd0 us-central1-f n1-standard-1 10.240.0.10 RUNNING
|
||||
etcd1 us-central1-f n1-standard-1 10.240.0.11 RUNNING
|
||||
etcd2 us-central1-f n1-standard-1 10.240.0.12 RUNNING
|
||||
worker0 us-central1-f n1-standard-1 10.240.0.30 RUNNING
|
||||
worker1 us-central1-f n1-standard-1 10.240.0.31 RUNNING
|
||||
worker2 us-central1-f n1-standard-1 10.240.0.32 RUNNING
|
||||
````
|
Loading…
Reference in New Issue