Adding a lot of stuff.
This commit is contained in:
@ -5,6 +5,7 @@ controller:
|
||||
proxy-real-ip-cidr: ${proxy-real-ip-cidr}
|
||||
use-forwarded-headers: ${use-forwarded-headers}
|
||||
compute-full-forwarded-for: ${compute-full-forwarded-for}
|
||||
|
||||
service:
|
||||
annotations:
|
||||
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: ${public.backend-protocol}
|
||||
@ -12,9 +13,15 @@ controller:
|
||||
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: '${public.cross-zone-load-balancing-enabled}'
|
||||
service.beta.kubernetes.io/aws-load-balancer-type: ${public.type}
|
||||
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "scheme=internet-facing,${tags}"
|
||||
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "${public.proxy-protocol}"
|
||||
%{~ if public.enable-proxy-protocol ~}
|
||||
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
|
||||
%{~ endif ~}
|
||||
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "${public.nlb-target-type}"
|
||||
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
|
||||
%{~ if public.eip-allocations != "" ~}
|
||||
service.beta.kubernetes.io/aws-load-balancer-eip-allocations: ${public.eip-allocations}
|
||||
%{~ endif ~}
|
||||
service.beta.kubernetes.io/aws-load-balancer-name: "${public.name}"
|
||||
internal:
|
||||
annotations:
|
||||
service.beta.kubernetes.io/aws-load-balancer-internal: "true"
|
||||
@ -23,17 +30,20 @@ controller:
|
||||
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: '${internal.cross-zone-load-balancing-enabled}'
|
||||
service.beta.kubernetes.io/aws-load-balancer-type: ${internal.type}
|
||||
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "scheme=internal,${tags}"
|
||||
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "${internal.proxy-protocol}"
|
||||
%{~ if internal.enable-proxy-protocol ~}
|
||||
service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*"
|
||||
%{~ endif ~}
|
||||
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "${public.nlb-target-type}"
|
||||
service.beta.kubernetes.io/aws-load-balancer-scheme: "internal"
|
||||
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: preserve_client_ip.enabled=false
|
||||
service.beta.kubernetes.io/aws-load-balancer-name: "${internal.name}"
|
||||
|
||||
# metrics:
|
||||
# enabled: true
|
||||
# serviceMonitor:
|
||||
# enabled: true
|
||||
# additionalLabels:
|
||||
# release: prometheus-community
|
||||
# namespaceSelector:
|
||||
# any: true
|
||||
metrics:
|
||||
enabled: true
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
additionalLabels:
|
||||
release: prometheus-community
|
||||
namespaceSelector:
|
||||
any: true
|
||||
...
|
||||
|
@ -5,8 +5,10 @@ variable "load_balancer_config" {
|
||||
cross-zone-load-balancing-enabled = bool
|
||||
type = string
|
||||
dns_record = string
|
||||
proxy-protocol = string
|
||||
enable-proxy-protocol = bool
|
||||
nlb-target-type = string
|
||||
eip-allocations = string
|
||||
name = string
|
||||
}))
|
||||
description = "The AWS Load Balancer(s) configuration. Map keys shall be 'public' and/or 'internal'"
|
||||
}
|
||||
@ -98,4 +100,4 @@ variable "internal_dns_record" {
|
||||
variable "tags" {
|
||||
type = map(string)
|
||||
default = {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user