kube/podeploy
This commit is contained in:
parent
c6763e961a
commit
68dcc7dddf
2 changed files with 59 additions and 0 deletions
|
@ -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
|
||||
|
|
58
rtfd/public/kubernetes/index.rst
Normal file
58
rtfd/public/kubernetes/index.rst
Normal 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
|
Loading…
Reference in a new issue