-
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
Kubectl command can not overwrite the service or deployment which be changed by manual update. #975
Comments
@Darren-wh: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The 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 @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 |
May be slightly related to #906 |
If I understood correctly: first you created a service (manifest.yaml):
Step 1:
Second you update it manually to add a new port:
In the final step you wanna get back in the first stage doing:
Correct? If yes, I can't see anything wrong. It will only change the data the contains in that yaml. If you wanna get back in the original state from yaml:
If not, please help me understand your use case :) |
no response, closing this one for now. Feel free to re-open in case you still think this report is valid. |
@dougsland: Closing this issue. 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. |
Kubectl command can not overwrite the service or deployment which be changed by manual update. (for examples like service port or containers port)
1.Preparing the deployment and service
2.use the kubectl command to deploy service.
3.using the "kubectl edit deployment deployment" or service to add new Containers configuration and save.
Then kubernetes will do a rolling update.
4.using the kubectl command with old deployment and service code (without new Containers port) to deploy service.
Then the kubernetes will do a rolling update. And you can check the service or deployment, you will find new Containers configuration is still there., it doesn't be to overwrite by the old version.
5. The service has been updated , but the new add port configuration still.
for examples:
old service:
kubectl edit service (add new port)
Then use the old version to apply the service. The service has been updated, but the new add port configuration still there.
The text was updated successfully, but these errors were encountered: