Closed Skoucail closed 2 months ago
@ievgenii-shepeliuk , any idea?
@Skoucail extraPorts
are adding ports to the K8s Service
,
https://github.com/open-policy-agent/kube-mgmt/blob/6ce4ced195ec78119bc6e8d8d0c236ba77240646/charts/opa-kube-mgmt/templates/service.yaml#L19-L21
and AFAIR - if ports are physically exposed in container, then it should work, if you are not using named ports, but just numbers of a port.
Basically, declaring ports on container is only needed to be able to use named ports
in K8s Service
.
Am I missing smth ?
@eshepelyuk Thanks for the clarification. I started over from 0 and now it works. I must have made an error somewhere.
I'm trying to use this helm chart to deploy OPA-envoy with kube-mgmt. With the properties extraArgs and extraPorts i was able to pass in the envoy plugin settings and expose the GRPC port in the created serice.
But the problem is that there is no option to expose the pods port. My values:
The created deployment contains:
I didn't find any way to also add a containerPort in the ports section to expose the GRPC port 9191