2016-09-30 15:23:47 +00:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: netchecker-agent-hostnet
|
|
|
|
name: netchecker-agent-hostnet
|
|
|
|
namespace: {{ netcheck_namespace }}
|
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: netchecker-agent-hostnet
|
|
|
|
labels:
|
|
|
|
app: netchecker-agent-hostnet
|
|
|
|
spec:
|
|
|
|
hostNetwork: True
|
|
|
|
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 }}
|
2016-12-28 13:58:37 +00:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
{% for c in apps_drop_cap %}
|
|
|
|
- {{ c.upper() }}
|
|
|
|
{% endfor %}
|
2016-12-23 14:44:44 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: {{ netchecker_agent_cpu_limit }}
|
|
|
|
memory: {{ netchecker_agent_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ netchecker_agent_cpu_requests }}
|
|
|
|
memory: {{ netchecker_agent_memory_requests }}
|