kube/podeploy

This commit is contained in:
Marc Beninca 2023-07-08 18:24:09 +02:00
parent c6763e961a
commit 68dcc7dddf
2 changed files with 59 additions and 0 deletions

View file

@ -36,6 +36,7 @@ RTFD
public/ifupdown2/index
public/imagemagick/index
public/isc-dhcp-server/index
public/kubernetes/index
public/letsencrypt/index
public/libnss3-tools/index
public/libreoffice/index

View file

@ -0,0 +1,58 @@
**********
Kubernetes
**********
Pods
====
.. code:: shell
ffmpeg \
-i input.avi \
-y output.mkv
Deployments
===========
Get
---
.. code:: shell
kubectl get \
deploy my-deployment \
-n my-namespace \
-o wide
.. code:: shell
kubectl get \
deployments \
-n my-namespace
Create deployment
-----------------
.. code:: shell
kubectl create \
deploy my-deployment \
--image my-image \
-n my-namespace
.. code:: yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 2
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-containers
image: my-image