mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-07-27 22:23:54 +03:00
add aws support
This commit is contained in:
@@ -120,13 +120,27 @@ openssl x509 -in ca.pem -text -noout
|
||||
|
||||
In this section we will generate a TLS certificate that will be valid for all Kubernetes components. This is being done for ease of use. In production you should strongly consider generating individual TLS certificates for each component.
|
||||
|
||||
Create the `kubernetes-csr.json` file:
|
||||
### Set the Kubernetes Public IP Address
|
||||
|
||||
#### GCE
|
||||
|
||||
```
|
||||
export KUBERNETES_PUBLIC_IP_ADDRESS=$(gcloud compute addresses describe kubernetes \
|
||||
--format 'value(address)')
|
||||
```
|
||||
|
||||
#### AWS
|
||||
|
||||
```
|
||||
export KUBERNETES_PUBLIC_IP_ADDRESS=$(aws ec2 allocate-address \
|
||||
--domain vpc | \
|
||||
jq -r '.PublicIp')
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Create the `kubernetes-csr.json` file:
|
||||
|
||||
```
|
||||
cat > kubernetes-csr.json <<EOF
|
||||
{
|
||||
|
Reference in New Issue
Block a user