Skip to content

Commit

Permalink
Update clustermesh.go
Browse files Browse the repository at this point in the history
Updated deprecated annotation

Signed-off-by: Artem Tokarev <[email protected]>
  • Loading branch information
tokarev-artem authored Oct 17, 2023
1 parent d509f1a commit 06a36e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clustermesh/clustermesh.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ func (k *K8sClusterMesh) generateService() (*corev1.Service, error) {
svc.Spec.Type = corev1.ServiceTypeLoadBalancer
svc.ObjectMeta.Annotations["service.beta.kubernetes.io/azure-load-balancer-internal"] = "true"
case k8s.KindEKS:
k.Log("🔮 Auto-exposing service within AWS VPC (service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0")
k.Log("🔮 Auto-exposing service within AWS VPC (service.beta.kubernetes.io/aws-load-balancer-scheme: internal")
svc.Spec.Type = corev1.ServiceTypeLoadBalancer
svc.ObjectMeta.Annotations["service.beta.kubernetes.io/aws-load-balancer-internal"] = "0.0.0.0/0"
svc.ObjectMeta.Annotations["service.beta.kubernetes.io/aws-load-balancer-scheme"] = "internal"
default:
return nil, fmt.Errorf("cannot auto-detect service type, please specify using '--service-type' option")
}
Expand Down Expand Up @@ -1968,12 +1968,12 @@ func generateEnableHelmValues(params Parameters, flavor k8s.Flavor) (map[string]
},
}
case k8s.KindEKS:
log("🔮 Auto-exposing service within AWS VPC (service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0")
log("🔮 Auto-exposing service within AWS VPC (service.beta.kubernetes.io/aws-load-balancer-scheme: internal")
helmVals["clustermesh"].(map[string]interface{})["apiserver"] = map[string]interface{}{
"service": map[string]interface{}{
"type": "LoadBalancer",
"annotations": map[string]interface{}{
"service.beta.kubernetes.io/aws-load-balancer-internal": "0.0.0.0/0",
"service.beta.kubernetes.io/aws-load-balancer-scheme": "internal",
},
},
}
Expand Down

0 comments on commit 06a36e0

Please sign in to comment.