diff --git a/website/docs/kubernetes/deploying-a-container-to-kubernetes.md b/website/docs/kubernetes/deploying-a-container-to-kubernetes.md new file mode 100644 index 00000000000..25f2ec31a6c --- /dev/null +++ b/website/docs/kubernetes/deploying-a-container-to-kubernetes.md @@ -0,0 +1,38 @@ +--- +sidebar_position: 10 +title: Deploying a container +description: Deploying a container to Kubernetes +keywords: [podman desktop, podman, containers, migrating, kubernetes] +tags: [migrating-to-kubernetes] +--- + +# Deploying a container to Kubernetes + +With Podman Desktop, you can deploy a container to your Kubernetes cluster. + +#### Prerequisites + + +* Your are using the Podman container engine. +* Your container, running or stopped, is available on the **Containers** page: **. +* You registered the Kubernetes cluster in your kubeconfig file: **. For example, [Creating a kind cluster](kind/creating-a-kind-cluster.md). +* The Kubernetes namespace to deploy to already exists. + +#### Procedure + +1. Click **Podman Desktop tray > Kubernetes > Context > **** to set your Kubernetes context. +1. Open **Podman Desktop dashboard > Containers > **** to see the **Container Details** page. +1. Click to generate a Kubernetes pod. +1. On the **Deploy generated pod to Kubernetes** screen, choose your options: + 1. **Pod Name**: edit the proposed name. + 1. **Use Kubernetes Services**: enable or disable **Replace `hostPort` exposure on containers by Services. It is the recommended way to expose ports, as a cluster policy might prevent to use `hostPort`.** + 1. **Kubernetes namespace**: select in the list the namespace to deploy the pod to. +1. Click the ** Deploy** button. + +#### Verification + +* On the **Deploy generated pod to Kubernetes** screen, the created pod status is *Phase: Running* + + ![](img/deploying-a-container.png) + +* Go to **Containers**: your pod is in the list. diff --git a/website/docs/kubernetes/deploying-a-pod-to-kubernetes.md b/website/docs/kubernetes/deploying-a-pod-to-kubernetes.md new file mode 100644 index 00000000000..c3b8a5ea5c8 --- /dev/null +++ b/website/docs/kubernetes/deploying-a-pod-to-kubernetes.md @@ -0,0 +1,37 @@ +--- +sidebar_position: 10 +title: Deploying a pod +description: Deploying a pod to Kubernetes +keywords: [podman desktop, podman, containers, pods, migrating, kubernetes] +tags: [migrating-to-kubernetes] +--- + +# Deploying a pod to Kubernetes + +With Podman Desktop, you can deploy a pod to your Kubernetes cluster. + +#### Prerequisites + +* Your are using the Podman container engine. +* Your pod, running or stopped, is available on the **Pods** page: **. +* You registered the Kubernetes cluster in your kubeconfig file: **. For example, [Creating a kind cluster](kind/creating-a-kind-cluster.md). +* The Kubernetes namespace to deploy to already exists. + +#### Procedure + +1. Click **Podman Desktop tray > Kubernetes > Context > **** to set your Kubernetes context. +1. Open **Podman Desktop dashboard > Pods > **** to see the **Pod Details** page. +1. Click to generate a Kubernetes pod. +1. On the **Deploy generated pod to Kubernetes** screen, choose your options: + 1. **Pod Name**: edit the proposed name. + 1. **Use Kubernetes Services**: enable or disable **Replace `hostPort` exposure on containers by Services. It is the recommended way to expose ports, as a cluster policy might prevent to use `hostPort`.** + 1. **Kubernetes namespace**: select in the list the namespace to deploy the pod to. +1. Click the ** Deploy** button. + +#### Verification + +* On the **Deploy generated pod to Kubernetes** screen, the created pod status is *Phase: Running* + + ![](img/deploying-a-pod.png) + +* Go to **Pods**: your pod is in the list. diff --git a/website/docs/kubernetes/img/deploying-a-container.png b/website/docs/kubernetes/img/deploying-a-container.png new file mode 100644 index 00000000000..ed2a4847368 Binary files /dev/null and b/website/docs/kubernetes/img/deploying-a-container.png differ diff --git a/website/docs/kubernetes/img/deploying-a-pod.png b/website/docs/kubernetes/img/deploying-a-pod.png new file mode 100644 index 00000000000..646088a380c Binary files /dev/null and b/website/docs/kubernetes/img/deploying-a-pod.png differ