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

STDIN for extensions/v1beta1 error #75

Open
tibbon opened this issue May 17, 2021 · 4 comments
Open

STDIN for extensions/v1beta1 error #75

tibbon opened this issue May 17, 2021 · 4 comments

Comments

@tibbon
Copy link

tibbon commented May 17, 2021

During ./kube/deploy.sh network tcp://EXAMPLE.com:1194 192.168.1.3/24 192.168.1.1/24 I get this error.

Generating Kubernetes resources
Creating and applying Kubernetes resources
error: error reading /Users/david/code/home_cluster/kube-openvpn/pki/crl.pem: no such file or directory
configmap/openvpn-ccd created
configmap/openvpn-portmapping created
secret/openvpn-pki created
configmap/openvpn-settings created
service/openvpn created
error: unable to recognize "STDIN": no matches for kind "Deployment" in version "extensions/v1beta1"

Perhaps it's due to a newer API version?

% kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-13T13:23:52Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.6+k3s1", GitCommit:"8d0432824a9fd9474b67138b7630c33f285d332f", GitTreeState:"clean", BuildDate:"2021-04-16T19:04:54Z", GoVersion:"go1.15.10", Compiler:"gc", Platform:"linux/arm64"}
@Dominilk
Copy link

having the same problem :(

@Dominilk
Copy link

Okay, I was able to remove the "STDIN" error by converting the deployment file to a newer version.

kubectl convert -f kube/deployment.yaml --output-version apps/v1

Command will print the converted file to STDOUT, which you then just need to put into the deployment file.
Running ./kube/deploy.sh ... again:

Generating Kubernetes resources
Creating and applying Kubernetes resources
error: error reading <path>/kube-openvpn/pki/crl.pem: no such file or directory
configmap/openvpn-ccd created
configmap/openvpn-portmapping created
secret/openvpn-pki created
configmap/openvpn-settings created
service/openvpn created
deployment.apps/openvpn created

@Dominilk
Copy link

Furthermore, this repository currently seems to be a bit outdated.

@frize
Copy link

frize commented Sep 26, 2021

You can also go the folder kube, fix deployment.yaml and deployment-minimal.yaml by set apiVersion: apps/v1

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

No branches or pull requests

3 participants