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

Expose Schema Registry Port #136

Merged
merged 9 commits into from
Nov 20, 2024
Merged

Expose Schema Registry Port #136

merged 9 commits into from
Nov 20, 2024

Conversation

brianshih1
Copy link
Contributor

@brianshih1 brianshih1 commented Nov 19, 2024

Conditionally expose port 9092 for Kafka clusters (or playground) and 9094 for Schema Registry clusters (or playground)

@brianshih1 brianshih1 marked this pull request as draft November 19, 2024 20:08
@@ -13,14 +13,22 @@ spec:
type: ClusterIP
clusterIP: None
ports:
{{- if or (.Values.config.playground) (not (hasPrefix "vci_sr_" .Values.config.virtualClusterID)) }}
Copy link
Contributor Author

@brianshih1 brianshih1 Nov 20, 2024

Choose a reason for hiding this comment

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

we only want to expose the Kafka port if:

  • we're in playground mode, in case we run a Kafka server on 9092 and a schema registry server on 9094
  • we're dealing with a Kafka virtual cluster, which will never start with vci_sr_ as that is reserved for schema registry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is this overkill? Or we can just always expose 9094 and 9092

@brianshih1 brianshih1 marked this pull request as ready for review November 20, 2024 18:23
@brianshih1 brianshih1 merged commit 3ae049d into main Nov 20, 2024
1 check passed
@brianshih1 brianshih1 deleted the brian/sr-helm branch November 20, 2024 20:05
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.

2 participants