Skip to content

Commit b58bba7

Browse files
committed
ignore fargate nodes for instance type
1 parent 32ca4ad commit b58bba7

File tree

1 file changed

+3
-0
lines changed
  • internal/ingress/annotations/class

1 file changed

+3
-0
lines changed

internal/ingress/annotations/class/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ func IsValidIngress(ingressClass string, ingress *extensions.Ingress) bool {
4343
// TODO: change this to in-sync with https://github.com/kubernetes/kubernetes/blob/13705ac81e00f154434b5c66c1ad92ac84960d7f/pkg/controller/service/service_controller.go#L592(relies on node's ready condition instead of AWS API)
4444
// IsValidNode returns true if the given Node has valid annotations
4545
func IsValidNode(n *corev1.Node) bool {
46+
if s, ok := n.ObjectMeta.Labels["eks.amazonaws.com/compute-type"]; ok && s == "fargate" {
47+
return false
48+
}
4649
if _, ok := n.ObjectMeta.Labels["node-role.kubernetes.io/master"]; ok {
4750
return false
4851
}

0 commit comments

Comments
 (0)