Hi @olha ,
I try to get k6 to work again at the moment. Let’s forget about my other application and the Ingress at the moment.
I wrote a test script for k6 with one of your example tests.

This test has nothing to do with my ingress or anything else. The Problem is, this test wont start at all too. I got these error messages:
Logs from the k6-sample starter:
Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
curl: (6) Couldn’t resolve host ‘k6-sample-service-1’
Logs from kube-dns:
[ERROR] plugin/errors: 2 k6-sample-service-1. AAAA: read udp 172.17.0.2:36425->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. A: read udp 172.17.0.2:48639->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. A: read udp 172.17.0.2:39893->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. A: read udp 172.17.0.2:49073->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. AAAA: read udp 172.17.0.2:40277->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. AAAA: read udp 172.17.0.2:57768->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. AAAA: read udp 172.17.0.2:44683->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. A: read udp 172.17.0.2:55877->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. A: read udp 172.17.0.2:45956->192.168.65.2:53: i/o timeout
[ERROR] plugin/errors: 2 k6-sample-service-1. A: read udp 172.17.0.2:46514->192.168.65.2:53: i/o timeout
The k6 service is not able to find the k6 sample pods I guess. But why? How can this Add-DnsClientNrptRule disturb the communication inside a Kubernetes cluster?
I started a complete new cluster with only the K6 operator and test-script inside and I got the same errors again.
I searched for other DnsClientNrptRules which could effect the namespace default but there are no further rules.
output of powershell:
PS C:\Users\becker\Desktop> Get-DnsClientNrptRule | Where-Object {$_.Namespace -eq ‘.default’}
PS C:\Users\becker\Desktop>
Is there anything I could do or test?
Edit:
I tested the DNS resolve with a dummy pod from inside Kubernetes:
PS C:\Users\becker\Desktop> kubectl logs k6-sample-starter-tlm6j
Warning: Transient problem: timeout Will retry in 1 seconds. 3 retries left.
Warning: Transient problem: timeout Will retry in 2 seconds. 2 retries left.
Warning: Transient problem: timeout Will retry in 4 seconds. 1 retries left.
curl: (6) Couldn’t resolve host ‘k6-sample-service-1’
PS C:\Users\becker\Desktop> kubectl exec -i -t dnsutils – nslookup k6-sample-service-1
Server: 10.96.0.10
Address: 10.96.0.10#53
Name: k6-sample-service-1.default.svc.cluster.local
Address: 10.98.108.218
The dummy container can find the k6 service without any problem, but the k6-sample starter can’t find it.