Skip to content

Commit

Permalink
add template for dashboard ingress annotations (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
elenz97 authored Nov 29, 2021
1 parent df110c4 commit c4c64ed
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/dashboard/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ dashboard:
hosts:
- (( imports.identity.export.dashboard_dns ))
- (( .landscape.dashboard.cname.domain || ~~ ))
annotations:
<<: (( .landscape.dashboard.ingress.annotations || ~~ ))
image:
repository: (( .dashboard_version.image_repo || ~~ ))
tag: (( .dashboard_version.image_tag || ~~ ))
Expand Down
16 changes: 16 additions & 0 deletions docs/extended/dashboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ will be given directly to the [dashboard helm chart](https://github.com/gardener
Please note that `frontendConfig.seedCandidateDeterminationStrategy` can not be overwritten here, as that value is derived from the Gardener. You can overwrite it [here](gardener.md).
The same is true for `frontendConfig.features.terminalEnabled`. See [below](#landscape-dashboard-terminals) on how to activate the terminals.

### landscape.dashboard.ingress.annotations

Via `landscape.dashboard.ingress.annotations`, an additional list of annotations can be set on the dashboard ingress.

For example, when using the `nginx ingress controller` you may specify an annotation like below to alter its configuration:

```yaml
...
dashboard:
...
ingress:
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: "10.0.0.0/24"
...
```

### landscape.dashboard.cname

With `landscape.dashboard.cname`, you can provide another domain from which the dashboard will be reachable.
Expand Down

0 comments on commit c4c64ed

Please sign in to comment.