doc: add k8s basic auth.
This commit is contained in:
parent
89da3b15a4
commit
420a6db3b4
2 changed files with 29 additions and 12 deletions
17
docs/toml.md
17
docs/toml.md
|
@ -1186,6 +1186,22 @@ Additionally, an annotation can be used on Kubernetes services to set the [circu
|
|||
|
||||
- `traefik.backend.circuitbreaker: <expression>`: set the circuit breaker expression for the backend (Default: nil).
|
||||
|
||||
### Authentication
|
||||
|
||||
Is possible to add additional authentication annotations in the Ingress rule.
|
||||
The source of the authentication is a secret that contains usernames and passwords inside the the key auth.
|
||||
|
||||
- `ingress.kubernetes.io/auth-type`: `basic`
|
||||
- `ingress.kubernetes.io/auth-secret`: contains the usernames and passwords with access to the paths defined in the Ingress Rule.
|
||||
|
||||
The secret must be created in the same namespace as the Ingress rule.
|
||||
|
||||
Limitations:
|
||||
|
||||
- Basic authentication only.
|
||||
- Realm not configurable; only `traefik` default.
|
||||
- Secret must contain only single file.
|
||||
|
||||
## Consul backend
|
||||
|
||||
Træfik can be configured to use Consul as a backend configuration:
|
||||
|
@ -1719,7 +1735,6 @@ RefreshSeconds = 15
|
|||
|
||||
Items in the `dynamodb` table must have three attributes:
|
||||
|
||||
|
||||
- `id` : string
|
||||
- The id is the primary key.
|
||||
- `name` : string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue