Skip to content

Commit

Permalink
update install scripts for containerd 1.6.28+, fix preflights (#5567)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Feb 14, 2025
1 parent c995a8e commit e67f2e4
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 21 deletions.
7 changes: 4 additions & 3 deletions addons/containerd/1.6.28/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ function containerd_install() {
systemctl start kubelet
# If using the internal load balancer the Kubernetes API server will be unavailable until
# kubelet starts the HAProxy static pod. This check ensures the Kubernetes API server
# is available before proceeeding.
# "nodes.v1." is needed becasue addons can have a CRD names "nodes", like nodes.longhorn.io
try_5m kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get nodes.v1.
# is available before proceeding.
# "nodes.v1." is needed because addons can have a CRD names "nodes", like nodes.longhorn.io
# we get the specific node name because as of kubernetes 1.32 the node kubeconfig only has permissions to get the current node
try_5m kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get nodes.v1. "$(get_local_node_name)"
fi
fi
}
Expand Down
7 changes: 4 additions & 3 deletions addons/containerd/1.6.31/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ function containerd_install() {
systemctl start kubelet
# If using the internal load balancer the Kubernetes API server will be unavailable until
# kubelet starts the HAProxy static pod. This check ensures the Kubernetes API server
# is available before proceeeding.
# "nodes.v1." is needed becasue addons can have a CRD names "nodes", like nodes.longhorn.io
try_5m kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get nodes.v1.
# is available before proceeding.
# "nodes.v1." is needed because addons can have a CRD names "nodes", like nodes.longhorn.io
# we get the specific node name because as of kubernetes 1.32 the node kubeconfig only has permissions to get the current node
try_5m kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get nodes.v1. "$(get_local_node_name)"
fi
fi
}
Expand Down
7 changes: 4 additions & 3 deletions addons/containerd/1.6.32/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,10 @@ function containerd_install() {
systemctl start kubelet
# If using the internal load balancer the Kubernetes API server will be unavailable until
# kubelet starts the HAProxy static pod. This check ensures the Kubernetes API server
# is available before proceeeding.
# "nodes.v1." is needed becasue addons can have a CRD names "nodes", like nodes.longhorn.io
try_5m kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get nodes.v1.
# is available before proceeding.
# "nodes.v1." is needed because addons can have a CRD names "nodes", like nodes.longhorn.io
# we get the specific node name because as of kubernetes 1.32 the node kubeconfig only has permissions to get the current node
try_5m kubectl --kubeconfig=/etc/kubernetes/kubelet.conf get nodes.v1. "$(get_local_node_name)"
fi
fi
}
Expand Down
12 changes: 6 additions & 6 deletions addons/containerd/1.6.33/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ spec:
- pass:
when: "ol = 7"
message: "containerd addon supports ol 7"
- warn:
- pass:
when: "centos = 8"
message: "containerd addon supports centos 8, but only up to containerd 1.6.32, which will be installed instead of 1.6.33"
- warn:
message: "containerd addon supports centos 8"
- pass:
when: "rhel = 8"
message: "containerd addon supports rhel 8, but only up to containerd 1.6.32, which will be installed instead of 1.6.33"
- warn:
message: "containerd addon supports rhel 8"
- pass:
when: "ol = 8"
message: "containerd addon supports ol 8, but only up to containerd 1.6.32, which will be installed instead of 1.6.33"
message: "containerd addon supports ol 8"
- pass:
when: "centos = 9"
message: "containerd addon supports centos 9"
Expand Down
12 changes: 6 additions & 6 deletions addons/containerd/1.7.25/host-preflight.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ spec:
- warn:
when: "ol = 7"
message: "containerd addon supports ol 7, but only up to containerd 1.6.33, which will be installed instead of 1.7.25"
- warn:
- pass:
when: "centos = 8"
message: "containerd addon supports centos 8, but only up to containerd 1.6.32, which will be installed instead of 1.7.25"
- warn:
message: "containerd addon supports centos 8"
- pass:
when: "rhel = 8"
message: "containerd addon supports rhel 8, but only up to containerd 1.6.32, which will be installed instead of 1.7.25"
- warn:
message: "containerd addon supports rhel 8"
- pass:
when: "ol = 8"
message: "containerd addon supports ol 8, but only up to containerd 1.6.32, which will be installed instead of 1.7.25"
message: "containerd addon supports ol 8"
- pass:
when: "centos = 9"
message: "containerd addon supports centos 9"
Expand Down

0 comments on commit e67f2e4

Please sign in to comment.