Skip to content

Commit

Permalink
add ingressclass to ingress resource
Browse files Browse the repository at this point in the history
  • Loading branch information
nschad committed Nov 5, 2021
1 parent da77521 commit ddd930a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@ Kubernetes: `^1.19.0-0`
| ingress.​enabled | bool | `false` | |
| ingress.​hosts[0].​host | string | `"chart-example.local"` | |
| ingress.​hosts[0].​paths[0] | string | `"/"` | |
| ingress.​ingressClass.​enabled | bool | `true` | |
| ingress.​ingressClass.​name | string | `"nginx"` | |
| ingress.​tls | list | `[]` | |
| memcached-blocks-index.​architecture | string | `"high-availability"` | |
| memcached-blocks-index.​extraEnv[0] | object | `{"name":"MEMCACHED_CACHE_SIZE","value":"1024"}` | MEMCACHED_CACHE_SIZE is the amount of memory allocated to memcached for object storage |
Expand Down
3 changes: 3 additions & 0 deletions templates/nginx/nginx-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ metadata:
annotations:
{{- toYaml .Values.ingress.annotations | nindent 4 }}
spec:
{{- if .Values.ingress.ingressClass.enabled }}
ingressClassName: {{ .Values.ingress.ingressClass.name }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand Down
3 changes: 3 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ tags:

ingress:
enabled: false
ingressClass:
enabled: true
name: "nginx"
annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
Expand Down

0 comments on commit ddd930a

Please sign in to comment.