Skip to content

Commit

Permalink
Merge pull request #4322 from ncopa/kube-router-2.1
Browse files Browse the repository at this point in the history
Update kube-router to 2.1.x
  • Loading branch information
twz123 authored Apr 29, 2024
2 parents 5adf9a4 + a0231bc commit b3f2405
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions pkg/component/controller/kuberouter.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func (k *KubeRouter) Start(_ context.Context) error {
return nil
}

// from https://github.com/cloudnativelabs/kube-router/blob/master/daemonset/
const kubeRouterTemplate = `---
apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -272,6 +273,7 @@ spec:
- mountPath: /etc/kube-router
name: kube-router-cfg
hostNetwork: true
hostPID: true
tolerations:
- effect: NoSchedule
operator: Exists
Expand Down Expand Up @@ -313,6 +315,10 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: KUBE_ROUTER_CNI_CONF_FILE
value: /etc/cni/net.d/10-kuberouter.conflist
livenessProbe:
Expand Down Expand Up @@ -377,6 +383,28 @@ rules:
- get
- list
- watch
- apiGroups:
- "coordination.k8s.io"
resources:
- leases
verbs:
- get
- create
- update
- apiGroups:
- ""
resources:
- services/status
verbs:
- update
- apiGroups:
- "discovery.k8s.io"
resources:
- endpointslices
verbs:
- get
- list
- watch
---
kind: ClusterRoleBinding
Expand Down
2 changes: 1 addition & 1 deletion pkg/constant/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const (
CalicoNodeImage = "quay.io/k0sproject/calico-node"
KubeControllerImage = "quay.io/k0sproject/calico-kube-controllers"
KubeRouterCNIImage = "quay.io/k0sproject/kube-router"
KubeRouterCNIImageVersion = "v1.6.1-iptables1.8.9-0"
KubeRouterCNIImageVersion = "v2.1.0-iptables1.8.9-0"
KubeRouterCNIInstallerImage = "quay.io/k0sproject/cni-node"
KubeRouterCNIInstallerImageVersion = "1.3.0-k0s.0"
OpenEBSRepository = "https://openebs.github.io/charts"
Expand Down

0 comments on commit b3f2405

Please sign in to comment.