Skip to content
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

Merged

Conversation

surajssd
Copy link
Member

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.

@surajssd
Copy link
Member Author

cc: @mkulke @kartikjoshi21

@surajssd
Copy link
Member Author

surajssd commented Apr 17, 2024

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

@@ -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:
Copy link
Contributor

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.

Copy link
Member Author

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]>
@surajssd surajssd force-pushed the k8s-config-support-nodeport branch from 10723cb to e6132f5 Compare April 18, 2024 23:31
Copy link
Contributor

@mythi mythi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fitzthum fitzthum merged commit dc01f45 into confidential-containers:main Apr 19, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants