Skip to content

Commit

Permalink
Ingress classname (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
PGDream authored Mar 23, 2022
1 parent bf241b7 commit b41e19e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
17 changes: 9 additions & 8 deletions charts/apisix-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,15 @@ The following tables lists the configurable parameters of the apisix-dashboard c

### Traffic Exposure parameters

| Name | Description | Value |
| ------------------------------- | ------------------------------------------------------------------------------------------------------ | ------------------------ |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | Service HTTP port | `80` |
| `ingress.enabled` | Set to true to enable ingress record generation | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | The list of hostnames to be covered with this ingress record. | `[]` |
| `ingress.tls` | Create TLS Secret | `false` |
| Name | Description | Value |
| ------------------------------- |--------------------------------------------------------------------------------------------------|-------------|
| `service.type` | Service type | `ClusterIP` |
| `service.port` | Service HTTP port | `80` |
| `ingress.enabled` | Set to true to enable ingress record generation | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.hosts` | The list of hostnames to be covered with this ingress record. | `[]` |
| `ingress.tls` | Create TLS Secret | `false` |
| `ingress.className` | `ingressClassName` replace `annotations kubernetes.io/ingress.class`, required kubernetes 1.18>= | `apisix` |

### RBAC parameters

Expand Down
3 changes: 3 additions & 0 deletions charts/apisix-dashboard/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
{{- if .Values.ingress.className }}
ingressClassName: {{- .Values.ingress.className -}}
{{- end }}
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
Expand Down
7 changes: 7 additions & 0 deletions charts/apisix-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,16 @@ service:

ingress:
enabled: false
# Kubernetes 1.18+ support ingressClassName attribute
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# domain access apisix example:
# hosts:
# - host: apisix-dashboard.local
# paths:
# - /*
hosts:
- host: apisix-dashboard.local
paths: []
Expand Down

0 comments on commit b41e19e

Please sign in to comment.