| Summary: | Unable to create a .kube/config for oc command with only the servername | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | saurabh sharma <saurap> |
| Component: | oc | Assignee: | Fabiano Franz <ffranz> |
| Status: | CLOSED WONTFIX | QA Contact: | Wei Sun <wsun> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.1.0 | CC: | aos-bugs, deads, jokerman, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-11 18:32:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
saurabh sharma
2016-02-10 19:03:11 UTC
That's working as designed. What defines which server is going to be used in .kube/config is the 'current-context' entry, which point to one of the 'contexts' entry which in turn points to one of the 'clusters' entry, by its name.
So although you don't need the 'user' section in the working example you provided, a minimal version of a .kube/config file you could use would be something like:
apiVersion: v1
clusters:
- cluster:
insecure-skip-tls-verify: true
server: https://osshift-vip01:8443/
name: osshift-vip-server
contexts:
- context:
cluster: osshift-vip-server
name: osshift-vip-context
current-context: osshift-vip-context
|