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
Proposal: Adding Kubernetes Target to spin deploy Command #1129
Comments
This would be really interesting to have, but my first reaction is to suggest doing it as a plugin. We are thinking about moving Fermyon Cloud deployment to a plugin as well, so this would fit with the long-term architecture we plan for deployment commands. It would mean the UI would end up as something like |
Is writing a SIP a good starting point for this work? |
cc @bacongobbler, who is interested in this as well. |
@Mossaka We've not previously done SIPs for plugins - it's kind of free for authors to do their own thing. But that's certainly a great way to refine scope, UX and design, and get feedback from other folks who are interested. I'd say go for it. Are you okay with driving that? |
A generic We would also need to agree what the behavior of a "deploy" means for both the Fermyon Cloud and for Kubernetes. For example, we plan to introduce custom domains to the Fermyon Cloud. That has potential to leak those abstractions to As others have stated, my first impression on this proposal would be to start both When we decide to implement Spin 2, we can make a more coordinated effort to a generic What are your thoughts on that, @Mossaka? |
To get started, could
I am not sure becasue I need more background on how will these features be implemented concretly. But ideally features that are specific to Fermyon Cloud like "custom domains" should be decoupled from features to containerd-wasm-shim. Are you suggesting that this is difficult to achieve?
Yes, I agree. I am mostly interested in the experience of deploying to K8s so I will be focusing on
Oh interesting! Happy to! I am not seeing this as a blocker to the |
@Mossaka Agree, I don't think future convergence is a blocker. I would love to get something working; then if and when we tackle convergence, we will at least have a working reference point to guide that design. |
https://github.com/chrismatteson/spin-plugin-k8s It looks like this repo has added a k8s plugin to spin. Very nice! |
@Mossaka are you ok with closing this issue? |
No dissent so closing |
Hey Fermyon friends! I would like to propose an extention to
spin deploy
command to target Kubernetes clusters. Currently, Spin only supports deploying Spin applications to Fermyon Cloud platform. Adding the ability to deploy to K8s clusters will provide greater flexibility for developers who may want to test their applications in a local cluster or host them on a different managed cloud platform, such as Azure Kubernetes Service (AKS).This proposal will leverage on the capability of
spin oci
to package to push a Spin application to an OCI registry. Thespin deploy k8s
command will look for a default k8s context, create a default k8s deployment with 3 replicas that pull the Spin application from the OCI registry. Additionally, it will look for a registered runtime class namedwasmtime-spin-v1
spin shim via the containerd-wasm-shims project built on top ofrunwasi
. Finally it will deploy the Spin workload to the target K8s cluster.This is an initial idea and far from a complete draft. I would love to hear your thoughts and opinions on this proposal and welcome any feedback or suggestions.
The text was updated successfully, but these errors were encountered: