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

Error at deploy if add two registries with same port #158

Open
F43RY opened this issue Feb 14, 2022 · 1 comment
Open

Error at deploy if add two registries with same port #158

F43RY opened this issue Feb 14, 2022 · 1 comment

Comments

@F43RY
Copy link

F43RY commented Feb 14, 2022

Hi,
I have the following error when deploy the chart containing 2 different registries with same port:

Error: services "nexus3-nexus-repository-manager-docker-5000" already exists

The following is a part of my values.yaml in nexus.docker.registries configuration:

nexus:
  docker:
    enabled: true
    registries:
      - host: registry.fe.mydomain.local
        port: 5000
        secretName: secret-nexus
      - host: registry.be.mydomain.local
        port: 5000
        secretName: secret-nexus

I think the generated name of service in template should not be based only on port number but on further details.
AFAIU the problem could be the following line (38) in service.yaml template where service name is generated:

name: {{ include "nexus.fullname" $ | trunc 49 }}-docker-{{ $registry.port }}

thx

F43RY added a commit to F43RY/helm3-charts that referenced this issue Feb 15, 2022
Changed naming for ingress and backend service to fix issue  sonatype#158
F43RY added a commit to F43RY/helm3-charts that referenced this issue Feb 15, 2022
introduced commit to fix sonatype#158
F43RY added a commit to F43RY/helm3-charts that referenced this issue Feb 15, 2022
Used registries id for naming containers to fix sonatype#158
@F43RY
Copy link
Author

F43RY commented Feb 15, 2022

Proposed fix with PR #161

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

No branches or pull requests

1 participant