python/examples
Glenn Hinks e8954f7a5b doc: comment pod_exec.py for multiple containers
The behavior in kubectl is to run the exec command
against the default container. However, this needs to
be specified with the client call.

Add a comment in the example for this.
2023-01-01 08:31:24 -05:00
..
dynamic-client Misc typo fixes 2021-12-17 12:23:37 +05:30
notebooks fix: remove depriciated gitrepo volume type 2022-03-15 22:42:53 -07:00
watch Fix typo in timeout-settings docs URL 2022-11-12 02:15:31 +08:00
yaml_dir docs(examples): add example to utilize utils 2022-03-16 18:13:54 -07:00
__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
configmap-demo-pod.yml docs(examples): add example to utilize utils 2022-03-16 18:13:54 -07:00
cronjob_crud.py change BatchV1beta1Api to BatchV1Api 2022-07-09 18:49:58 +08:00
deployment_create.py examples: comment improvement in remote_cluster.py and deployment_create.py 2021-05-01 23:24:17 +05:30
deployment_crud.py Misc typo fixes 2021-12-17 12:23:37 +05:30
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
nginx-deployment.yaml Deprecate extensions/v1beta1 deployment 2019-07-23 21:28:04 -04:00
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
pi-job.yaml 884: Cleanup examples folder 2019-09-12 22:46:07 -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 Address PR comments 2019-09-13 16:16:54 -07: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 Updated example description 2022-10-15 21:26:54 -04:00
rollout-statefulset.py comment version requirement for example statefulset 2022-03-16 13:49:22 +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 prequisites. 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.