[Self managed]Can't access Operate after port forwarding

I followed this link to install camunda helm chart locally with KIND. After port forwarding for Operate and Tasklist, I found that I was able to access tasklist, but not Operate. Here is the error message I saw:

kubectl port-forward svc/c8-operate  8081:80
Forwarding from 127.0.0.1:8081 -> 8080
Forwarding from [::1]:8081 -> 8080
Handling connection for 8081
Handling connection for 8081
E0601 21:19:06.915505   58498 portforward.go:406] an error occurred forwarding 8081 -> 8080: error forwarding port 8080 to pod 4b1a4fd01e2335747e99171b86f98a99649fc5d5bec9881c72aef7847698ac13, uid : failed to execute portforward in network namespace "/var/run/netns/cni-cd5ca76d-7fb7-ff42-6b73-d4f5ae3e66e4": failed to connect to localhost:8080 inside namespace "4b1a4fd01e2335747e99171b86f98a99649fc5d5bec9881c72aef7847698ac13", IPv4: dial tcp4 127.0.0.1:8080: connect: connection refused IPv6 dial tcp6 [::1]:8080: connect: connection refused
E0601 21:19:06.915836   58498 portforward.go:406] an error occurred forwarding 8081 -> 8080: error forwarding port 8080 to pod 4b1a4fd01e2335747e99171b86f98a99649fc5d5bec9881c72aef7847698ac13, uid : failed to execute portforward in network namespace "/var/run/netns/cni-cd5ca76d-7fb7-ff42-6b73-d4f5ae3e66e4": failed to connect to localhost:8080 inside namespace "4b1a4fd01e2335747e99171b86f98a99649fc5d5bec9881c72aef7847698ac13", IPv4: dial tcp4 127.0.0.1:8080: connect: connection refused IPv6 dial tcp6 [::1]:8080: connect: connection refused
E0601 21:19:06.916291   58498 portforward.go:234] lost connection to pod
E0601 21:19:06.916329   58498 portforward.go:391] error copying from local connection to remote stream: EOF
Handling connection for 8081
E0601 21:19:06.917640   58498 portforward.go:346] error creating error stream for port 8081 -> 8080: EOF

Any help is appreicated!

Hey @AdrianaH

please verify first via kubectl get pods whether all pods are ready and running. It is likely to fail if for example elastic or operate is not up yet and you try to access the component.

Greets
Chris