python/doc/source/usage.rst
Oz N Tiram 2e3b50e08e Update examples (#922)
* Consolidate both examples for create deployments

* Update deployment_examples.py: use V1Deployment

* Update sphinx documentation with deployment examples
2019-08-13 13:57:43 -07:00

21 lines
440 B
ReStructuredText

========
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 demostrates how to create, update and delete deployments
without the need to read a file from the disk:
.. literalinclude:: ../../examples/deployment_examples.py