python/examples
2023-09-11 19:10:57 +05:30
..
dynamic-client Fix request_timeout example and doc 2023-06-07 22:25:06 +10:00
notebooks Fix typos 2023-01-27 11:10:29 +08:00
watch Fix request_timeout example and doc 2023-06-07 22:25:06 +10:00
yaml_dir chore: move yaml files to correct folder 2023-09-11 19:10:57 +05:30
__init__.py 884: Cleanup examples folder 2019-09-12 22:46:07 -07:00
annotate_deployment.py example annotate deployment 2022-06-23 13:13:46 +08:00
api_discovery.py Address PR comments 2019-09-13 16:16:54 -07:00
apply_from_dict.py example added for create_from_dict 2022-09-28 12:33:57 +06:00
apply_from_directory.py docs(examples): add example to utilize utils 2022-03-16 18:13:54 -07:00
apply_from_single_file.py docs(examples): add example to utilize utils 2022-03-16 18:13:54 -07:00
cluster_scoped_custom_object.py correct custom object to custom resource (CR) 2021-04-28 23:23:09 +05:30
cronjob_crud.py change BatchV1beta1Api to BatchV1Api 2022-07-09 18:49:58 +08:00
deployment_create.py chore: move yaml files to correct folder 2023-09-11 19:10:57 +05:30
deployment_crud.py Fix typos 2023-01-27 11:10:29 +08:00
in_cluster_config.py Address PR comments 2019-09-13 16:16:54 -07:00
ingress_create.py Use v1 API in the ingress example 2021-11-29 11:11:12 -08:00
job_crud.py Misc typo fixes 2021-12-17 12:23:37 +05:30
multiple_clusters.py drop python2 support 2021-05-15 00:57:04 +05:30
namespaced_custom_object.py Removed the custom_object.py file and and added namespaced_custom_object.py 2021-04-30 13:08:18 +05:30
node_labels.py Updated example steps 2022-10-12 20:21:25 -04:00
out_of_cluster_config.py Address PR comments 2019-09-13 16:16:54 -07:00
pick_kube_config_context.py drop python2 support 2021-05-15 00:57:04 +05:30
pod_config_list.py drop python2 support 2021-05-15 00:57:04 +05:30
pod_exec.py doc: comment pod_exec.py for multiple containers 2023-01-01 08:31:24 -05:00
pod_portforward.py Support both python 2.7 and 3.x. 2020-09-07 19:47:19 -10:00
README.md Fix typos 2023-01-27 11:10:29 +08:00
remote_cluster.py examples: comment improvement in remote_cluster.py and deployment_create.py 2021-05-01 23:24:17 +05:30
rollout-daemonset.py Fix typos 2023-01-27 11:10:29 +08:00
rollout-statefulset.py Fix typos 2023-01-27 11:10:29 +08:00

Python Client Examples

This directory contains various examples of how to use the Python client. Please read the description at the top of each example for more information about what the script does and any prerequisites. Most scripts also include comments throughout the code.

Setup

These scripts require Python 2.7 or 3.5+ and the Kubernetes client which can be installed following the directions here.

Contributions

If you find a problem please file an issue.