No need to install jq
parent
d9328246e9
commit
50da2e1047
|
@ -62,9 +62,7 @@ INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \
|
|||
|
||||
```az```
|
||||
```
|
||||
sudo apt-get update
|
||||
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')
|
||||
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")
|
||||
```
|
||||
|
||||
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