Skip to content

Issue with k8s.io/docs/tasks/administer-cluster/access-cluster-api/ #16453

@edrandall

Description

@edrandall

This is a Bug Report

Broken link to Python client "See this example": https://github.com/kubernetes-client/python/tree/master/examples/example1.py

Accessing the API from a Pod
Insufficient detail on how to access the API from within a Pod. Only a Go example is given, no Python example.

Proposed Solution:

  1. Fix broken link to example for external Python client, probably should be: https://github.com/kubernetes-client/python/blob/master/examples/out_of_cluster_config.py

  2. Add a Python example bullet-point following the line "For Go client, the rest.InClusterConfig() function assists with this. See an example here." eg something like:

  1. The sentence (on the 'Go' bullet) "Use one of the official client libraries as they handle API host discovery and authentication automatically. " is just a repetition of the second line near the top of the section "The easiest way to use the Kubernetes API from a Pod is to use one of the official client libraries. These libraries can automatically discover the API server and authenticate." , as such may as well be removed.

Page to Update:
https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.language/enIssues or PRs related to English languagelifecycle/activeIndicates that an issue or PR is actively being worked on by a contributor.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions