Skip to content

Commit

Permalink
[stable/apm-server] Add optional TLS configuration to the chart (helm…
Browse files Browse the repository at this point in the history
…#14305)

* [stable/apm-server] Add optional TLS configuration to the chart

Signed-off-by: Amit Oren <[email protected]>

* [stable/apm-server] Bump chart version

Signed-off-by: Amit Oren <[email protected]>
  • Loading branch information
amit-o authored and davidkarlsen committed Jul 3, 2019
1 parent 50f7856 commit d865172
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/apm-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
description: The server receives data from the Elastic APM agents and stores the data into a datastore like Elasticsearch
icon: https://www.elastic.co/assets/blt47799dcdcf08438d/logo-elastic-beats-lt.svg
name: apm-server
version: 2.1.3
version: 2.1.4
appVersion: 7.0.0
home: https://www.elastic.co/solutions/apm
sources:
Expand Down
1 change: 1 addition & 0 deletions stable/apm-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ The following table lists the configurable parameters of the apm-server chart an
| `ingress.annotations` | Kubernetes ingress annotations | None |
| `ingress.labels` | Kubernetes service labels | None |
| `ingress.hosts` | List of ingress accepted hostnames | apm-server-ingress.example.com |
| `ingress.tls` | Ingress TLS configuration | `[]` |
| `rbac.create` | If true, create & use RBAC resources | `true` |
| `rbac.serviceAccount` | existing ServiceAccount to use (ignored if rbac.create=true) | `default` |
| `config` | The content of the configuration file consumed by apm-server. See the [apm-server documentation](https://www.elastic.co/guide/en/beats/apm-server/current/apm-server-reference-yml.html) for full details | |
Expand Down
10 changes: 10 additions & 0 deletions stable/apm-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ metadata:
{{- end }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
Expand Down
4 changes: 4 additions & 0 deletions stable/apm-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ ingress:
labels: {}
hosts:
- apm-server-ingress.example.com
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

config:
apm-server:
Expand Down

0 comments on commit d865172

Please sign in to comment.