8000 python-kubernetes/examples at master · iTaybb/python-kubernetes · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"examples","repo":{"id":625889328,"defaultBranch":"master","name":"python-kubernetes","ownerLogin":"iTaybb","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-04-10T10:31:16.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/3614982?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1681122684.462498","canEdit":false,"refType":"branch","currentOid":"774ca836275f100c676a72968b51596a99242d79"},"tree":{"items":[{"name":"dynamic-client","path":"examples/dynamic-client","contentType":"directory"},{"name":"notebooks","path":"examples/notebooks","contentType":"directory"},{"name":"watch","path":"examples/watch","contentType":"directory"},{"name":"yaml_dir","path":"examples/yaml_dir","contentType":"directory"},{"name":"README.md","path":"examples/README.md","contentType":"file"},{"name":"__init__.py","path":"examples/__init__.py","contentType":"file"},{"name":"annotate_deployment.py","path":"examples/annotate_deployment.py","contentType":"file"},{"name":"api_discovery.py","path":"examples/api_discovery.py","contentType":"file"},{"name":"apply_from_dict.py","path":"examples/apply_from_dict.py","contentType":"file"},{"name":"apply_from_directory.py","path":"examples/apply_from_directory.py","contentType":"file"},{"name":"apply_from_single_file.py","path":"examples/apply_from_single_file.py","contentType":"file"},{"name":"cluster_scoped_custom_object.py","path":"examples/cluster_scoped_custom_object.py","contentType":"file"},{"name":"configmap-demo-pod.yml","path":"examples/configmap-demo-pod.yml","contentType":"file"},{"name":"cronjob_crud.py","path":"examples/cronjob_crud.py","contentType":"file"},{"name":"deployment_create.py","path":"examples/deployment_create.py","contentType":"file"},{"name":"deployment_crud.py","path":"examples/deployment_crud.py","contentType":"file"},{"name":"in_cluster_config.py","path":"examples/in_cluster_config.py","contentType":"file"},{"name":"ingress_create.py","path":"examples/ingress_create.py","contentType":"file"},{"name":"job_crud.py","path":"examples/job_crud.py","contentType":"file"},{"name":"multiple_clusters.py","path":"examples/multiple_clusters.py","contentType":"file"},{"name":"namespaced_custom_object.py","path":"examples/namespaced_custom_object.py","contentType":"file"},{"name":"nginx-deployment.yaml","path":"examples/nginx-deployment.yaml","contentType":"file"},{"name":"node_labels.py","path":"examples/node_labels.py","contentType":"file"},{"name":"out_of_cluster_config.py","path":"examples/out_of_cluster_config.py","contentType":"file"},{"name":"pi-job.yaml","path":"examples/pi-job.yaml","contentType":"file"},{"name":"pick_kube_config_context.py","path":"examples/pick_kube_config_context.py","contentType":"file"},{"name":"pod_config_list.py","path":"examples/pod_config_list.py","contentType":"file"},{"name":"pod_exec.py","path":"examples/pod_exec.py","contentType":"file"},{"name":"pod_portforward.py","path":"examples/pod_portforward.py","contentType":"file"},{"name":"remote_cluster.py","path":"examples/remote_cluster.py","contentType":"file"},{"name":"rollout-daemonset.py","path":"examples/rollout-daemonset.py","contentType":"file"},{"name":"rollout-statefulset.py","path":"examples/rollout-statefulset.py","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePython Client Examples\u003c/h1\u003e\u003ca id=\"user-content-python-client-examples\" class=\"anchor\" aria-label=\"Permalink: Python Client Examples\" href=\"#python-client-examples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis directory contains various examples of how to use the Python client.\nPlease read the description at the top of each example for more information\nabout what the script does and any prerequisites. Most scripts also include\ncomments throughout the code.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSetup\u003c/h2\u003e\u003ca id=\"user-content-setup\" class=\"anchor\" aria-label=\"Permalink: Setup\" href=\"#setup\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese scripts require Python 2.7 or 3.5+ and the Kubernetes client which can be\ninstalled following the directions\n\u003ca href=\"https://github.com/kubernetes-client/python#installation\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eContributions\u003c/h2\u003e\u003ca id=\"user-content-contributions\" class=\"anchor\" aria-label=\"Permalink: Contributions\" href=\"#contributions\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you find a problem please file an\n\u003ca href=\"https://github.com/kubernetes-client/python/issues\"\u003eissue\u003c/a\u003e.\u003c/p\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Python Client Examples","anchor":"python-client-examples","htmlText":"Python Client Examples"},{"level":2,"text":"Setup","anchor":"setup","htmlText":"Setup"},{"level":2,"text":"Contributions","anchor":"contributions","htmlText":"Contributions"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FiTaybb%2Fpython-kubernetes%2Ftree%2Fmaster%2Fexamples"}},"totalCount":32,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"devel","path":"devel","contentType":"directory"},{"name":"doc","path":"doc","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"kubernetes","path":"kubernetes","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CHANGELOG.md","path":"CHANGELOG.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"MANIFEST.in","path":"MANIFEST.in","contentType":"file"},{"name":"OWNERS","path":"OWNERS","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"SECURITY_CONTACTS","path":"SECURITY_CONTACTS","contentType":"file"},{"name":"code-of-conduct.md","path":"code-of-conduct.md","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"requirements.txt","path":"requirements.txt","contentType":"file"},{"name":"setup.cfg","path":"setup.cfg","contentType":"file"},{"name":"setup.py","path":"setup.py","contentType":"file"},{"name":"test-requirements.txt","path":"test-requirements.txt","contentType":"file"},{"name":"tox.ini","path":"tox.ini","contentType":"file"}],"totalCount":21}},"fileTreeProcessingTime":7.823765999999999,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/iTaybb/python-kubernetes/branches":{"post":"26GFceQTeONOByl7gbOSnd_CAshBL-JiI29fYGTeMTRa5zDy89Q_JNKZGE3ysLTTjFUyQSeWZlEL_wUxeyWhoA"},"/iTaybb/python-kubernetes/branches/fetch_and_merge/master":{"post":"_gfuu93r8PpBb_5ATaWTrYt9KDxtKcpyuFMZFo2l4gjZYtc10b7x1f3b-s_Vq0TmgPJiaJkjKTZQ9L-LpIYEHQ"},"/iTaybb/python-kubernetes/branches/fetch_and_merge/master?discard_changes=true":{"post":"WeQrObP9oRXVun7YU69iQkOxGlK1kbxP9IRQBCZeKqR-gRK3v6igOmkOelfLobUJSD5QBkGbXwscI_aZD33MsQ"}}},"title":"python-kubernetes/examples at master · iTaybb/python-kubernetes","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-b84e9496fc59.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0