python/examples
2024-10-24 20:50:43 +08:00
..
dynamic-client replace utcnow with now, due to utcnow will be deprecated 2024-03-30 22:11:48 +08:00
notebooks
watch
yaml_dir
__init__.py
annotate_deployment.py chore: use f-string 2023-09-13 23:24:16 +05:30
api_discovery.py chore: use f-string 2023-09-13 23:24:16 +05:30
apply_from_dict.py
apply_from_directory.py chore: use f-string 2023-09-13 23:24:16 +05:30
apply_from_single_file.py chore: use f-string 2023-09-13 23:24:16 +05:30
cluster_scoped_custom_object.py chore: use f-string 2023-09-13 23:24:16 +05:30
cronjob_crud.py
deployment_create.py chore: use f-string 2023-09-13 23:24:16 +05:30
deployment_crud.py replace utcnow with now, due to utcnow will be deprecated 2024-03-30 22:11:48 +08:00
duration-gep2257.py Review feedback 2024-08-21 12:22:36 -04:00
in_cluster_config.py chore: use f-string 2023-09-13 23:24:16 +05:30
ingress_create.py
job_crud.py chore: use f-string 2023-09-13 23:24:16 +05:30
multiple_clusters.py chore: use f-string 2023-09-13 23:24:16 +05:30
namespaced_custom_object.py
node_labels.py chore: use f-string 2023-09-13 23:24:16 +05:30
out_of_cluster_config.py chore: use f-string 2023-09-13 23:24:16 +05:30
patch_namespaced_config_map.py Add patch_namespaced_config_map example 2024-10-24 20:50:43 +08:00
pick_kube_config_context.py chore: use f-string 2023-09-13 23:24:16 +05:30
pod_config_list.py chore: use f-string 2023-09-13 23:24:16 +05:30
pod_exec.py chore: use f-string 2023-09-13 23:24:16 +05:30
pod_portforward.py chore: use f-string 2023-09-13 23:24:16 +05:30
README.md
remote_cluster.py chore: use f-string 2023-09-13 23:24:16 +05:30
rollout-daemonset.py
rollout-statefulset.py

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.