mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-05-24 02:08:24 +00:00
docs: deploying a container or a pod to kubernetes (#2026)
This commit is contained in:
parent
9b3b9a0d65
commit
a47e779d08
4 changed files with 75 additions and 0 deletions
|
|
@ -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: *<your_container>*.
|
||||
* You registered the Kubernetes cluster in your kubeconfig file: *<your_kubernetes_cluster>*. 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 > *<your_kubernetes_cluster>*** to set your Kubernetes context.
|
||||
1. Open **Podman Desktop dashboard > Containers > *<your_container>*** to see the **Container Details** page.
|
||||
1. Click <icon icon="fa-solid fa-rocket" size="lg" /> 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 **<icon icon="fa-solid fa-rocket" size="lg" /> Deploy** button.
|
||||
|
||||
#### Verification
|
||||
|
||||
* On the **Deploy generated pod to Kubernetes** screen, the created pod status is *Phase: Running*
|
||||
|
||||

|
||||
|
||||
* Go to **Containers**: your pod is in the list.
|
||||
37
website/docs/kubernetes/deploying-a-pod-to-kubernetes.md
Normal file
37
website/docs/kubernetes/deploying-a-pod-to-kubernetes.md
Normal file
|
|
@ -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: *<your_pod>*.
|
||||
* You registered the Kubernetes cluster in your kubeconfig file: *<your_kubernetes_cluster>*. 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 > *<your_kubernetes_cluster>*** to set your Kubernetes context.
|
||||
1. Open **Podman Desktop dashboard > Pods > *<your_pod>*** to see the **Pod Details** page.
|
||||
1. Click <icon icon="fa-solid fa-rocket" size="lg" /> 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 **<icon icon="fa-solid fa-rocket" size="lg" /> Deploy** button.
|
||||
|
||||
#### Verification
|
||||
|
||||
* On the **Deploy generated pod to Kubernetes** screen, the created pod status is *Phase: Running*
|
||||
|
||||

|
||||
|
||||
* Go to **Pods**: your pod is in the list.
|
||||
BIN
website/docs/kubernetes/img/deploying-a-container.png
Normal file
BIN
website/docs/kubernetes/img/deploying-a-container.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
BIN
website/docs/kubernetes/img/deploying-a-pod.png
Normal file
BIN
website/docs/kubernetes/img/deploying-a-pod.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Loading…
Reference in a new issue