File: usage.rst

package info (click to toggle)
python-kubernetes 30.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,980 kB
  • sloc: python: 126,462; sh: 699; makefile: 46
file content (20 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
========
Usage
========

The directory ``examples`` contains a few examples on how to use the client.


Deployments
-----------

Here is a simple usage of creating a deployment from a yaml file:


.. literalinclude:: ../../examples/create_deployment.py


The following example demonstrates how to create, update and delete deployments
without the need to read a file from the disk:

.. literalinclude:: ../../examples/deployment_examples.py