OpenLiberty / open-liberty-operator

Eclipse Public License 2.0
28 stars 36 forks source link

Network policy to allow LTPA job to connect to k8s API service #545

Open leochr opened 5 months ago

leochr commented 5 months ago

Create an egress network policy to allow the LTPA Job to access the k8s API service (kubernetes.default.svc).

Service address can't be referred in network policies. Instead look up the IP address of the API service and use it instead. Operator pod should be injected with the service details as an env variable

kabicin commented 4 months ago

Fix is ready for review for WLO https://github.com/WASdev/websphere-liberty-operator/pull/615, if that looks good I can also port the changes to OLO.

kabicin commented 3 months ago

Rebased onto main and fixed small issue with the bundle. WLO: https://github.com/WASdev/websphere-liberty-operator/pull/615 OLO: https://github.com/OpenLiberty/open-liberty-operator/pull/573 Tests: https://github.ibm.com/websphere/operators/pull/123