36898a2c39
* Changes to assign pod priority to kube components. * Removed the boolean flag pod_priority_assignment * Created new priorityclass k8s-cluster-critical * Created new priorityclass k8s-cluster-critical * Fixed the trailing spaces * Fixed the trailing spaces * Added kube version check while creating Priority Class k8s-cluster-critical * Moved k8s-cluster-critical.yml * Moved k8s-cluster-critical.yml to kube_config_dir
36 lines
1,006 B
Django/Jinja
36 lines
1,006 B
Django/Jinja
---
|
|
kind: DaemonSet
|
|
apiVersion: extensions/v1beta1
|
|
metadata:
|
|
name: contiv-etcd-proxy
|
|
namespace: kube-system
|
|
labels:
|
|
k8s-app: contiv-etcd-proxy
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: contiv-etcd-proxy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: contiv-etcd-proxy
|
|
annotations:
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
spec:
|
|
{% if kube_version|version_compare('v1.11.1', '>=') %}
|
|
priorityClassName: system-node-critical
|
|
{% endif %}
|
|
hostNetwork: true
|
|
hostPID: true
|
|
nodeSelector:
|
|
node-role.kubernetes.io/node: "true"
|
|
containers:
|
|
- name: contiv-etcd-proxy
|
|
image: {{ contiv_etcd_image_repo }}:{{ contiv_etcd_image_tag }}
|
|
env:
|
|
- name: ETCD_LISTEN_CLIENT_URLS
|
|
value: 'http://127.0.0.1:{{ contiv_etcd_listen_port }}'
|
|
- name: ETCD_PROXY
|
|
value: "on"
|
|
- name: ETCD_INITIAL_CLUSTER
|
|
value: '{{ contiv_etcd_endpoints }}'
|