Skip to content

Commit

Permalink
Added configurable service type and annotations for Gateway service
Browse files Browse the repository at this point in the history
  • Loading branch information
Whyeasy committed Apr 7, 2020
1 parent 5d43692 commit 669fbd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/distributed-loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: loki-distributed
description: A Helm chart for Kubernetes
type: application

version: 0.0.13
version: 0.0.14
appVersion: 1.4.1
5 changes: 5 additions & 0 deletions charts/distributed-loki/templates/gateway/gateway-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
namespace: {{ .Release.Namespace }}
labels: {{- include "loki-helm.labels" . | nindent 4 }}
app.kubernetes.io/component: gateway
{{- with .Values.gateway.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{ end }}
spec:
type: {{ .Values.gateway.service.type }}
ports:
- name: nginx-http
port: 80
Expand Down
5 changes: 5 additions & 0 deletions charts/distributed-loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ gateway:
extraVolumeMounts: []
# gateway.extraVolumes -- Allow Extra volumes into the deployment
extraVolumes: []
service:
#gateway.service.annotations -- Annotations to apply on gateway service
annotations: {}
#gateway.service.type -- Service type
type: ClusterIP
ingress:
# gateway.ingress.enabled -- Enable Ingress for your gateway deployment
enabled: false
Expand Down

0 comments on commit 669fbd9

Please sign in to comment.