Skip to content

Commit

Permalink
feat: add loadBalancerIP (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwalach authored Mar 15, 2023
1 parent c1f6678 commit 61df88f
Show file tree
Hide file tree
Showing 17 changed files with 82 additions and 0 deletions.
5 changes: 5 additions & 0 deletions helm/charts/hydra/templates/service-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.admin.type }}
{{- if eq .Values.service.admin.type "LoadBalancer" }}
{{- with .Values.service.admin.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.admin.port }}
targetPort: http-admin
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/hydra/templates/service-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.public.type }}
{{- if eq .Values.service.public.type "LoadBalancer" }}
{{- with .Values.service.public.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.public.port }}
targetPort: http-public
Expand Down
4 changes: 4 additions & 0 deletions helm/charts/hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ service:
enabled: true
# -- The service type
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
# -- The service port
port: 4444
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
Expand All @@ -46,6 +48,8 @@ service:
enabled: true
# -- The service type
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
# -- The service port
port: 4445
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/keto/templates/service-extraServices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ metadata:
{{- include "keto.labels" $ | nindent 4 }}
spec:
type: {{ $ServiceData.type }}
{{- if eq $ServiceData.type "LoadBalancer" }}
{{- with $ServiceData.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ $ServiceData.port }}
targetPort: {{ $ServiceData.name }}
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/keto/templates/service-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ metadata:
{{- include "keto.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.metrics.type }}
{{- if eq .Values.service.metrics.type "LoadBalancer" }}
{{- with .Values.service.metrics.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.metrics.port }}
targetPort: {{ .Values.service.metrics.name }}
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/keto/templates/service-read.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ metadata:
{{- include "keto.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.read.type }}
{{- if eq .Values.service.read.type "LoadBalancer" }}
{{- with .Values.service.read.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.read.port }}
targetPort: {{ .Values.service.read.name }}
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/keto/templates/service-write.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ metadata:
{{- include "keto.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.write.type }}
{{- if eq .Values.service.write.type "LoadBalancer" }}
{{- with .Values.service.write.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.write.port }}
targetPort: {{ .Values.service.write.name }}
Expand Down
6 changes: 6 additions & 0 deletions helm/charts/keto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,18 +152,24 @@ service:
read:
enabled: true
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
name: grpc-read
port: 80
# -- Write service
write:
enabled: true
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
name: grpc-write
port: 80
# -- Metrics service
metrics:
enabled: false
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
name: http-metrics
port: 80
annotations: {}
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/kratos-selfservice-ui-node/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ metadata:
{{ include "kratos-selfservice-ui-node.labels" . | indent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "LoadBalancer" }}
{{- with .Values.service.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
Expand Down
2 changes: 2 additions & 0 deletions helm/charts/kratos-selfservice-ui-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ fullnameOverride: ""
# -- Service configuration
service:
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
port: 80
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
name: http
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/kratos/templates/service-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.admin.type }}
{{- if eq .Values.service.admin.type "LoadBalancer" }}
{{- with .Values.service.admin.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.admin.port }}
targetPort: http-admin
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/kratos/templates/service-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.public.type }}
{{- if eq .Values.service.public.type "LoadBalancer" }}
{{- with .Values.service.public.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.public.port }}
targetPort: http-public
Expand Down
4 changes: 4 additions & 0 deletions helm/charts/kratos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ service:
admin:
enabled: true
type: ClusterIP
# -- Load balancer IP
loadBalancerIP: ""
port: 80
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
name: http
Expand All @@ -40,6 +42,8 @@ service:
public:
enabled: true
type: ClusterIP
# -- Load balancer IP
loadBalancerIP: ""
port: 80
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
name: http
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/oathkeeper/templates/service-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.api.type }}
{{- if eq .Values.service.api.type "LoadBalancer" }}
{{- with .Values.service.api.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.api.port }}
targetPort: http-api
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/oathkeeper/templates/service-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.metrics.type }}
{{- if eq .Values.service.metrics.type "LoadBalancer" }}
{{- with .Values.service.metrics.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.metrics.port }}
targetPort: http-metrics
Expand Down
5 changes: 5 additions & 0 deletions helm/charts/oathkeeper/templates/service-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.proxy.type }}
{{- if eq .Values.service.proxy.type "LoadBalancer" }}
{{- with .Values.service.proxy.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
{{- end }}
ports:
- port: {{ .Values.service.proxy.port }}
targetPort: http-proxy
Expand Down
6 changes: 6 additions & 0 deletions helm/charts/oathkeeper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ service:
enabled: true
# -- The service type
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
# -- The service port
port: 4455
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
Expand All @@ -61,6 +63,8 @@ service:
enabled: true
# -- The service type
type: ClusterIP
# -- The load balancer IP
loadBalancerIP: ""
# -- The service port
port: 4456
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
Expand All @@ -80,6 +84,8 @@ service:
enabled: true
# -- The service type
type: ClusterIP
# -- Load balancer IP
loadBalancerIP: ""
# -- The service port
port: 80
# -- The service port name. Useful to set a custom service port name if it must follow a scheme (e.g. Istio)
Expand Down

0 comments on commit 61df88f

Please sign in to comment.