From 68dcc7dddfc5db50a8022a7c97758ce978e70b7d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 8 Jul 2023 18:24:09 +0200 Subject: [PATCH] kube/podeploy --- rtfd/index.rst | 1 + rtfd/public/kubernetes/index.rst | 58 ++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 rtfd/public/kubernetes/index.rst diff --git a/rtfd/index.rst b/rtfd/index.rst index 12eef44..cccf9ad 100644 --- a/rtfd/index.rst +++ b/rtfd/index.rst @@ -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 diff --git a/rtfd/public/kubernetes/index.rst b/rtfd/public/kubernetes/index.rst new file mode 100644 index 0000000..b55076d --- /dev/null +++ b/rtfd/public/kubernetes/index.rst @@ -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