No need to install jq
parent
d9328246e9
commit
50da2e1047
|
@ -62,9 +62,7 @@ INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
|
||||||
|
|
||||||
```az```
|
```az```
|
||||||
```
|
```
|
||||||
sudo apt-get update
|
INTERNAL_IP=$(curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance/network/interface/0/ipv4/ipAddress/0/privateIpAddress?api-version=2021-02-01&format=text")
|
||||||
sudo apt-get install -y jq
|
|
||||||
INTERNAL_IP=$(curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance?api-version=2021-02-01" | jq -r '.network.interface[0].ipv4.ipAddress[0].privateIpAddress')
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Each etcd member must have a unique name within an etcd cluster. Set the etcd name to match the hostname of the current compute instance:
|
Each etcd member must have a unique name within an etcd cluster. Set the etcd name to match the hostname of the current compute instance:
|
||||||
|
|
Loading…
Reference in New Issue