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

createOrReplace is used as a replacement for apply, but does not work when replacing #3420

Closed
DimoDonchev opened this issue Aug 23, 2021 · 3 comments

Comments

@DimoDonchev
Copy link

Should createOrReplace work similar to kubectl apply or kubectl create?

When i try to modify a service with createOrReplace which already exists i get an error:
Message: Service "gateway-external" is invalid: spec.ports[0].nodePort: Invalid value: 32005: provided port is already allocated.
This is the exact same output when I use kubectl create.
Is it possible to simulate kubectl apply via code which would not throw this error but instead would return:
service/gateway-external configured

@rohanKanojia
Copy link
Member

Relates to #2454 #3334

@stale
Copy link

stale bot commented Nov 21, 2021

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants