-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Be able to generate Deployment with podman generate kube
#17712
Comments
@cdrage can you elaborate on your thoughts? Why is important and how do you expect it to work and behave? That should help understand what to do and how it should behave etc. |
I think it's important because:
IMHO |
+1. Even though podman is just dealing with pods, deployments are really the 'standard' Kubernetes artifact and we feel it's better to generate a basic deployment containing a pod vs just the pod. Either way there should be a flag to generate whatever is not the default option. In terms of the symmetrical behaviour, |
Thanks! @mheon @umohnani8 @baude , that's a priority for the desktop folks |
I'm amenable to the consideration. Could you provide 1 or 2 legitimate/working YAML files as examples? |
Yes then we can add a --deployment flag to play kube with it defaulted to true? But this would break backwards compatibility. |
Maybe we can do it, but keep the pod as the default. Probably good to add a containers.conf section on it though, to change the default? |
SGTM |
I can get started on a design doc for this. It should be pretty straightforward to use what we already have to generate a pod for a deployment instead. |
thank you @umohnani8 |
Are any required? I think generating them commented out would be fine. Play kube should work with both a deployment and a kubespec. |
Feature request description
When using Podman, I'd like to generate a Deployment for Kubernetes using my Pods.
Unlike in Podman, pods in Kubernetes are immutable and disposable.
So if I were to deploy the YAML and my node restarts, that Pod will be completely gone.
Suggest potential solution
Be able to have the ability to create a Deployment
Have you considered any alternatives?
I used https://github.com/kubernetes/kompose to generate the Kubernetes YAML instead, by converting my pod to a Compose spec file and then to Kubernetes.
But it'd be nice to have this built-in to
podman
instead.Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: