File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -713,6 +713,15 @@ audit_webhook_batch_max_size: "250"
713
713
kube2iam_cpu : " 25m"
714
714
kube2iam_memory : " 100Mi"
715
715
716
+ # configure whether kube2iam should only run on worker nodes.
717
+ # This depends on control_plane_asg_lifecycle_hook=false as kube-node-ready
718
+ # doesn't work without kube2iam.
719
+ {{if eq .Cluster.Environment "production"}}
720
+ kube2iam_worker_only : " false"
721
+ {{else}}
722
+ kube2iam_worker_only : " true"
723
+ {{end}}
724
+
716
725
# CIDR configuration for nodes and pods
717
726
# Changing this will change the number of nodes and pods we can schedule in the
718
727
# cluster: https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr
Original file line number Diff line number Diff line change 21
21
annotations :
22
22
logging/destination : " {{.Cluster.ConfigItems.log_destination_infra}}"
23
23
spec :
24
+ {{- if and (eq .Cluster.ConfigItems.kube2iam_worker_only "true") (eq .Cluster.ConfigItems.control_plane_asg_lifecycle_hook "false") }}
25
+ nodeSelector :
26
+ node.kubernetes.io/role : worker
27
+ {{- end }}
24
28
dnsConfig :
25
29
options :
26
30
- name : ndots
You can’t perform that action at this time.
0 commit comments