Retrieve POD CIDR

pull/758/head
redsoxfantom 2024-01-29 12:29:27 -05:00
parent 6b75e02bce
commit 9991a5330c
1 changed files with 6 additions and 0 deletions

View File

@ -97,11 +97,17 @@ sudo mv containerd/bin/* /bin/
Retrieve the Pod CIDR range for the current compute instance:
```gcloud```
```
POD_CIDR=$(curl -s -H "Metadata-Flavor: Google" \
http://metadata.google.internal/computeMetadata/v1/instance/attributes/pod-cidr)
```
```az```
```
POD_CIDR=$(curl -s -H Metadata:true --noproxy "*" "http://169.254.169.254/metadata/instance/compute/tagsList/0/value?api-version=2021-02-01&format=text")
```
Create the `bridge` network configuration file:
```