No need to install jq

pull/758/head
redsoxfantom 2024-01-29 10:22:57 -05:00
parent d9328246e9
commit 50da2e1047
1 changed files with 1 additions and 3 deletions

View File

@ -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: