-
Notifications
You must be signed in to change notification settings - Fork 923
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
Named container port gets different name than in manifest #906
Comments
@Duologic I'm not able to reproduce this. Here's the deployment I'm using.
Can you test with this or provide a fully reproducible manifest? Are you able to reproduce on a supported version of Kubernetes (1.16, 1.17, 1.18)? Also I noticed you have /triage not-reproducible |
A newer Kubernetes version might resolve it, we're a in the process of upgrading our clusters, will reopen if this is still an issue after upgrade to 1.16. |
I can report the same issue on
|
/assign @dougsland |
@eddiezane: GitHub didn't allow me to assign the following users: dougsland. Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
Unfortunately, I cannot reproduce the issue. $ kubectl version @Duologic do you mind to share with us a manifest to deploy and a manifest to diff? So would help us to debug and catch this. |
Hello, sorry for the delay. I surely have trouble reproducing this in an isolated way too, but I think I might have something. The original Deployment manifest didn't have the ports 'named', we added that later. By the looks of it, that is what is causing the problem. Version info:
The used manifest:
|
hey, |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
I guess this is a duplicate of kubernetes/kubernetes#39188 |
What happened:
I have a deployment with a single container and ports:
I have a manifest that is the same:
I compare both with
kubectl diff
:This is not what should happen, no difference is expected but considering comments #735, kubernetes or kubectl might consolidate the ports, so I apply:
Again, I check the diff, expecting idempotency:
I get another diff, toggling the port name again.
What you expected to happen:
In the first case, I would expect that the Port/Protocol pair could be named differently.
If for some reason there is consolidation happening on solely the Port, then I expect idempotency.
How to reproduce it (as minimally and precisely as possible): see above
Anything else we need to know?:
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"archive", BuildDate:"2020-05-22T20:04:08Z", GoVersion:"go1.14.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.10-gke.42", GitCommit:"42bef28c2031a74fc68840fce56834ff7ea08518", GitTreeState:"clean", BuildDate:"2020-06-02T16:07:00Z", GoVersion:"go1.12.12b4", Compiler:"gc", Platform:"linux/amd64"}
Cloud provider or hardware configuration: Google/GKE
OS (e.g:
cat /etc/os-release
): server: Google's COS, client: Arch LinuxThe text was updated successfully, but these errors were encountered: