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

Socket sinks should not create containerPorts #348

Open
ribetm opened this issue Nov 27, 2023 · 2 comments
Open

Socket sinks should not create containerPorts #348

ribetm opened this issue Nov 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ribetm
Copy link

ribetm commented Nov 27, 2023

I have an Aggregator v0.23 (chart 0.31.0) with the following customConfig:

sinks:
    some_output:
        type: socket
        inputs: []
        mode: tcp
        address: "example.com:1234"

which automatically adds a containerPort to my StatefulSet:

  # Source: vector/templates/statefulset.yaml
  apiVersion: apps/v1
  kind: StatefulSet
  spec:
    template:
      spec:
        containers:
          - name: vector
            ports:
              - name: some_output
                containerPort: 1234
                protocol: TCP

As far as I know this is not necessary. Am I missing something ? Is it possible to avoid this ?

Thank you

@dsmith3197 dsmith3197 added the bug Something isn't working label Dec 12, 2023
@dsmith3197
Copy link
Contributor

Hi @ribetm,

Thanks for bringing this to our attention. I've confirmed this behavior as well

helm install --dry-run --debug -f values.yaml vector vector/vector

with the following values.yaml file.

customConfig:
  sinks:
    some_output:
        type: socket
        inputs: []
        mode: tcp
        address: "example.com:1234"

As you've noted, 1234 should not be included as a container port.

As a workaround for now, you can manually specify the containerPorts in the values.yaml file to avoid exposing that port.

@dani-CO-CN
Copy link

AFAICT: this applies to all sinks that are not pull based, not just sockets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants