mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 09:37:22 +00:00
* fix: use prettier for checking markdown Since biome doesn't handle markdown yet, only svelte and code. Restore the previous config, but skip "prettier-plugin-svelte". Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
2 KiB
2 KiB
| sidebar_position | title | description | keywords | tags | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 12 | Applying a YAML manifest | How to apply a YAML manifest to create a kubernetes object |
|
|
Applying a YAML manifest
You can deploy a YAML manifest to create a Kubernetes object, such as Node, Deployment, Service, PersistentVolumeClaim, and others. For example, a Kubernetes deployment that requires sensitive data storage, you can apply a YAML manifest to create a Secret object.
Prerequisites
Make sure you have:
- A running Podman machine.
- A running Kubernetes cluster.
- Created a YAML manifest file using the following code, if you do not have one on your machine:
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-nginx
spec:
selector:
matchLabels:
run: my-nginx
replicas: 3
template:
metadata:
labels:
run: my-nginx
spec:
containers:
- name: my-nginx
image: nginx
ports:
- containerPort: 80
This YAML manifest creates three pods that run the NGINX web server.
Procedure: Applying a YAML manifest to create a Deployment object
- Go to the Kubernetes component page.
- Click Deployments in the left navigation pane.
- Click Apply YAML and select the YAML manifest file. A confirmation notification opens.

- Click OK.


