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

fix #12: choose daemonset apiVersion based on server version #13

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

greenhandatsjtu
Copy link
Contributor

Current CDK Version

v0.1.10 (latest)

Environment

Here's my K8s version:

root@node1:/home/ubuntu# kubectl version --short                
Client Version: v1.20.2
Server Version: v1.20.2

Problem

#12

Steps to Reproduce the Problem

In a K8s cluster with server version >=v1.16, k8s-backdoor-daemonset script will fail:

/ # ./cdk run k8s-backdoor-daemonset anonymous alpine "echo helloworld; sleep 60000"
2021/04/08 10:47:13 getting K8s api-server API addr.
        Find K8s api-server in ENV: https://127.0.0.1:8080
2021/04/08 10:47:13 trying to deploy daemonset with image:alpine to k8s-app:kube-proxy
2021/04/08 10:47:13 api-server response:
{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server could not find the requested resource","reason":"NotFound","details":{},"code":404}

Screenshots

Before

image

After

image
image

@Xyntax Xyntax merged commit 92aeba4 into cdk-team:main Apr 13, 2021
@Xyntax
Copy link
Member

Xyntax commented Apr 13, 2021

good job bro!

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

Successfully merging this pull request may close these issues.

2 participants