Configure authentication and authorization for kubernetes_asyncio
mainThe kubernetes_asyncio.client requires authentication and authorization parameters configured to match your API server's security policy.
Configuration can be handled in two ways:
- Directly in the
Configurationclass: Set parameters on an instance of the configuration class. - Using the
utilshelper: Use provided utility functions to load configuration.
If no arguments are provided to the configuration loader, it defaults to loading the configuration from the standard default location (e.g., ~/.kube/config).
Note on Host Configuration: Defining the host is optional; it defaults to http://localhost.