kube/pods
This commit is contained in:
parent
68dcc7dddf
commit
093f20e2e7
1 changed files with 34 additions and 4 deletions
|
@ -5,11 +5,41 @@ Kubernetes
|
||||||
Pods
|
Pods
|
||||||
====
|
====
|
||||||
|
|
||||||
|
Read
|
||||||
|
----
|
||||||
|
|
||||||
.. code:: shell
|
.. code:: shell
|
||||||
|
|
||||||
ffmpeg \
|
kubectl \
|
||||||
-i input.avi \
|
get pods \
|
||||||
-y output.mkv
|
-n my-namespace
|
||||||
|
|
||||||
|
Execute
|
||||||
|
-------
|
||||||
|
|
||||||
|
.. code:: shell
|
||||||
|
|
||||||
|
kubectl \
|
||||||
|
run my-pod \
|
||||||
|
--image my-image \
|
||||||
|
--restart Never \
|
||||||
|
-n my-namespace
|
||||||
|
|
||||||
|
Write
|
||||||
|
-----
|
||||||
|
|
||||||
|
.. code:: shell
|
||||||
|
|
||||||
|
kubectl edit \
|
||||||
|
pod my-pod \
|
||||||
|
-n my-namespace
|
||||||
|
|
||||||
|
.. code:: shell
|
||||||
|
|
||||||
|
kubectl delete \
|
||||||
|
pod my-pod \
|
||||||
|
-n my-namespace \
|
||||||
|
--grace-period 0
|
||||||
|
|
||||||
Deployments
|
Deployments
|
||||||
===========
|
===========
|
||||||
|
@ -54,5 +84,5 @@ Create deployment
|
||||||
app: my-app
|
app: my-app
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: my-containers
|
- name: my-container
|
||||||
image: my-image
|
image: my-image
|
||||||
|
|
Loading…
Reference in a new issue