Skip to content

Commit

Permalink
daemonset: Critical pod, toleration, and standardization improvements (
Browse files Browse the repository at this point in the history
…#56)

* Standardize k8s-app=kube-router label
* Add tolerations to run on master/critical-only nodes
* Add critical pod annotation
  • Loading branch information
bzub authored Jul 13, 2017
1 parent 37d4192 commit dca10e9
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 13 deletions.
16 changes: 12 additions & 4 deletions daemonset/kube-router-all-service-daemonset-advertise-routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ metadata:
name: kube-router
namespace: kube-system
labels:
app: kube-router
k8s-app: kube-router
spec:
template:
metadata:
labels:
name: kube-router
k8s-app: kube-router
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
hostNetwork: true
containers:
- name: kube-router
image: cloudnativelabs/kube-router
args:
args:
- "--run-router=true"
- "--run-firewall=true"
- "--run-service-proxy=true"
Expand All @@ -39,6 +40,13 @@ spec:
name: cni-conf-dir
- mountPath: /var/lib/kube-router/kubeconfig
name: kubeconfig
hostNetwork: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
volumes:
- name: lib-modules
hostPath:
Expand Down
14 changes: 11 additions & 3 deletions daemonset/kube-router-all-service-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ metadata:
name: kube-router
namespace: kube-system
labels:
app: kube-router
k8s-app: kube-router
spec:
template:
metadata:
labels:
name: kube-router
k8s-app: kube-router
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
hostNetwork: true
containers:
- name: kube-router
image: cloudnativelabs/kube-router
Expand All @@ -32,6 +33,13 @@ spec:
name: cni-conf-dir
- mountPath: /var/lib/kube-router/kubeconfig
name: kubeconfig
hostNetwork: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
volumes:
- name: lib-modules
hostPath:
Expand Down
14 changes: 11 additions & 3 deletions daemonset/kube-router-firewall-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ metadata:
name: kube-router
namespace: kube-system
labels:
app: kube-router
k8s-app: kube-router
spec:
template:
metadata:
labels:
name: kube-router
k8s-app: kube-router
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
hostNetwork: true
containers:
- name: kube-router
image: cloudnativelabs/kube-router
Expand All @@ -32,6 +33,13 @@ spec:
name: cni-conf-dir
- mountPath: /var/lib/kube-router/kubeconfig
name: kubeconfig
hostNetwork: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
volumes:
- name: lib-modules
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ metadata:
name: kube-router
namespace: kube-system
labels:
app: kube-router
k8s-app: kube-router
spec:
template:
metadata:
labels:
name: kube-router
k8s-app: kube-router
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
spec:
hostNetwork: true
containers:
- name: kube-router
image: cloudnativelabs/kube-router
Expand All @@ -32,6 +33,13 @@ spec:
name: cni-conf-dir
- mountPath: /var/lib/kube-router/kubeconfig
name: kubeconfig
hostNetwork: true
tolerations:
- key: CriticalAddonsOnly
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
volumes:
- name: lib-modules
hostPath:
Expand Down

0 comments on commit dca10e9

Please sign in to comment.