Do not set aws-load-balancer-connection-idle-timeout by default (#3054)
Co-authored-by: Felix Kunde <felix-kunde@gmx.de>
This commit is contained in:
parent
27c969d14b
commit
0ac28e3aad
|
|
@ -891,15 +891,13 @@ cluster manifest. In the case any of these variables are omitted from the
|
||||||
manifest, the operator configuration settings `enable_master_load_balancer` and
|
manifest, the operator configuration settings `enable_master_load_balancer` and
|
||||||
`enable_replica_load_balancer` apply. Note that the operator settings affect
|
`enable_replica_load_balancer` apply. Note that the operator settings affect
|
||||||
all Postgresql services running in all namespaces watched by the operator.
|
all Postgresql services running in all namespaces watched by the operator.
|
||||||
If load balancing is enabled two default annotations will be applied to its
|
If load balancing is enabled the following default annotation will be applied to
|
||||||
services:
|
its services:
|
||||||
|
|
||||||
- `external-dns.alpha.kubernetes.io/hostname` with the value defined by the
|
- `external-dns.alpha.kubernetes.io/hostname` with the value defined by the
|
||||||
operator configs `master_dns_name_format` and `replica_dns_name_format`.
|
operator configs `master_dns_name_format` and `replica_dns_name_format`.
|
||||||
This value can't be overwritten. If any changing in its value is needed, it
|
This value can't be overwritten. If any changing in its value is needed, it
|
||||||
MUST be done changing the DNS format operator config parameters; and
|
MUST be done changing the DNS format operator config parameters; and
|
||||||
- `service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout` with
|
|
||||||
a default value of "3600".
|
|
||||||
|
|
||||||
There are multiple options to specify service annotations that will be merged
|
There are multiple options to specify service annotations that will be merged
|
||||||
with each other and override in the following order (where latter take
|
with each other and override in the following order (where latter take
|
||||||
|
|
|
||||||
|
|
@ -724,14 +724,12 @@ class EndToEndTestCase(unittest.TestCase):
|
||||||
|
|
||||||
master_annotations = {
|
master_annotations = {
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-minimal-cluster-pooler.default.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-minimal-cluster-pooler.default.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
}
|
}
|
||||||
self.eventuallyTrue(lambda: k8s.check_service_annotations(
|
self.eventuallyTrue(lambda: k8s.check_service_annotations(
|
||||||
master_pooler_label+","+pooler_label, master_annotations), "Wrong annotations")
|
master_pooler_label+","+pooler_label, master_annotations), "Wrong annotations")
|
||||||
|
|
||||||
replica_annotations = {
|
replica_annotations = {
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-minimal-cluster-pooler-repl.default.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-minimal-cluster-pooler-repl.default.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
}
|
}
|
||||||
self.eventuallyTrue(lambda: k8s.check_service_annotations(
|
self.eventuallyTrue(lambda: k8s.check_service_annotations(
|
||||||
replica_pooler_label+","+pooler_label, replica_annotations), "Wrong annotations")
|
replica_pooler_label+","+pooler_label, replica_annotations), "Wrong annotations")
|
||||||
|
|
|
||||||
|
|
@ -680,8 +680,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -702,8 +701,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -714,8 +712,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
serviceAnnotations: map[string]string{"foo": "bar"},
|
serviceAnnotations: map[string]string{"foo": "bar"},
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -737,8 +734,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: map[string]string{"foo": "bar"},
|
operatorAnnotations: map[string]string{"foo": "bar"},
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -780,8 +776,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "wrong.external-dns-name.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "wrong.external-dns-name.example.com",
|
||||||
},
|
},
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -792,8 +787,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg.test.db.example.com,test-stg.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -835,8 +829,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -857,8 +850,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -869,8 +861,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
serviceAnnotations: map[string]string{"foo": "bar"},
|
serviceAnnotations: map[string]string{"foo": "bar"},
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -892,8 +883,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
operatorAnnotations: map[string]string{"foo": "bar"},
|
operatorAnnotations: map[string]string{"foo": "bar"},
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -935,8 +925,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "wrong.external-dns-name.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "wrong.external-dns-name.example.com",
|
||||||
},
|
},
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -947,8 +936,7 @@ func TestServiceAnnotations(t *testing.T) {
|
||||||
serviceAnnotations: make(map[string]string),
|
serviceAnnotations: make(map[string]string),
|
||||||
operatorAnnotations: make(map[string]string),
|
operatorAnnotations: make(map[string]string),
|
||||||
expect: map[string]string{
|
expect: map[string]string{
|
||||||
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
"external-dns.alpha.kubernetes.io/hostname": "acid-test-stg-repl.test.db.example.com,test-stg-repl.acid.db.example.com",
|
||||||
"service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout": "3600",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -1377,7 +1365,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
serviceWithOwnerReference := newService(
|
serviceWithOwnerReference := newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeClusterIP,
|
v1.ServiceTypeClusterIP,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1406,7 +1393,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
current: newService(
|
current: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeClusterIP,
|
v1.ServiceTypeClusterIP,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1414,7 +1400,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
new: newService(
|
new: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeClusterIP,
|
v1.ServiceTypeClusterIP,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1426,7 +1411,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
current: newService(
|
current: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeClusterIP,
|
v1.ServiceTypeClusterIP,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1434,7 +1418,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
new: newService(
|
new: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeLoadBalancer,
|
v1.ServiceTypeLoadBalancer,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1447,7 +1430,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
current: newService(
|
current: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeLoadBalancer,
|
v1.ServiceTypeLoadBalancer,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1455,7 +1437,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
new: newService(
|
new: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeLoadBalancer,
|
v1.ServiceTypeLoadBalancer,
|
||||||
[]string{"185.249.56.0/22"},
|
[]string{"185.249.56.0/22"},
|
||||||
|
|
@ -1468,7 +1449,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
current: newService(
|
current: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeLoadBalancer,
|
v1.ServiceTypeLoadBalancer,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
@ -1476,7 +1456,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
new: newService(
|
new: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeLoadBalancer,
|
v1.ServiceTypeLoadBalancer,
|
||||||
[]string{},
|
[]string{},
|
||||||
|
|
@ -1489,7 +1468,6 @@ func TestCompareServices(t *testing.T) {
|
||||||
current: newService(
|
current: newService(
|
||||||
map[string]string{
|
map[string]string{
|
||||||
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
constants.ZalandoDNSNameAnnotation: "clstr.acid.zalan.do",
|
||||||
constants.ElbTimeoutAnnotationName: constants.ElbTimeoutAnnotationValue,
|
|
||||||
},
|
},
|
||||||
v1.ServiceTypeClusterIP,
|
v1.ServiceTypeClusterIP,
|
||||||
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
[]string{"128.141.0.0/16", "137.138.0.0/16"},
|
||||||
|
|
|
||||||
|
|
@ -533,10 +533,6 @@ func (c *Cluster) generatePoolerServiceAnnotations(role PostgresRole, spec *acid
|
||||||
annotations := c.getCustomServiceAnnotations(role, spec)
|
annotations := c.getCustomServiceAnnotations(role, spec)
|
||||||
|
|
||||||
if c.shouldCreateLoadBalancerForPoolerService(role, spec) {
|
if c.shouldCreateLoadBalancerForPoolerService(role, spec) {
|
||||||
// set ELB Timeout annotation with default value
|
|
||||||
if _, ok := annotations[constants.ElbTimeoutAnnotationName]; !ok {
|
|
||||||
annotations[constants.ElbTimeoutAnnotationName] = constants.ElbTimeoutAnnotationValue
|
|
||||||
}
|
|
||||||
// -repl suffix will be added by replicaDNSName
|
// -repl suffix will be added by replicaDNSName
|
||||||
clusterNameWithPoolerSuffix := c.connectionPoolerName(Master)
|
clusterNameWithPoolerSuffix := c.connectionPoolerName(Master)
|
||||||
if role == Master {
|
if role == Master {
|
||||||
|
|
|
||||||
|
|
@ -2029,11 +2029,6 @@ func (c *Cluster) generateServiceAnnotations(role PostgresRole, spec *acidv1.Pos
|
||||||
if c.shouldCreateLoadBalancerForService(role, spec) {
|
if c.shouldCreateLoadBalancerForService(role, spec) {
|
||||||
dnsName := c.dnsName(role)
|
dnsName := c.dnsName(role)
|
||||||
|
|
||||||
// Just set ELB Timeout annotation with default value, if it does not
|
|
||||||
// have a custom value
|
|
||||||
if _, ok := annotations[constants.ElbTimeoutAnnotationName]; !ok {
|
|
||||||
annotations[constants.ElbTimeoutAnnotationName] = constants.ElbTimeoutAnnotationValue
|
|
||||||
}
|
|
||||||
// External DNS name annotation is not customizable
|
// External DNS name annotation is not customizable
|
||||||
annotations[constants.ZalandoDNSNameAnnotation] = dnsName
|
annotations[constants.ZalandoDNSNameAnnotation] = dnsName
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package constants
|
||||||
// Names and values in Kubernetes annotation for services, statefulsets and volumes
|
// Names and values in Kubernetes annotation for services, statefulsets and volumes
|
||||||
const (
|
const (
|
||||||
ZalandoDNSNameAnnotation = "external-dns.alpha.kubernetes.io/hostname"
|
ZalandoDNSNameAnnotation = "external-dns.alpha.kubernetes.io/hostname"
|
||||||
ElbTimeoutAnnotationName = "service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout"
|
|
||||||
ElbTimeoutAnnotationValue = "3600"
|
|
||||||
KubeIAmAnnotation = "iam.amazonaws.com/role"
|
KubeIAmAnnotation = "iam.amazonaws.com/role"
|
||||||
VolumeStorateProvisionerAnnotation = "pv.kubernetes.io/provisioned-by"
|
VolumeStorateProvisionerAnnotation = "pv.kubernetes.io/provisioned-by"
|
||||||
PostgresqlControllerAnnotationKey = "acid.zalan.do/controller"
|
PostgresqlControllerAnnotationKey = "acid.zalan.do/controller"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue