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>
20 lines
371 B
YAML
20 lines
371 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kubedns
|
|
namespace: {{ kube_namespace }}
|
|
labels:
|
|
k8s-app: kubedns
|
|
kubernetes.io/cluster-service: "true"
|
|
kubernetes.io/name: "kubedns"
|
|
spec:
|
|
selector:
|
|
k8s-app: kubedns
|
|
clusterIP: {{ skydns_server }}
|
|
ports:
|
|
- name: dns
|
|
port: 53
|
|
protocol: UDP
|
|
- name: dns-tcp
|
|
port: 53
|
|
protocol: TCP
|