-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k8s-config: Add support for NodePort service type #371
k8s-config: Add support for NodePort service type #371
Conversation
To test this PR run the following set of commands: cd kbs/config/kubernetes
touch overlays/key.bin
kustomize build nodeport | grep -B 12 NodePort |
kbs/config/kubernetes/README.md
Outdated
@@ -44,6 +44,24 @@ kustomize edit add resource ingress.yaml | |||
popd | |||
``` | |||
|
|||
## Optional: Expose KBS using Nodeport | |||
|
|||
If you would like to expose KBS service using Nodeport then add the following snippet to the `overlays/kustomization.yaml` file in the `patches:` section: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My preference would be to have a dedicated kustomization for this, e.g, overlays/nodeport
so that manual editing can be avoided.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, PTAL.
Right now the KBS service is only exposed as the ClusterIP service type. And to be able to really use the KBS service you need to expose it using an Ingress, but this is not always feasible. So this commit adds a way for the KBS service to be exposed as a NodePort service type. Signed-off-by: Suraj Deshmukh <[email protected]>
10723cb
to
e6132f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Right now the KBS service is only exposed as the
ClusterIP service type. And to be able to really
use the KBS service you need to expose it using an Ingress, but this is not always feasible. So this
commit adds a way for the KBS service to be
exposed as a NodePort service type.