Skip to content

Commit

Permalink
Merge pull request #2502 from orange-cloudfoundry/doc-refinement
Browse files Browse the repository at this point in the history
Clarify loading of kubeconfig for in-cluster headlamp installations
  • Loading branch information
illume authored Nov 7, 2024
2 parents bef38ad + bc4dc67 commit ecd2908
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/installation/in-cluster/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ you can run:
kubectl apply -f https://raw.githubusercontent.com/kinvolk/headlamp/main/kubernetes-headlamp.yaml
```

## Use a non-default kube config file

By default, Headlamp uses the default service account from the namespace it is deployed to, and generates a kubeconfig from it named `main`.

If you wish to use another specific non-default kubeconfig file, then you can do it by mounting it to the default location at `/home/headlamp/.config/Headlamp/kubeconfigs/config`, or
providing a custom path Headlamp with the ` -kubeconfig` argument or the KUBECONFIG env (through helm values.env)

### Use several kubeconfig files

If you need to use more than one kubeconfig file at the same time, you can list
each config file path with a ":" separator in the KUBECONFIG env.

## Exposing Headlamp with an ingress server

With the instructions in the previous section, the Headlamp service should be
Expand Down

0 comments on commit ecd2908

Please sign in to comment.