Skip to content

Commit

Permalink
Add support to configure annotations on services in drill helm chart (#…
Browse files Browse the repository at this point in the history
…28)

* Add support to configure annotations on services

* bump version

* conditionally enable custom logging
  • Loading branch information
alisihab authored Nov 15, 2024
1 parent c1976b8 commit e541cc1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/drill/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: drill
version: 1.3.4
version: 1.3.5
appVersion: 1.21.1
description: Helm Charts for deploying Apache Drill Clusters on Kubernetes
icon: https://raw.githubusercontent.com/wearefrank/charts/master/charts/drill/icon.svg
Expand Down
2 changes: 2 additions & 0 deletions charts/drill/templates/configmap.override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ data:
storage-plugins-override.conf: |-
{{- toString . | nindent 4 }}
{{- end }}
{{- if .Values.drill.overrideLogging.enabled }}
logback.xml: |-
<configuration>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
Expand Down Expand Up @@ -58,3 +59,4 @@ data:
<logger name="{{ .name }}" level="{{ .level | default "trace" }}"/>
{{- end }}
</configuration>
{{- end }}
8 changes: 8 additions & 0 deletions charts/drill/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ metadata:
name: {{ include "drill.fullname" . }}-web
labels:
{{- include "drill.labels" . | nindent 4 }}
{{- with .Values.service.web.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
sessionAffinity: ClientIP
ports:
Expand All @@ -20,6 +24,10 @@ metadata:
name: {{ include "drill.fullname" . }}-user
labels:
{{- include "drill.labels" . | nindent 4 }}
{{- with .Values.service.user.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
sessionAffinity: ClientIP
ports:
Expand Down
2 changes: 2 additions & 0 deletions charts/drill/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,15 @@ service:
web:
type: ClusterIP
port: 80
annotations: { }
## Drill User Api for external client, such as Tableau, to connect into the cluster nodes.
## @param service.user.type Drill User Api service type
## @param service.user.port Drill User Api service port
##
user:
type: ClusterIP
port: 31010
annotations: { }

## Configure the ingress resource that allows you to access the Drill Web UI
## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
Expand Down

0 comments on commit e541cc1

Please sign in to comment.