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

service deployment fails #794

Open
garfcat opened this issue Oct 27, 2023 · 0 comments
Open

service deployment fails #794

garfcat opened this issue Oct 27, 2023 · 0 comments

Comments

@garfcat
Copy link

garfcat commented Oct 27, 2023

The application configuration is as follows:

{ "hostPort": 8446, "containerPort": 80, "protocol": "TCP", "serviceType": "ClusterIP" }, { "hostPort": 8447, "containerPort": 80, "protocol": "TCP", "serviceType": "ClusterIP" }
When multiple hostPorts are mapped to the same containerPort, the service deployment fails with the following error: "spec.ports[3].name: Duplicate value: 'nginx-80-tcp', spec.ports[4].name: Duplicate value: 'nginx-80-tcp', spec.ports[5].name: Duplicate value: 'nginx-80-tcp'."

In this situation, deduplication should be performed to avoid such conflicts。

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