-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
multi-protocol in single port is not supported #2934
Comments
/kind bug |
dup with #2767. We are working on it but it's not a simple fix. |
thanks @Shell32-Natsu . then I close this |
This git issue was closed, but has the github issue been fixed? |
@natasha41575 I tested this on kustomization.yaml
resource.yaml
patch.yalm
Result:
|
@lackhoa would you mind filing a new issue for your use case and tagging me? I will start investigating this today and Monday |
@natasha41575 Here is the new issue. I have updated my binary to newest version and the problem still exists. I have tested with same set of port info for a deployment merge, it's not working neither. |
It seems
kustomize
does not support "same port, different protocol" service.Here is my test:
How to Reproduce
Files
service.yaml
service-patch.yaml
kustomization.yaml
Command
$ kustomize version {Version:kustomize/v3.8.2 GitCommit:e2973f6ecc9be6187cfd5ecf5e180f842249b3c6 BuildDate:2020-08-29T17:44:01Z GoOs:linux GoArch:amd64} $ kustomize build . apiVersion: v1 kind: Service metadata: labels: test: label name: myapp spec: ports: - name: test-tcp port: 1234 protocol: TCP - name: test-tcp port: 1234 protocol: TCP selector: app: myapp
As you can see, after kustomize build to add
test=label
label in Service type,test-udp
port is changed to TCP protocol and its name so thatKubernetes
throw an duplicated port name error.Kubernetes
could use multiple protocol with same port like this:but
kustomize
couldn't make it.The text was updated successfully, but these errors were encountered: