Skip to content

Commit

Permalink
Recommend 'NoExecute' instead of 'NoSchedule'.
Browse files Browse the repository at this point in the history
To prevent situations in which the GKE node is forcibly stopped and
re-created from causing unmanaged pods, and building on the observation
that the node comes back with the same name and pods are already
scheduled there, we change the recommended taint effect from NoSchedule
to NoExecute, to cause any previously scheduled pods to be evicted,
preventing them from getting IPs assigned by the default CNI. This
should not impact other environments due to the nature of 'NoExecute',
so we recommend it everywhere.

[ cilium/cilium commit b049574 ]

Signed-off-by: Bruno Miguel Custódio <[email protected]>
Co-authored-by: Tam Mach <[email protected]>
  • Loading branch information
bmcustodio and sayboras committed Feb 16, 2022
1 parent 09cb702 commit 7c599ac
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ jobs:
${{ env.cost_reduction }} \
--no-wait
# Create user node pool tainted with `node.cilium.io/agent-not-ready=true:NoSchedule`
# Create user node pool tainted with `node.cilium.io/agent-not-ready=true:NoExecute`
az aks nodepool add \
--resource-group ${{ env.name }} \
--cluster-name ${{ env.name }} \
--name userpool \
--mode user \
--node-count 2 \
--node-taints "node.cilium.io/agent-not-ready=true:NoSchedule" \
--node-taints "node.cilium.io/agent-not-ready=true:NoExecute" \
${{ env.cost_reduction }} \
--no-wait
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eks-tunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
taints:
- key: "node.cilium.io/agent-not-ready"
value: "true"
effect: "NoSchedule"
effect: "NoExecute"
EOF
eksctl create cluster -f ./eks-config.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
taints:
- key: "node.cilium.io/agent-not-ready"
value: "true"
effect: "NoSchedule"
effect: "NoExecute"
EOF
eksctl create cluster -f ./eks-config.yaml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/externalworkloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
--machine-type e2-custom-2-4096 \
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoSchedule \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
CLUSTER_CIDR=$(gcloud container clusters describe ${{ env.clusterName }} --zone ${{ env.zone }} --format="value(clusterIpv4Cidr)")
echo ::set-output name=cluster_cidr::${CLUSTER_CIDR}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
--machine-type e2-custom-2-4096 \
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoSchedule \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
CLUSTER_CIDR=$(gcloud container clusters describe ${{ env.clusterName }} --zone ${{ env.zone }} --format="value(clusterIpv4Cidr)")
echo ::set-output name=cluster_cidr::${CLUSTER_CIDR}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/multicluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
--machine-type e2-custom-2-4096 \
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoSchedule \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible \
--enable-ip-alias
Expand All @@ -107,7 +107,7 @@ jobs:
--machine-type e2-custom-2-4096 \
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoSchedule \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible \
--enable-ip-alias
Expand Down

0 comments on commit 7c599ac

Please sign in to comment.