It can be helpful to be able to port-forward to the runtime service. Currently, the runtime service selectors match both runtime and admin pods. Since admin pods don't have a http port, attempting to port-forward results in an error:
> kubectl port-forward service/curity-idsvr-runtime-svc 9000:80
error: Pod 'curity-idsvr-admin-pod' does not have a named port 'http-port'
One solution is to add a selector and matching label to the service and deployment respectively like in this commit.
It can be helpful to be able to port-forward to the runtime service. Currently, the runtime service selectors match both runtime and admin pods. Since admin pods don't have a http port, attempting to port-forward results in an error:
One solution is to add a selector and matching label to the service and deployment respectively like in this commit.