d5b21b34c2
* Add an option to deploy K8s app to test e2e network connectivity and cluster DNS resolve via Kubedns for nethost/simple pods (defaults to false). * Parametrize existing k8s apps templates with kube_namespace and kube_config_dir instead of hardcode. * For CoreOS, ensure nameservers from inventory to be put in the first place to allow hostnet pods connectivity via short names or FQDN and hostnet agents to pass as well, if netchecker deployed. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
26 lines
696 B
YAML
26 lines
696 B
YAML
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 }}
|