mirror of
https://github.com/cloudnativelabs/kube-router.git
synced 2025-10-16 04:11:10 +02:00
* Standardize k8s-app=kube-router label * Add tolerations to run on master/critical-only nodes * Add critical pod annotation
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: kube-router
|
|
namespace: kube-system
|
|
labels:
|
|
k8s-app: kube-router
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: kube-router
|
|
annotations:
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
spec:
|
|
containers:
|
|
- name: kube-router
|
|
image: cloudnativelabs/kube-router
|
|
args: ["--run-router=false", "--run-firewall=false", "--run-service-proxy=true"]
|
|
securityContext:
|
|
privileged: true
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
volumeMounts:
|
|
- mountPath: /lib/modules
|
|
name: lib-modules
|
|
readOnly: true
|
|
- mountPath: /etc/cni/net.d/10-kuberouter.conf
|
|
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:
|
|
path: /lib/modules
|
|
- name: cni-conf-dir
|
|
hostPath:
|
|
path: /etc/cni/net.d/10-kuberouter.conf
|
|
- name: kubeconfig
|
|
hostPath:
|
|
path: /var/lib/kube-router/kubeconfig
|