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