mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #13662 from Huawei-PaaS/issue-kubeconfig
Auto commit by PR queue bot
This commit is contained in:
commit
b3eace631e
@ -137,20 +137,25 @@ $ kubectl config view
|
|||||||
produces this output
|
produces this output
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
apiVersion: v1
|
||||||
clusters:
|
clusters:
|
||||||
local-server:
|
- cluster:
|
||||||
server: http://localhost:8080
|
server: http://localhost:8080
|
||||||
|
name: local-server
|
||||||
contexts:
|
contexts:
|
||||||
default-context:
|
- context:
|
||||||
cluster: local-server
|
cluster: local-server
|
||||||
namespace: the-right-prefix
|
namespace: the-right-prefix
|
||||||
user: myself
|
user: myself
|
||||||
|
name: default-context
|
||||||
current-context: default-context
|
current-context: default-context
|
||||||
|
kind: Config
|
||||||
preferences: {}
|
preferences: {}
|
||||||
users:
|
users:
|
||||||
myself:
|
- name: myself
|
||||||
username: admin
|
user:
|
||||||
password: secret
|
password: secret
|
||||||
|
username: admin
|
||||||
```
|
```
|
||||||
|
|
||||||
and a kubeconfig file that looks like this
|
and a kubeconfig file that looks like this
|
||||||
@ -173,8 +178,8 @@ preferences: {}
|
|||||||
users:
|
users:
|
||||||
- name: myself
|
- name: myself
|
||||||
user:
|
user:
|
||||||
username: admin
|
|
||||||
password: secret
|
password: secret
|
||||||
|
username: admin
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Commands for the example file
|
#### Commands for the example file
|
||||||
|
Loading…
Reference in New Issue
Block a user