kube-router/daemonset/kube-router-proxy-daemonset.yaml
Bryan Zubrod dca10e9464 daemonset: Critical pod, toleration, and standardization improvements (#56)
* Standardize k8s-app=kube-router label
* Add tolerations to run on master/critical-only nodes
* Add critical pod annotation
2017-07-13 00:32:36 -05:00

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