add job generation support
Change-Id: I92e3ad3264b1555c47bd81baeb23e76fc41cd3da
diff --git a/README.rst b/README.rst
index b215c92..0ee5fa5 100644
--- a/README.rst
+++ b/README.rst
@@ -568,6 +568,46 @@
key: policy.json
path: policy.json
+Generating Jobs
+===============
+
+Example pillar:
+
+.. code-block:: yaml
+
+ kubernetes:
+ control:
+ job:
+ sleep:
+ job: sleep
+ restart_policy: Never
+ container:
+ sleep:
+ image: busybox
+ tag: latest
+ command:
+ - sleep
+ - "3600"
+
+Volumes and Variables can be used as the same way as during Deployment generation.
+
+Custom params:
+
+.. code-block:: yaml
+
+ kubernetes:
+ control:
+ job:
+ host_network: True
+ host_pid: True
+ container:
+ sleep:
+ privileged: True
+ node_selector:
+ key: node
+ value: one
+ image_pull_secretes: password
+
Documentation and Bugs
======================