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
|
||||
- id: k8s-1.25
|
||||
manifest: networking.projectcalico.org/k8s-1.25.yaml
|
||||
manifestHash: 87046f7e66df6437ddf0a74ce7871dad02e0961a4a47c36a0fd6fff6434aac41
|
||||
manifestHash: 219395986f66685fc3d5b0d070c875b3fc02470f28e4fb2fd6f2e30733ffc153
|
||||
name: networking.projectcalico.org
|
||||
prune:
|
||||
kinds:
|
||||
|
|
|
@ -4631,33 +4631,6 @@ spec:
|
|||
readOnly: true
|
||||
hostNetwork: true
|
||||
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:
|
||||
- /opt/cni/bin/install
|
||||
env:
|
||||
|
@ -4758,9 +4731,6 @@ spec:
|
|||
- hostPath:
|
||||
path: /var/log/calico/cni
|
||||
name: cni-log-dir
|
||||
- hostPath:
|
||||
path: /var/lib/cni/networks
|
||||
name: host-local-net-dir
|
||||
- hostPath:
|
||||
path: /var/run/nodeagent
|
||||
type: DirectoryOrCreate
|
||||
|
|
|
@ -4452,6 +4452,7 @@ spec:
|
|||
terminationGracePeriodSeconds: 0
|
||||
priorityClassName: system-node-critical
|
||||
initContainers:
|
||||
{{- if not IsIPv6Only }}
|
||||
# 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
|
||||
# upgraded to use calico-ipam.
|
||||
|
@ -4481,6 +4482,7 @@ spec:
|
|||
name: cni-bin-dir
|
||||
securityContext:
|
||||
privileged: true
|
||||
{{- end }}
|
||||
# This container installs the CNI binaries
|
||||
# and CNI network config file on each node.
|
||||
- name: install-cni
|
||||
|
@ -4814,12 +4816,14 @@ spec:
|
|||
- name: cni-log-dir
|
||||
hostPath:
|
||||
path: /var/log/calico/cni
|
||||
{{- if not IsIPv6Only }}
|
||||
# Mount in the directory for host-local IPAM allocations. This is
|
||||
# used when upgrading from host-local to calico-ipam, and can be removed
|
||||
# if not using the upgrade-ipam init container.
|
||||
- name: host-local-net-dir
|
||||
hostPath:
|
||||
path: /var/lib/cni/networks
|
||||
{{- end }}
|
||||
# Used to create per-pod Unix Domain Sockets
|
||||
- name: policysync
|
||||
hostPath:
|
||||
|
|
Loading…
Reference in New Issue