-
Notifications
You must be signed in to change notification settings - Fork 168
Can *.yml files be deployed? #329
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Yes and no :-) deployment = Kubeclient::Resource.new(YAML.safe_load(File.read('path/to/deployment.yaml')))
client.create_deployment(deployment)
This is being asked repeatedly #325, #187. Would be nice to document in README (PRs welcome!) Would be even better to improve multi-group/version interface... |
Hey @cben, been a while and I've been able to work around most of the issues with However with that I can't seem to create deployments, since I only get I tried the EDIT: It turns out that in order to create deployments, I need to To work around it for now (without having to set up a new Or we could solve it finalizing #241 Thanks ahead, |
Yeah. You need to create a I don't see this changing soon. IMHO it's more realistic in the near term to keep "separate client per API group" but make it easy to create "related" clients from an existing client. I could be wrong, you're welcome to work on #241 if you see a good way. |
Well it would already help if we could expose the neccessary attributes with a setter method. This way one could use one client and just switch the endpoints. This would save the new init. I am currently using memoization to keep the load as low as possible during initialization, but this is more of a workaround. |
Hi everybody,
I am aware that this goes against the purpose of this gem, but I am curious if I could use this gem to deploy yml-files to a Kubernetes cluster (basically
kubectl create -f deployment.yml
) since I am editing these files in ruby before anyways and really like the framework this gem offers.Thanks ahead,
stiller-leser
The text was updated successfully, but these errors were encountered: