How do I port forward directly to an Artifactory node in Helm Installations to bypass nginx?

Matthew Wang
2021-08-22 06:18

To port forward for the artifactory service, you can run:
kubectl port-forward –namespace <namespace> <pod-name> <port>:<port>
kubectl port-forward artifactory-ha-artifactory-ha-primary-0 8082:8082

This command will bind port 8082 on your local machine running kubectl to port 8082 of the artifactory-ha service for the Artifactory node/pod. So now you can run APIs directly against Artifactory such as "curl localhost:8082/artifactory/api/system/ping".