Update the documentation for helm chart
This commit is contained in:
parent
de42fc10b5
commit
97294df84f
1 changed files with 36 additions and 3 deletions
|
@ -78,21 +78,54 @@ helm install traefik traefik/traefik
|
||||||
The values are not (yet) documented, but are self-explanatory:
|
The values are not (yet) documented, but are self-explanatory:
|
||||||
you can look at the [default `values.yaml`](https://github.com/containous/traefik-helm-chart/blob/master/traefik/values.yaml) file to explore possibilities.
|
you can look at the [default `values.yaml`](https://github.com/containous/traefik-helm-chart/blob/master/traefik/values.yaml) file to explore possibilities.
|
||||||
|
|
||||||
|
You can also set Traefik command line flags using `additionalArguments`.
|
||||||
Example of installation with logging set to `DEBUG`:
|
Example of installation with logging set to `DEBUG`:
|
||||||
|
|
||||||
```bash tab="Using Helm CLI"
|
```bash tab="Using Helm CLI"
|
||||||
helm install --namespace=traefik-v2 \
|
helm install --namespace=traefik-v2 \
|
||||||
--set="logs.loglevel=DEBUG" \
|
--set="additionalArguments={--logs.level=DEBUG}" \
|
||||||
traefik traefik/traefik
|
traefik traefik/traefik
|
||||||
```
|
```
|
||||||
|
|
||||||
```yml tab="With a custom values file"
|
```yml tab="With a custom values file"
|
||||||
# File custom-values.yml
|
# File custom-values.yml
|
||||||
## Install with "helm install --values=./custom-values.yml traefik traefik/traefik
|
## Install with "helm install --values=./custom-values.yml traefik traefik/traefik
|
||||||
logs:
|
additionalArguments:
|
||||||
loglevel: DEBUG
|
- "--log.level=DEBUG"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Exposing the Traefik dashboard
|
||||||
|
|
||||||
|
This HelmChart does not expose the Traefik dashboard by default, for security concerns.
|
||||||
|
Thus, there are multiple ways to expose the dashboard.
|
||||||
|
For instance, the dashboard access could be achieved through a port-forward :
|
||||||
|
|
||||||
|
```shell
|
||||||
|
kubectl port-forward $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name) 9000:9000
|
||||||
|
```
|
||||||
|
|
||||||
|
Accessible with the url: http://127.0.0.1:9000/dashboard/
|
||||||
|
|
||||||
|
Another way would be to apply your own configuration, for instance,
|
||||||
|
by defining and applying an IngressRoute CRD (`kubectl apply -f dashboard.yaml`):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# dashboard.yaml
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: IngressRoute
|
||||||
|
metadata:
|
||||||
|
name: dashboard
|
||||||
|
spec:
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
routes:
|
||||||
|
- match: Host(`traefik.localhost`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
|
||||||
|
kind: Rule
|
||||||
|
services:
|
||||||
|
- name: api@internal
|
||||||
|
kind: TraefikService
|
||||||
|
```
|
||||||
|
|
||||||
## Use the Binary Distribution
|
## Use the Binary Distribution
|
||||||
|
|
||||||
Grab the latest binary from the [releases](https://github.com/containous/traefik/releases) page.
|
Grab the latest binary from the [releases](https://github.com/containous/traefik/releases) page.
|
||||||
|
|
Loading…
Reference in a new issue