Skip to content

Commit

Permalink
[keycloak] Add Affinity to HTTP Service (#355)
Browse files Browse the repository at this point in the history
Signed-off-by: Viacheslav Kropotko <[email protected]>
  • Loading branch information
s-vkropotko authored Dec 7, 2020
1 parent c61d7d0 commit bdc4d52
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/keycloak/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: keycloak
version: 9.7.0
version: 9.8.0
appVersion: 11.0.2
description: Open Source Identity and Access Management For Modern Applications and Services
keywords:
Expand Down
2 changes: 2 additions & 0 deletions charts/keycloak/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ The following table lists the configurable parameters of the Keycloak chart and
| `service.httpManagementPort` | The WildFly management Service port | `8443` |
| `service.httpManagementNodePort` | The WildFly management node port if type is NodePort | `""` |
| `service.extraPorts` | Additional Service ports, e. g. for custom admin console | `[]` |
| `service.sessionAffinity` | sessionAffinity for Service, e. g. "ClientIP" | `""` |
| `service.sessionAffinityConfig` | sessionAffinityConfig for Service | `{}` |
| `ingress.enabled` | If `true`, an Ingress is created | `false` |
| `ingress.rules` | List of Ingress Ingress rule | see below |
| `ingress.rules[0].host` | Host for the Ingress rule | `keycloak.example.com` |
Expand Down
7 changes: 7 additions & 0 deletions charts/keycloak/templates/service-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ spec:
loadBalancerSourceRanges:
{{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
{{- if .Values.service.sessionAffinity }}
sessionAffinity: {{ .Values.service.sessionAffinity }}
{{- with .Values.service.sessionAffinityConfig }}
sessionAffinityConfig:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
ports:
- name: http
port: {{ .Values.service.httpPort }}
Expand Down
6 changes: 6 additions & 0 deletions charts/keycloak/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@
},
"loadBalancerIP": {
"type": "string"
},
"sessionAffinity": {
"type": "string"
},
"sessionAffinityConfig": {
"type": "object"
}
}
},
Expand Down
5 changes: 5 additions & 0 deletions charts/keycloak/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ service:
# to connect to the LoadBalancer, e. g. will result in Security Groups
# (or equivalent) with inbound source ranges allowed to connect
loadBalancerSourceRanges: []
# Session affinity
# See https://kubernetes.io/docs/concepts/services-networking/service/#proxy-mode-userspace
sessionAffinity: ""
# Session affinity config
sessionAffinityConfig: {}

ingress:
# If `true`, an Ingress is created
Expand Down

0 comments on commit bdc4d52

Please sign in to comment.