mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-09-19 10:30:41 +03:00
Retrieve POD CIDR
This commit is contained in:
@@ -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:
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user