-
Notifications
You must be signed in to change notification settings - Fork 40.3k
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 1.10.0 is unable to create deployments on clusters running 1.8.7 #61943
Comments
/sig cli |
@ihoegen are you by chance a cluster admin? I can reproduce this when I impersonate a non-admin user but not as an admin. It seems to be RBAC related since |
Output
|
/sig auth @liggitt This response isn't correct for an RBAC deny, right? I see the DENY in the apiserver logs. |
You're correct, I switched to the admin role, and I was able to create it. I was able to delete it from the developer role though. The developer rules are:
|
I was able to create it with cluster-admin, and my namespace admin roles as well. Namespace admin rules are:
with a clusterrole of
The non admins also use this same clusterrole. |
looks like a duplicate of #61805 |
@ihoegen this is a non-resource url so it's not covered by those rules. |
Why would it work with kubectl 1.9.3 then?
…On Fri, Mar 30, 2018, 11:03 AM Josh Horwitz ***@***.***> wrote:
@ihoegen <https://github.com/ihoegen> this is a non-resource url so it's
not covered by those rules.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#61943 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKflaoNCdsqt03F702bpVglVLxVRZ4tLks5tjnOCgaJpZM4TB42n>
.
|
Because kubectl 1.9.x doesn't attempt to fetch that schema as a prereq to creating/updating all objects, in order to maintain compatibility with 1.8.x servers (which are within the supported version skew of +/- one version) |
[MILESTONENOTIFIER] Milestone Issue Labels Incomplete Action required: This issue requires label changes. If the required changes are not made within 1 day, the issue will be moved out of the v1.10 milestone. priority: Must specify exactly one of |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Tolerate 406 mime-type errors attempting to load new openapi schema Fixes #61805 Fixes #61943 ```release-note kubectl: improves compatibility with older servers when creating/updating API objects ```
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
/kind bug
Kubernetes version (use
kubectl version
):Environment:
What happened:
When creating a sample deployment using the command
kubectl create -f deployment.yaml
, the following output appears:Error from server (NotAcceptable): unknown
What you expected to happen:
When running the same command again,
kubectl create -f deployment.yaml
, with kubectl version 1.9.3, the following output appears:deployment "nginx-deployment" created
A better error message describing incompatibility might be useful.
How to reproduce it (as minimally and precisely as possible):
deployment.yaml
:kubectl create -f deployment.yaml
using kubectl 1.10.0The text was updated successfully, but these errors were encountered: