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>
15 lines
279 B
YAML
15 lines
279 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: netchecker-service
|
|
namespace: {{ netcheck_namespace }}
|
|
spec:
|
|
selector:
|
|
app: netchecker-server
|
|
ports:
|
|
-
|
|
protocol: TCP
|
|
port: 8081
|
|
targetPort: 8081
|
|
nodePort: {{ netchecker_port }}
|
|
type: NodePort
|