Skip to content

Commit 2c96c9a

Browse files
authored
Merge pull request #9996 from zalando-incubator/alpha-to-beta
alpha to beta
2 parents 22e4ac0 + 75e5e25 commit 2c96c9a

File tree

10 files changed

+42
-40
lines changed

10 files changed

+42
-40
lines changed

cluster/config-defaults.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,6 @@ eks_zalando_iam_aws_proxy_hpa_cpu_target: "80"
13041304
eks_zalando_iam_aws_proxy_hpa_memory_target: "80"
13051305
eks_okta_identity_provider: "true"
13061306
eks_fis_support_enabled: "false"
1307-
eks_fis_namespaces: "default"
13081307

13091308
# prefix delegation can only be configured for ipv4. For ipv6 it can only be true.
13101309
aws_vpc_cni_prefix_delegation: "false"

cluster/manifests/01-coredns-local/daemonset-coredns.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec:
9494
name: unbound-socket
9595
readOnly: false
9696
- name: unbound-exporter
97-
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/unbound_exporter:v0.4.6-main-1.custom
97+
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/unbound_exporter:v0.4.6-main-2.custom
9898
args:
9999
- -unbound.ca
100100
- ""
@@ -120,7 +120,7 @@ spec:
120120
readOnly: false
121121
- name: coredns
122122
{{- if eq .Cluster.Provider "zalando-eks" }}
123-
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/coredns:1.12.1-master-26
123+
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/coredns:1.12.4-master-29
124124
{{- else }}
125125
image: container-registry.zalando.net/teapot/coredns:1.12.4-master-28
126126
{{- end }}

cluster/manifests/02-admission-control/config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ data:
169169
{{- end}}
170170

171171
pod.pod-security-policy.allow-privilege-escalation: "{{ .Cluster.ConfigItems.teapot_admission_controller_pod_security_policy_privileged_allow_privilege_escalation }}"
172+
{{- if eq .Cluster.ConfigItems.eks_fis_support_enabled "true" }}
173+
pod.aws-fis-experiment-service-account-name: "fis-experiment-executor"
174+
pod.aws-fis-experiment-user: "fis-experiment-executor"
175+
pod.aws-fis-experiment-privileged-capabilities.NET_ADMIN: ""
176+
{{- end}}
172177

173178
deployment.default.rolling-update-max-surge: "{{ .Cluster.ConfigItems.teapot_admission_controller_deployment_default_max_surge }}"
174179
deployment.default.rolling-update-max-unavailable: "{{ .Cluster.ConfigItems.teapot_admission_controller_deployment_default_max_unavailable }}"

cluster/manifests/deletions.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ post_apply:
1515
kind: ClusterRoleBinding
1616
- name: fis-experiment
1717
kind: ClusterRole
18-
# {{ range $namespace := split .Cluster.ConfigItems.eks_fis_namespaces "," }}
19-
- name: fis-experiment
20-
kind: ServiceAccount
21-
namespace: "{{ $namespace }}"
22-
# {{ end }}
2318
{{- end }}
2419
{{- end }}
2520
{{ if eq .Cluster.ConfigItems.teapot_admission_controller_process_resources "true" }}

cluster/manifests/eks-fis/01-rbac.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
11
{{- if eq .Cluster.ConfigItems.eks_fis_support_enabled "true" }}
2-
# {{ range $namespace := split .Cluster.ConfigItems.eks_fis_namespaces "," }}
3-
kind: ServiceAccount
4-
apiVersion: v1
5-
metadata:
6-
namespace: "{{ $namespace }}"
7-
name: fis-experiment-executor
8-
---
9-
# {{ end }}
102
kind: ClusterRole
113
apiVersion: rbac.authorization.k8s.io/v1
124
metadata:
@@ -17,7 +9,7 @@ rules:
179
verbs: ["get", "create", "patch", "delete"]
1810
- apiGroups: [""]
1911
resources: ["pods"]
20-
verbs: ["create", "get", "delete", "deletecollection", "list"]
12+
verbs: ["create", "list", "get", "delete", "deletecollection"]
2113
- apiGroups: [""]
2214
resources: ["pods/ephemeralcontainers"]
2315
verbs: ["update"]
@@ -33,11 +25,6 @@ kind: ClusterRoleBinding
3325
metadata:
3426
name: fis-experiment-executor
3527
subjects:
36-
# {{ range $namespace := split .Cluster.ConfigItems.eks_fis_namespaces "," }}
37-
- kind: ServiceAccount
38-
name: fis-experiment-executor
39-
namespace: "{{ $namespace }}"
40-
# {{ end }}
4128
- apiGroup: rbac.authorization.k8s.io
4229
kind: User
4330
name: fis-experiment-executor

cluster/manifests/prometheus/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ spec:
5757
mountPath: /prometheus
5858
containers:
5959
- name: prometheus
60-
image: container-registry.zalando.net/teapot/prometheus:v3.4.1-master-67
60+
image: container-registry.zalando.net/teapot/prometheus:v3.5.0-master-68
6161
args:
6262
- "--config.file=/prometheus/prometheus.yaml"
6363
- "--storage.tsdb.path=/prometheus/"

cluster/manifests/role-sync-controller/cronjob.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
restartPolicy: Never
3434
containers:
3535
- name: role-sync-controller
36-
image: container-registry.zalando.net/teapot/role-sync-controller:main-13
36+
image: container-registry.zalando.net/teapot/role-sync-controller:main-14
3737
args:
3838
- --subject-group=PowerUser
3939
- --subject-group=Manual
@@ -47,4 +47,7 @@ spec:
4747
{{- if eq .Cluster.Provider "zalando-eks"}}
4848
- --subject-serviceaccount=kube-system/deployment-service-controller
4949
{{- end}}
50+
{{- if eq .Cluster.ConfigItems.eks_fis_support_enabled "true" }}
51+
- --eks-fis-serviceaccount=fis-experiment-executor
52+
{{- end}}
5053
{{ end }}

cluster/manifests/role-sync-controller/rbac.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ rules:
1414
- "namespaces"
1515
verbs:
1616
- "list"
17+
# Allow the controller to manage ServiceAccounts
18+
- apiGroups:
19+
- ""
20+
resources:
21+
- serviceaccounts
22+
verbs:
23+
- "get"
24+
- "create"
25+
- "update"
1726
# Allow the controller to manage Roles and Rolebindings
1827
- apiGroups:
1928
- rbac.authorization.k8s.io
@@ -41,6 +50,23 @@ rules:
4150
- "get"
4251
- "list"
4352
- "watch"
53+
# Allow the controller to manage roles with permissions required by eks-fis
54+
# integration.
55+
- apiGroups: [""]
56+
resources: ["configmaps"]
57+
verbs: ["get", "create", "patch", "delete"]
58+
- apiGroups: [""]
59+
resources: ["pods"]
60+
verbs: ["create", "get", "delete", "deletecollection", "list"]
61+
- apiGroups: [""]
62+
resources: ["pods/ephemeralcontainers"]
63+
verbs: ["update"]
64+
- apiGroups: [""]
65+
resources: ["pods/exec"]
66+
verbs: ["create"]
67+
- apiGroups: ["apps"]
68+
resources: ["deployments"]
69+
verbs: ["get"]
4470
---
4571
apiVersion: rbac.authorization.k8s.io/v1
4672
kind: ClusterRoleBinding

cluster/manifests/sandbox-controller/30-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# {{ $image := "container-registry.zalando.net/gwproxy/sandbox-controller:main-20" }}
1+
# {{ $image := "container-registry.zalando.net/gwproxy/sandbox-controller:main-22" }}
22
# {{ $version := index (split $image ":") 1 }}
33

44
{{ if eq .Cluster.ConfigItems.sandbox_controller_enabled "true" }}

test/e2e/cluster_config.sh

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,6 @@ EOFF
108108
profile: worker-splitaz
109109
min_size: 0
110110
max_size: 21
111-
- name: default-karpenter
112-
profile: worker-karpenter
113-
discount_strategy: none
114-
max_size: 0
115-
min_size: 0
116-
instance_types:
117-
- default-for-karpenter
118-
config_items:
119-
scaling_priority: "100"
120111
- name: karpenter-arm
121112
profile: worker-karpenter
122113
discount_strategy: none
@@ -188,7 +179,6 @@ EOFF
188179
scaling_priority: "2"
189180
taints: nvidia.com/gpu=present:NoSchedule,zalando.org/dedicated=dedicated:NoSchedule
190181
discount_strategy: none
191-
instance_type: not-specified
192182
instance_types:
193183
- not-specified
194184
max_size: 0
@@ -200,9 +190,8 @@ EOFF
200190
scaling_priority: "1"
201191
taints: zalando.org/dedicated=dedicated:NoSchedule
202192
discount_strategy: none
203-
instance_type: not-specified
204193
instance_types:
205-
- not-specified
194+
- default-for-karpenter
206195
max_size: 0
207196
min_size: 0
208197
name: karpenter-catch-all-dedicated
@@ -212,7 +201,6 @@ EOFF
212201
scaling_priority: "3"
213202
taints: nvidia.com/gpu=present:NoSchedule
214203
discount_strategy: none
215-
instance_type: not-specified
216204
instance_types:
217205
- not-specified
218206
max_size: 0
@@ -222,9 +210,8 @@ EOFF
222210
- config_items:
223211
scaling_priority: "2"
224212
discount_strategy: none
225-
instance_type: not-specified
226213
instance_types:
227-
- not-specified
214+
- default-for-karpenter
228215
max_size: 0
229216
min_size: 0
230217
name: karpenter-catch-all

0 commit comments

Comments
 (0)