mirror of https://github.com/kubernetes/kops.git
Merge pull request #14773 from johngmyers/calico-ipv6
Calico: Don't try to upgrade IPAM in IPv6 clusters
This commit is contained in:
commit
0913a11b48
|
@ -55,7 +55,7 @@ spec:
|
||||||
version: 9.99.0
|
version: 9.99.0
|
||||||
- id: k8s-1.25
|
- id: k8s-1.25
|
||||||
manifest: networking.projectcalico.org/k8s-1.25.yaml
|
manifest: networking.projectcalico.org/k8s-1.25.yaml
|
||||||
manifestHash: 87046f7e66df6437ddf0a74ce7871dad02e0961a4a47c36a0fd6fff6434aac41
|
manifestHash: 219395986f66685fc3d5b0d070c875b3fc02470f28e4fb2fd6f2e30733ffc153
|
||||||
name: networking.projectcalico.org
|
name: networking.projectcalico.org
|
||||||
prune:
|
prune:
|
||||||
kinds:
|
kinds:
|
||||||
|
|
|
@ -4631,33 +4631,6 @@ spec:
|
||||||
readOnly: true
|
readOnly: true
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
initContainers:
|
initContainers:
|
||||||
- command:
|
|
||||||
- /opt/cni/bin/calico-ipam
|
|
||||||
- -upgrade
|
|
||||||
env:
|
|
||||||
- name: KUBERNETES_NODE_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: spec.nodeName
|
|
||||||
- name: CALICO_NETWORKING_BACKEND
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: calico_backend
|
|
||||||
name: calico-config
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: kubernetes-services-endpoint
|
|
||||||
optional: true
|
|
||||||
image: docker.io/calico/cni:v3.24.5
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
name: upgrade-ipam
|
|
||||||
securityContext:
|
|
||||||
privileged: true
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /var/lib/cni/networks
|
|
||||||
name: host-local-net-dir
|
|
||||||
- mountPath: /host/opt/cni/bin
|
|
||||||
name: cni-bin-dir
|
|
||||||
- command:
|
- command:
|
||||||
- /opt/cni/bin/install
|
- /opt/cni/bin/install
|
||||||
env:
|
env:
|
||||||
|
@ -4758,9 +4731,6 @@ spec:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/log/calico/cni
|
path: /var/log/calico/cni
|
||||||
name: cni-log-dir
|
name: cni-log-dir
|
||||||
- hostPath:
|
|
||||||
path: /var/lib/cni/networks
|
|
||||||
name: host-local-net-dir
|
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/run/nodeagent
|
path: /var/run/nodeagent
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
|
|
|
@ -4452,6 +4452,7 @@ spec:
|
||||||
terminationGracePeriodSeconds: 0
|
terminationGracePeriodSeconds: 0
|
||||||
priorityClassName: system-node-critical
|
priorityClassName: system-node-critical
|
||||||
initContainers:
|
initContainers:
|
||||||
|
{{- if not IsIPv6Only }}
|
||||||
# This container performs upgrade from host-local IPAM to calico-ipam.
|
# This container performs upgrade from host-local IPAM to calico-ipam.
|
||||||
# It can be deleted if this is a fresh installation, or if you have already
|
# It can be deleted if this is a fresh installation, or if you have already
|
||||||
# upgraded to use calico-ipam.
|
# upgraded to use calico-ipam.
|
||||||
|
@ -4481,6 +4482,7 @@ spec:
|
||||||
name: cni-bin-dir
|
name: cni-bin-dir
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
{{- end }}
|
||||||
# This container installs the CNI binaries
|
# This container installs the CNI binaries
|
||||||
# and CNI network config file on each node.
|
# and CNI network config file on each node.
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
|
@ -4814,12 +4816,14 @@ spec:
|
||||||
- name: cni-log-dir
|
- name: cni-log-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/log/calico/cni
|
path: /var/log/calico/cni
|
||||||
|
{{- if not IsIPv6Only }}
|
||||||
# Mount in the directory for host-local IPAM allocations. This is
|
# Mount in the directory for host-local IPAM allocations. This is
|
||||||
# used when upgrading from host-local to calico-ipam, and can be removed
|
# used when upgrading from host-local to calico-ipam, and can be removed
|
||||||
# if not using the upgrade-ipam init container.
|
# if not using the upgrade-ipam init container.
|
||||||
- name: host-local-net-dir
|
- name: host-local-net-dir
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/cni/networks
|
path: /var/lib/cni/networks
|
||||||
|
{{- end }}
|
||||||
# Used to create per-pod Unix Domain Sockets
|
# Used to create per-pod Unix Domain Sockets
|
||||||
- name: policysync
|
- name: policysync
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|
Loading…
Reference in New Issue