File tree Expand file tree Collapse file tree 7 files changed +57
-11
lines changed
node-pools/worker-karpenter Expand file tree Collapse file tree 7 files changed +57
-11
lines changed Original file line number Diff line number Diff line change @@ -903,12 +903,14 @@ stackset_configmap_support_enabled: "true"
903
903
stackset_configmap_support_enabled : " false"
904
904
{{end}}
905
905
906
+ # enable/disable secret support for stackset
907
+ stackset_secret_support_enabled : " false"
908
+
906
909
# enable/disable traffic segment support for stackset
910
+ stackset_enable_traffic_segments : " false"
907
911
{{if eq .Cluster.Environment "e2e"}}
908
- stackset_enable_traffic_segments : " true"
909
912
stackset_annotated_traffic_segments : " true"
910
913
{{else}}
911
- stackset_enable_traffic_segments : " false"
912
914
stackset_annotated_traffic_segments : " false"
913
915
{{end}}
914
916
Original file line number Diff line number Diff line change 1
1
{{ $internal_version := "v0.19.32-783" }}
2
- {{ $canary_internal_version := "v0.19.39-790 " }}
2
+ {{ $canary_internal_version := "v0.19.44-795 " }}
3
3
4
4
{{/* Optional canary arguments separated by "[cf724afc]" to allow whitespaces, e.g. "-foo=has a whitespace[cf724afc]-baz=qux" */}}
5
5
{{ $canary_args := "" }}
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ spec:
349
349
- maxReplicas
350
350
- metrics
351
351
type : object
352
- {{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
352
+ {{- if or ( eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true") (eq .Cluster.ConfigItems.stackset_secret_support_enabled "true") }}
353
353
configurationResources :
354
354
description : ConfigurationResources describes the ConfigMaps that
355
355
will be created. Later Secrets and PlatformCredentialSets will also
@@ -358,14 +358,26 @@ spec:
358
358
description : ConfigurationResourcesSpec makes it possible to defined
359
359
the config resources to be created
360
360
properties :
361
+ {{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
361
362
configMapRef :
362
- description : ConfigMap to be versioned for Stack
363
+ description : ConfigMap to be owned by Stack
364
+ properties :
365
+ name :
366
+ description : ' Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
367
+ TODO: Add other useful fields. apiVersion, kind, uid?'
368
+ type : string
369
+ type : object
370
+ {{ end }}
371
+ {{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
372
+ secretRef :
373
+ description : Secret to be owned by Stack
363
374
properties :
364
375
name :
365
376
description : ' Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
366
377
TODO: Add other useful fields. apiVersion, kind, uid?'
367
378
type : string
368
379
type : object
380
+ {{ end }}
369
381
type : object
370
382
type : array
371
383
{{ end }}
Original file line number Diff line number Diff line change @@ -596,7 +596,7 @@ spec:
596
596
- maxReplicas
597
597
- metrics
598
598
type: object
599
- {{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
599
+ {{- if or ( eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true") (eq .Cluster.ConfigItems.stackset_secret_support_enabled "true") }}
600
600
configurationResources:
601
601
description: ConfigurationResources describes the ConfigMaps
602
602
that will be created. Later Secrets and PlatformCredentialSets
@@ -605,15 +605,28 @@ spec:
605
605
description: ConfigurationResourcesSpec makes it possible
606
606
to defined the config resources to be created
607
607
properties:
608
+ {{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
608
609
configMapRef:
609
- description: ConfigMap to be versioned for Stack
610
+ description: ConfigMap to be owned by Stack
610
611
properties:
611
612
name:
612
613
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
613
614
TODO: Add other useful fields. apiVersion, kind,
614
615
uid?'
615
616
type: string
616
617
type: object
618
+ {{ end }}
619
+ {{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
620
+ secretRef:
621
+ description: Secret to be owned by Stack
622
+ properties:
623
+ name:
624
+ description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
625
+ TODO: Add other useful fields. apiVersion, kind,
626
+ uid?'
627
+ type: string
628
+ type: object
629
+ {{ end }}
617
630
type: object
618
631
type: array
619
632
{{ end }}
Original file line number Diff line number Diff line change 1
- {{ $version := "v1.4.27 " }}
1
+ {{ $version := "v1.4.31 " }}
2
2
apiVersion : apps/v1
3
3
kind : Deployment
4
4
metadata :
40
40
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
41
41
- " --enable-configmap-support"
42
42
{{- end }}
43
+ {{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
44
+ - " --enable-secret-support"
45
+ {{- end }}
43
46
{{- if eq .Cluster.ConfigItems.stackset_enable_traffic_segments "true" }}
44
47
- " --enable-traffic-segments"
45
48
{{- end }}
Original file line number Diff line number Diff line change @@ -110,6 +110,17 @@ rules:
110
110
- create
111
111
- update
112
112
{{- end }}
113
+ {{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
114
+ - apiGroups :
115
+ - " "
116
+ resources :
117
+ - secrets
118
+ verbs :
119
+ - get
120
+ - list
121
+ - create
122
+ - update
123
+ {{- end }}
113
124
---
114
125
apiVersion : rbac.authorization.k8s.io/v1
115
126
kind : ClusterRoleBinding
Original file line number Diff line number Diff line change @@ -138,6 +138,11 @@ spec:
138
138
operator : " NotIn"
139
139
values :
140
140
- " metal"
141
+ # exclude instance-types with slow SSD
142
+ - key : " node.kubernetes.io/instance-type"
143
+ operator : " NotIn"
144
+ values :
145
+ - " c5d.large"
141
146
#{{ else }}
142
147
- key : " node.kubernetes.io/instance-type"
143
148
operator : In
@@ -167,15 +172,15 @@ spec:
167
172
# Karpenter provides the ability to specify a few additional Kubelet args.
168
173
# These are all optional and provide support for additional customization and use cases.
169
174
kubelet :
170
- clusterDNS : ["10.0.1.100"]
175
+ clusterDNS : [ "10.0.1.100" ]
176
+ cpuCFSQuota : false
177
+ maxPods : { { nodeCIDRMaxPods (parseInt64 .Cluster.ConfigItems.node_cidr_mask_size) (parseInt64 .Cluster.ConfigItems.node_max_pods_extra_capacity) } }
171
178
systemReserved :
172
179
cpu : " {{ .Cluster.ConfigItems.kubelet_system_reserved_cpu }}"
173
180
memory : " {{ .Cluster.ConfigItems.kubelet_system_reserved_memory }}"
174
181
kubeReserved :
175
182
cpu : " {{ .Cluster.ConfigItems.kubelet_kube_reserved_cpu }}"
176
183
memory : " {{ .Cluster.ConfigItems.kubelet_kube_reserved_memory }}"
177
- maxPods : {{ nodeCIDRMaxPods (parseInt64 .Cluster.ConfigItems.node_cidr_mask_size) (parseInt64 .Cluster.ConfigItems.node_max_pods_extra_capacity) }}
178
- cpuCFSQuota : false
179
184
# Disruption section which describes the ways in which Karpenter can disrupt and replace Nodes
180
185
# Configuration in this section constrains how aggressive Karpenter can be with performing operations
181
186
# like rolling Nodes due to them hitting their maximum lifetime (expiry) or scaling down nodes to reduce cluster cost
You can’t perform that action at this time.
0 commit comments