Skip to content

Commit

Permalink
Merge pull request #16116 from hakman/automated-cherry-pick-of-#16110…
Browse files Browse the repository at this point in the history
…-upstream-release-1.28

Automated cherry pick of #16110: Update kube-router to v1.6.0
  • Loading branch information
k8s-ci-robot authored Nov 20, 2023
2 parents ecc9d8c + a928ed9 commit 641add5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
2 changes: 0 additions & 2 deletions docs/networking/kube-router.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Kube-router

⚠ The Kube-router CNI is not supported for Kubernetes 1.28 or later.

[Kube-router](https://github.com/cloudnativelabs/kube-router) is project that provides one cohesive solution that provides CNI networking for pods, an IPVS based network service proxy and iptables based network policy enforcement.

Kube-router also provides a service proxy, so kube-proxy will not be deployed in to the cluster.
Expand Down
2 changes: 1 addition & 1 deletion docs/releases/1.27-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ they would do so when the respective `topology` was set to `public`.

* Support for Ubuntu 18.04 is deprecated and will be removed in kOps 1.28.

* Canal, Flannel, and Kube-Router are deprecated and support will be removed for Kubernetes 1.28 and later.
* Canal, and Flannel are deprecated and support will be removed for Kubernetes 1.28 and later.

* Support for AWS Classic Load Balancer for API is deprecated and should not be used for newly created clusters.

Expand Down
2 changes: 1 addition & 1 deletion docs/releases/1.28-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This is a document to gather the release notes prior to the release.

* Support for Ubuntu 18.04 is has been removed.

* Support for Canal, Flannel, and Kube-Router has been removed for Kubernetes 1.28 and later.
* Support for Canal and Flannel have been removed for Kubernetes 1.28 and later.

* RHEL-based distros will no longer have `wget`, `curl`, `python2`, and `git` packages installed. Install them with [hooks](/cluster_spec/#hooks) if needed.

Expand Down
4 changes: 1 addition & 3 deletions pkg/apis/kops/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -1144,9 +1144,7 @@ func validateNetworking(cluster *kops.Cluster, v *kops.NetworkingSpec, fldPath *
}
optionTaken = true

if cluster.IsKubernetesGTE("1.28") {
allErrs = append(allErrs, field.Forbidden(fldPath.Child("kubeRouter"), "kube-router is not supported for Kubernetes >= 1.28"))
} else if cluster.Spec.IsIPv6Only() {
if cluster.Spec.IsIPv6Only() {
allErrs = append(allErrs, field.Forbidden(fldPath.Child("kubeRouter"), "kube-router does not support IPv6"))
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pulled and modified from https://raw.githubusercontent.com/cloudnativelabs/kube-router/v1.5.3/daemonset/kubeadm-kuberouter.yaml
# Pulled and modified from https://raw.githubusercontent.com/cloudnativelabs/kube-router/v1.6.0/daemonset/kubeadm-kuberouter.yaml

apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -62,7 +62,7 @@ spec:
serviceAccountName: kube-router
containers:
- name: kube-router
image: docker.io/cloudnativelabs/kube-router:v1.5.3
image: docker.io/cloudnativelabs/kube-router:v1.6.0
args:
- --run-router=true
- --run-firewall=true
Expand Down Expand Up @@ -103,7 +103,7 @@ spec:
readOnly: false
initContainers:
- name: install-cni
image: docker.io/cloudnativelabs/kube-router:v1.5.3
image: docker.io/cloudnativelabs/kube-router:v1.6.0
command:
- /bin/sh
- -c
Expand Down

0 comments on commit 641add5

Please sign in to comment.