16dd412d89
- Renaming templates for netchecker - Add dnsPolicy: ClusterFirstWithHostNet to kube-proxy Signed-off-by: Sergii Golovatiuk <sgolovatiuk@mirantis.com>
35 lines
1 KiB
Django/Jinja
35 lines
1 KiB
Django/Jinja
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
|
|
args:
|
|
- "-v=5"
|
|
- "-alsologtostderr=true"
|
|
- "-serverendpoint=netchecker-service:8081"
|
|
- "-reportinterval={{ 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 }}
|