Skip to content

Commit 11fa8b7

Browse files
committed
Merge remote-tracking branch 'origin/dev' into karpenter-update
2 parents 50e1921 + 90e0ed2 commit 11fa8b7

File tree

7 files changed

+57
-11
lines changed

7 files changed

+57
-11
lines changed

cluster/config-defaults.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,12 +903,14 @@ stackset_configmap_support_enabled: "true"
903903
stackset_configmap_support_enabled: "false"
904904
{{end}}
905905

906+
# enable/disable secret support for stackset
907+
stackset_secret_support_enabled: "false"
908+
906909
# enable/disable traffic segment support for stackset
910+
stackset_enable_traffic_segments: "false"
907911
{{if eq .Cluster.Environment "e2e"}}
908-
stackset_enable_traffic_segments: "true"
909912
stackset_annotated_traffic_segments: "true"
910913
{{else}}
911-
stackset_enable_traffic_segments: "false"
912914
stackset_annotated_traffic_segments: "false"
913915
{{end}}
914916

cluster/manifests/skipper/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ $internal_version := "v0.19.32-783" }}
2-
{{ $canary_internal_version := "v0.19.39-790" }}
2+
{{ $canary_internal_version := "v0.19.44-795" }}
33

44
{{/* Optional canary arguments separated by "[cf724afc]" to allow whitespaces, e.g. "-foo=has a whitespace[cf724afc]-baz=qux" */}}
55
{{ $canary_args := "" }}

cluster/manifests/stackset-controller/01-stack-crd.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ spec:
349349
- maxReplicas
350350
- metrics
351351
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") }}
353353
configurationResources:
354354
description: ConfigurationResources describes the ConfigMaps that
355355
will be created. Later Secrets and PlatformCredentialSets will also
@@ -358,14 +358,26 @@ spec:
358358
description: ConfigurationResourcesSpec makes it possible to defined
359359
the config resources to be created
360360
properties:
361+
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
361362
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
363374
properties:
364375
name:
365376
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
366377
TODO: Add other useful fields. apiVersion, kind, uid?'
367378
type: string
368379
type: object
380+
{{ end }}
369381
type: object
370382
type: array
371383
{{ end }}

cluster/manifests/stackset-controller/01-stackset-crd.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ spec:
596596
- maxReplicas
597597
- metrics
598598
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") }}
600600
configurationResources:
601601
description: ConfigurationResources describes the ConfigMaps
602602
that will be created. Later Secrets and PlatformCredentialSets
@@ -605,15 +605,28 @@ spec:
605605
description: ConfigurationResourcesSpec makes it possible
606606
to defined the config resources to be created
607607
properties:
608+
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
608609
configMapRef:
609-
description: ConfigMap to be versioned for Stack
610+
description: ConfigMap to be owned by Stack
610611
properties:
611612
name:
612613
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
613614
TODO: Add other useful fields. apiVersion, kind,
614615
uid?'
615616
type: string
616617
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 }}
617630
type: object
618631
type: array
619632
{{ end }}

cluster/manifests/stackset-controller/deployment.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ $version := "v1.4.27" }}
1+
{{ $version := "v1.4.31" }}
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:
@@ -40,6 +40,9 @@ spec:
4040
{{- if eq .Cluster.ConfigItems.stackset_configmap_support_enabled "true" }}
4141
- "--enable-configmap-support"
4242
{{- end }}
43+
{{- if eq .Cluster.ConfigItems.stackset_secret_support_enabled "true" }}
44+
- "--enable-secret-support"
45+
{{- end }}
4346
{{- if eq .Cluster.ConfigItems.stackset_enable_traffic_segments "true" }}
4447
- "--enable-traffic-segments"
4548
{{- end }}

cluster/manifests/stackset-controller/rbac.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,17 @@ rules:
110110
- create
111111
- update
112112
{{- 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 }}
113124
---
114125
apiVersion: rbac.authorization.k8s.io/v1
115126
kind: ClusterRoleBinding

cluster/node-pools/worker-karpenter/provisioners.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ spec:
138138
operator: "NotIn"
139139
values:
140140
- "metal"
141+
# exclude instance-types with slow SSD
142+
- key: "node.kubernetes.io/instance-type"
143+
operator: "NotIn"
144+
values:
145+
- "c5d.large"
141146
#{{ else }}
142147
- key: "node.kubernetes.io/instance-type"
143148
operator: In
@@ -167,15 +172,15 @@ spec:
167172
# Karpenter provides the ability to specify a few additional Kubelet args.
168173
# These are all optional and provide support for additional customization and use cases.
169174
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) } }
171178
systemReserved:
172179
cpu: "{{ .Cluster.ConfigItems.kubelet_system_reserved_cpu }}"
173180
memory: "{{ .Cluster.ConfigItems.kubelet_system_reserved_memory }}"
174181
kubeReserved:
175182
cpu: "{{ .Cluster.ConfigItems.kubelet_kube_reserved_cpu }}"
176183
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
179184
# Disruption section which describes the ways in which Karpenter can disrupt and replace Nodes
180185
# Configuration in this section constrains how aggressive Karpenter can be with performing operations
181186
# like rolling Nodes due to them hitting their maximum lifetime (expiry) or scaling down nodes to reduce cluster cost

0 commit comments

Comments
 (0)