mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-17 17:40:40 +03:00
add support for aws
This commit is contained in:
@@ -85,14 +85,14 @@ EOF
|
|||||||
#### GCE
|
#### GCE
|
||||||
|
|
||||||
```
|
```
|
||||||
export INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
|
INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
|
||||||
http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip)
|
http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### AWS
|
#### AWS
|
||||||
|
|
||||||
```
|
```
|
||||||
export INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
|
INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -100,7 +100,7 @@ export INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4)
|
|||||||
Set the etcd name:
|
Set the etcd name:
|
||||||
|
|
||||||
```
|
```
|
||||||
export ETCD_NAME=etcd$(echo $INTERNAL_IP | cut -c 11)
|
ETCD_NAME=etcd$(echo $INTERNAL_IP | cut -c 11)
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user