diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-07-01 10:55:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 10:55:42 +0000 |
commit | dc2a93421b184e7176a5893c515a907b542c762e (patch) | |
tree | 5003e0b2e329df57b0783d4f768e9855a33ee672 /docs/source/markdown/podman-play-kube.1.md | |
parent | 96e72d90b8a6b1d9fb71dadfddff1ed4ccf05857 (diff) | |
parent | 9c658f49071a31cb776eade600b092868345da97 (diff) | |
download | podman-dc2a93421b184e7176a5893c515a907b542c762e.tar.gz podman-dc2a93421b184e7176a5893c515a907b542c762e.tar.bz2 podman-dc2a93421b184e7176a5893c515a907b542c762e.zip |
Merge pull request #14788 from vrothberg/rename-template
podman-play-kube template: rename to podman-kube
Diffstat (limited to 'docs/source/markdown/podman-play-kube.1.md')
-rw-r--r-- | docs/source/markdown/podman-play-kube.1.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/source/markdown/podman-play-kube.1.md b/docs/source/markdown/podman-play-kube.1.md index 1c7fc99a2..92cb694b0 100644 --- a/docs/source/markdown/podman-play-kube.1.md +++ b/docs/source/markdown/podman-play-kube.1.md @@ -103,6 +103,19 @@ spec: and as a result environment variable `FOO` will be set to `bar` for container `container-1`. +### Systemd Integration + +A Kubernetes YAML can be executed in systemd via the `podman-kube@.service` systemd template. The template's argument is the path to the YAML file. Given a `workload.yaml` file in the home directory, it can be executed as follows: + +``` +$ escaped=$(systemd-escape ~/sysadmin.yaml) +$ systemctl --user start podman-kube@$escaped.service +$ systemctl --user is-active podman-kube@$escaped.service +active +``` + +Note that the path to the YAML file must be escaped via `systemd-escape`. + ## OPTIONS #### **--annotation**=*key=value* |