curityio / idsvr-helm

This repository contains the Curity Identity Server helm chart source code.
Apache License 2.0
10 stars 21 forks source link

Ability to port-forward to runtime service #16

Closed shuaibiyy closed 3 years ago

shuaibiyy commented 3 years ago

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.

anestos commented 3 years ago

Please make a PR that would be accepted ;)