Retrieve POD CIDR
parent
6b75e02bce
commit
9991a5330c
|
@ -97,11 +97,17 @@ sudo mv containerd/bin/* /bin/
|
||||||
|
|
||||||
Retrieve the Pod CIDR range for the current compute instance:
|
Retrieve the Pod CIDR range for the current compute instance:
|
||||||
|
|
||||||
|
```gcloud```
|
||||||
```
|
```
|
||||||
POD_CIDR=$(curl -s -H "Metadata-Flavor: Google" \
|
POD_CIDR=$(curl -s -H "Metadata-Flavor: Google" \
|
||||||
http://metadata.google.internal/computeMetadata/v1/instance/attributes/pod-cidr)
|
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:
|
Create the `bridge` network configuration file:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue