26 lines
640 B
YAML
26 lines
640 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 }}
|