Added LoadBalancer annotations and LoadBalancerIP (#111)

Co-authored-by: Marc-Antoine Fernandes <marcantoinefernandes@gmail.com>
This commit is contained in:
Rick Foland 2022-12-06 14:58:03 +04:00 committed by GitHub
parent 6e28cb2cb3
commit f858a1e4cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 0 deletions

View File

@ -6,10 +6,15 @@ kind: Service
metadata:
name: {{ include "caddy-ingress-controller.fullname" . }}
namespace: {{ .Release.Namespace }}
{{- with .Values.loadBalancer.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "caddy-ingress-controller.labels" . | nindent 4 }}
spec:
type: "LoadBalancer"
loadBalancerIP: {{ .Values.loadBalancer.loadBalancerIP }} #Deprecated in Kubernetes v1.24
ports:
- name: http
port: 80

View File

@ -39,6 +39,16 @@ ingressController:
# onDemandRateLimitBurst:
# onDemandAsk:
loadBalancer:
# Deprecated in Kubernetes v1.24
loadBalancerIP:
annotations:
# service.beta.kubernetes.io/aws-load-balancer-type:
# service.beta.kubernetes.io/aws-load-balancer-nlb-target-type:
# service.beta.kubernetes.io/aws-load-balancer-scheme:
# service.beta.kubernetes.io/aws-load-balancer-eip-allocations:
# service.beta.kubernetes.io/aws-load-balancer-subnets:
serviceAccount:
# Specifies whether a service account should be created
create: true