6e1c0cdd15
* Add restart for weave service unit * Reuse docker_bin_dir everythere * Limit systemd managed docker containers by CPU/RAM. Do not configure native systemd limits due to the lack of consensus in the kernel community requires out-of-tree kernel patches. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
32 lines
929 B
YAML
32 lines
929 B
YAML
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
labels:
|
|
app: netchecker-agent
|
|
name: netchecker-agent
|
|
namespace: {{ netcheck_namespace }}
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: netchecker-agent
|
|
labels:
|
|
app: netchecker-agent
|
|
spec:
|
|
containers:
|
|
- name: netchecker-agent
|
|
image: "{{ agent_img }}"
|
|
env:
|
|
- name: MY_POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: REPORT_INTERVAL
|
|
value: '{{ agent_report_interval }}'
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
resources:
|
|
limits:
|
|
cpu: {{ netchecker_agent_cpu_limit }}
|
|
memory: {{ netchecker_agent_memory_limit }}
|
|
requests:
|
|
cpu: {{ netchecker_agent_cpu_requests }}
|
|
memory: {{ netchecker_agent_memory_requests }}
|