Skip to content

Commit

Permalink
Merge pull request #9557 from hakman/automated-cherry-pick-of-#9512-#…
Browse files Browse the repository at this point in the history
…9547-upstream-release-1.18

Automated cherry pick of #9512: Update kube-router to v1.0.0 #9547: Widen the tolerations of kuberouter
  • Loading branch information
k8s-ci-robot authored Jul 13, 2020
2 parents 1b7eb3c + 1696b7e commit ccdf9ef
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 32 deletions.
27 changes: 12 additions & 15 deletions upup/models/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Pulled and modified from https://github.com/cloudnativelabs/kube-router/blob/v0.4.0/daemonset/kubeadm-kuberouter.yaml
# Pulled and modified from https://raw.githubusercontent.com/cloudnativelabs/kube-router/v1.0.0/daemonset/kubeadm-kuberouter.yaml

apiVersion: v1
kind: ConfigMap
Expand Down Expand Up @@ -49,7 +49,7 @@ spec:
serviceAccountName: kube-router
containers:
- name: kube-router
image: docker.io/cloudnativelabs/kube-router:v0.4.0
image: docker.io/cloudnativelabs/kube-router:v1.0.0
args:
- --run-router=true
- --run-firewall=true
Expand Down Expand Up @@ -84,9 +84,12 @@ spec:
- name: kubeconfig
mountPath: /var/lib/kube-router/kubeconfig
readOnly: true
- name: xtables-lock
mountPath: /run/xtables.lock
readOnly: false
initContainers:
- name: install-cni
image: busybox
image: docker.io/cloudnativelabs/kube-router:v1.0.0
command:
- /bin/sh
- -c
Expand All @@ -106,14 +109,7 @@ spec:
name: kube-router-cfg
hostNetwork: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/not-ready
operator: Exists
- operator: Exists
volumes:
- name: lib-modules
hostPath:
Expand All @@ -127,6 +123,10 @@ spec:
- name: kubeconfig
hostPath:
path: /var/lib/kube-router/kubeconfig
- name: xtables-lock
hostPath:
path: /run/xtables.lock
type: FileOrCreate
---
apiVersion: v1
kind: ServiceAccount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,7 @@ spec:
hostNetwork: true
serviceAccountName: kube-router
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
operator: Exists
- operator: Exists
volumes:
- hostPath:
path: /lib/modules
Expand Down
4 changes: 2 additions & 2 deletions upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,8 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
if b.cluster.Spec.Networking.Kuberouter != nil {
key := "networking.kuberouter"
versions := map[string]string{
"k8s-1.6": "0.3.1-kops.3",
"k8s-1.12": "0.4.0-kops.3",
"k8s-1.6": "0.3.1-kops.4",
"k8s-1.12": "1.0.0-kops.2",
}

{
Expand Down

0 comments on commit ccdf9ef

Please sign in to comment.