b7692fad09
* 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>
21 lines
488 B
YAML
21 lines
488 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: netchecker-server
|
|
labels:
|
|
app: netchecker-server
|
|
namespace: {{ netcheck_namespace }}
|
|
spec:
|
|
containers:
|
|
- name: netchecker-server
|
|
image: "{{ server_img }}"
|
|
env:
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
ports:
|
|
- containerPort: 8081
|
|
hostPort: 8081
|
|
- name: kubectl-proxy
|
|
image: "{{ kubectl_image }}"
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
|
args:
|
|
- proxy
|