tech:notes_podman_quadlet
Notes podman quadlet
Voir :
/home/jibe/.config/containers/systemd/mysleep.container
[Unit] Description=The sleep container [Container] Image=docker.io/library/debian:latest Exec=sleep inf [Install] WantedBy=multi-user.target
$ podman quadlet list NAME UNIT NAME PATH ON DISK STATUS APPLICATION mysleep.container mysleep.service /home/jibe/.config/containers/systemd/mysleep.container Not loaded
systemctl --user daemon-reload
$ podman quadlet list NAME UNIT NAME PATH ON DISK STATUS APPLICATION mysleep.container mysleep.service /home/jibe/.config/containers/systemd/mysleep.container inactive/dead
systemctl --user start mysleep.service
$ podman quadlet list NAME UNIT NAME PATH ON DISK STATUS APPLICATION mysleep.container mysleep.service /home/jibe/.config/containers/systemd/mysleep.container active/running jibe@vivabelo:~$
Podman & K8S
podman generate kube intelligent_lovelace --podman-only > pod.yaml
pod.yaml
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-5.8.6
apiVersion: v1
kind: Pod
metadata:
annotations:
io.podman.annotations.init/intelligentlovelace: "TRUE"
creationTimestamp: "2026-10-12T19:55:35Z"
labels:
app: intelligentlovelace-pod
name: intelligentlovelace-pod
spec:
containers:
- command:
- sleep
- inf
image: docker.io/library/debian:latest
name: intelligentlovelace
podman kube play pod.yaml
tech/notes_podman_quadlet.txt · Dernière modification : de Jean-Baptiste
