Merge pull request #18233 from lollipopman/calico-pod-network-cidr
calico: support kubeadm.pod-network-cidrpull/18591/head
commit
c46252f474
|
@ -72,9 +72,6 @@ func updateYAML(version string) {
|
||||||
`docker\.io\/calico\/cni:.*`: "{{ .BinaryImageName }}",
|
`docker\.io\/calico\/cni:.*`: "{{ .BinaryImageName }}",
|
||||||
`docker\.io\/calico\/node:.*`: "{{ .DaemonSetImageName }}",
|
`docker\.io\/calico\/node:.*`: "{{ .DaemonSetImageName }}",
|
||||||
`docker\.io\/calico\/kube-controllers:.*`: "{{ .DeploymentImageName }}",
|
`docker\.io\/calico\/kube-controllers:.*`: "{{ .DeploymentImageName }}",
|
||||||
`192\.168\.0\.0\/16"`: `192.168.0.0/16"
|
|
||||||
- name: CALICO_IPV4POOL_CIDR
|
|
||||||
value: {{ .PodCIDR }}`,
|
|
||||||
}
|
}
|
||||||
for re, repl := range replacements {
|
for re, repl := range replacements {
|
||||||
yaml = regexp.MustCompile(re).ReplaceAll(yaml, []byte(repl))
|
yaml = regexp.MustCompile(re).ReplaceAll(yaml, []byte(repl))
|
||||||
|
|
|
@ -4930,8 +4930,6 @@ spec:
|
||||||
# no effect. This should fall within `--cluster-cidr`.
|
# no effect. This should fall within `--cluster-cidr`.
|
||||||
# - name: CALICO_IPV4POOL_CIDR
|
# - name: CALICO_IPV4POOL_CIDR
|
||||||
# value: "192.168.0.0/16"
|
# value: "192.168.0.0/16"
|
||||||
- name: CALICO_IPV4POOL_CIDR
|
|
||||||
value: {{ .PodCIDR }}
|
|
||||||
# Disable file logging so `kubectl logs` works.
|
# Disable file logging so `kubectl logs` works.
|
||||||
- name: CALICO_DISABLE_FILE_LOGGING
|
- name: CALICO_DISABLE_FILE_LOGGING
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|
Loading…
Reference in New Issue