Skip to content

Commit

Permalink
feat: add service.annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
gpkc committed Dec 1, 2024
1 parent d614cf1 commit e53ab08
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/celery-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ helm install celery-exporter danihodovic/celery-exporter --set env[0].name=CE_BR
| securityContext | object | `{}` | |
| service.port | int | `9808` | |
| service.type | string | `"ClusterIP"` | |
| service.annotations | object | `{}` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
Expand Down
5 changes: 5 additions & 0 deletions charts/celery-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ metadata:
name: {{ include "celery-exporter.fullname" . }}
labels:
{{- include "celery-exporter.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}

spec:
type: {{ .Values.service.type }}
ports:
Expand Down
3 changes: 3 additions & 0 deletions charts/celery-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ securityContext: {}
service:
type: ClusterIP
port: 9808
annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "9808"

ingress:
enabled: false
Expand Down

0 comments on commit e53ab08

Please sign in to comment.