podman-desktop/website/docs/kubernetes/configuring-editing-kube-object.md
Anders Björklund effc6f84e8
fix: update the markdownlint targets (#10487)
* docs: fix lint markdown style issues

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
2024-12-30 11:37:17 +01:00

74 lines
3.3 KiB
Markdown

---
sidebar_position: 12
title: Managing objects
description: Creating and updating a kubernetes object
keywords: [podman desktop, podman, deploying, objects, kubernetes]
tags: [managing-kubernetes, objects]
---
# Managing Kubernetes objects
With Podman Desktop, you can easily transition from containers to Kubernetes and deploy a local Kubernetes environment with necessary objects. As a developer, you have the ability to:
- Manage your application resources visually.
- Configure the following Kubernetes objects:
- `Node`: Use this object to set up a node on which the necessary pods can run within a kubernetes cluster.
- `Deployment`: Use this object to create necessary pods for execution and scale the number of pods.
- `Service`: Use this object to expose your application to users and define policies for application access.
- `Ingress`: Use this object to define routing rules and manage user access to the services running in a Kubernetes cluster.
- `PersistentVolumeClaim`: Use this object to request `PersistentVolume` resources for storage and define volume access modes within your Kubernetes cluster.
- `ConfigMap`: Use this object to to define non-sensitive configuration data for initializing or executing your application.
- `Secret`: Use this object to store and manage sensitive data, such as passwords, OAuth tokens, and SSH keys for your application.
- View and analyze real-time information about the connection status of the resources configured within the cluster.
- View the dashboard for analyzing object metrics and reading Kubernetes articles and blog posts.
- Get resource details using the _Summary_ and _Inspect_ tabs.
- Edit and apply configuration changes directly using the _Kube_ tab.
- Select multiple configuration files and apply them to your cluster in a single step.
- Configure port forwarding for a Kubernetes service and view the port forwarding details.
#### Prerequisites
- A valid [Kubernetes context and connection](/docs/kubernetes/viewing-and-selecting-current-kubernetes-context).
- A pod creation example for reference:
```yaml
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: my-container
image: nginx:1.14.2
ports:
- containerPort: 80
```
#### Procedure: Creating an object
1. Go to the **Kubernetes** component page.
2. Click one of the options to open the object page.
![kube objects](img/kube-objects.png)
3. Click the **Apply YAML** button and select an object configuration file. A confirmation notification opens.
![configuring a node](img/example-config-node.png)
4. Click **Ok**.
#### Procedure: Updating an existing object
1. Go to the **Kubernetes** component page.
2. Click one of the options to open the object page.
3. Click the name of the object.
4. Select the **Kube** tab and edit the configuration file.
![editing a node](img/example-edit-node.png)
5. Click **Apply changes to cluster**.
#### Verification
1. View the created object:
- View the `Pod` object on the **Pods** component page.
- View the other Kubernetes objects on the related object page. For example, if you have created a `Node` object, you can view it on the **Kubernetes > Nodes** page.
2. Optional: Click the name of the object to view its detailed summary.
![summary tab](img/summary-tab.png)