Skip to content

Commit

Permalink
Merge pull request #3524 from KyriosGN0/session
Browse files Browse the repository at this point in the history
[grafana] add session affinity config
  • Loading branch information
zanhsieh authored Jan 15, 2025
2 parents a88fdb6 + 3dcf318 commit d48aaa9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/grafana/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: grafana
version: 8.8.2
version: 8.8.3
appVersion: 11.4.0
kubeVersion: "^1.8.0-0"
description: The leading tool for querying and visualizing time series and metrics.
Expand Down
1 change: 1 addition & 0 deletions charts/grafana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ need to instead set `global.imageRegistry`.
| `service.enabled` | Enable grafana service | `true` |
| `service.ipFamilies` | Kubernetes service IP families | `[]` |
| `service.ipFamilyPolicy` | Kubernetes service IP family policy | `""` |
| `service.sessionAffinity` | Kubernetes service session affinity config | `""` |
| `service.type` | Kubernetes service type | `ClusterIP` |
| `service.port` | Kubernetes port where service is exposed | `80` |
| `service.portName` | Name of the port on the service | `service` |
Expand Down
3 changes: 3 additions & 0 deletions charts/grafana/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ spec:
{{- with .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ . }}
{{- end }}
{{- with .Values.service.seessionAffinity }}
sessionAffinity: {{ . }}
{{- end }}
ports:
- name: {{ .Values.service.portName }}
port: {{ .Values.service.port }}
Expand Down
1 change: 1 addition & 0 deletions charts/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ service:
portName: service
# Adds the appProtocol field to the service. This allows to work with istio protocol selection. Ex: "http" or "tcp"
appProtocol: ""
sessionAffinity: ""

serviceMonitor:
## If true, a ServiceMonitor CR is created for a prometheus operator
Expand Down

0 comments on commit d48aaa9

Please sign in to comment.