Load in cluster config by default
See original GitHub issueCurrently we have two method in config module to load config. One from kube config and the other from in-cluster configs. Either add in-cluster config load to load kube config or add a new method (maybe call it load_config
or load
for short) that tries in-cluster first and then kube-config.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Organizing Cluster Access Using kubeconfig Files - Kubernetes
By default, kubectl looks for a file named config in the $HOME/.kube directory. You can specify other kubeconfig files by setting the ...
Read more >How to use the kubernetes.config.load_incluster_config ... - Snyk
If no argument provided, the config will be loaded from # default location. print ("Initializing ...") if self.cluster_config == 'out-of-cluster': try: ...
Read more >unable to load in-cluster configuration ... - Stack Overflow
this is because you are trying to get cluster config from outside of the cluster. When you run go run main.go , you...
Read more >Cluster configuration (proto) — envoy 1.25.0-dev-abdbc4 ...
(Duration) The timeout for new network connections to hosts in the cluster. If not set, a default value of 5s will be used....
Read more >Kubectl Config Set-Context | Tutorial and Best Practices
This allows you to define multiple contexts in your configuration file, which you can then use to target multiple Kubernetes clusters, or the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Somebody should add an example for this in examples/ folder.
I’d love to see this as part of the API. I implemented a version of this already; I’m happy to put this into a PR if you like: