Skip to content

Commit f43aa28

Browse files
author
Martin Linkhorst
committed
Merge remote-tracking branch 'origin/dev' into drop-karpenter-enabled
2 parents 5c397be + 9b3149a commit f43aa28

File tree

41 files changed

+317
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+317
-246
lines changed

cluster/cluster.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,21 @@ Resources:
252252
KubernetesGroups:
253253
- zalando:administrator
254254
Type: "STANDARD"
255+
{{- if eq .Cluster.Environment "e2e" }}
256+
EKSAccessEntryManualAdministratorAuth:
257+
Type: "AWS::EKS::AccessEntry"
258+
Properties:
259+
AccessPolicies:
260+
- AccessScope:
261+
Type: "cluster"
262+
PolicyArn: "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
263+
ClusterName: !Ref EKSCluster
264+
PrincipalArn: !Sub "arn:aws:iam::${AWS::AccountId}:role/Manual"
265+
Username: !Sub "arn:aws:sts::${AWS::AccountId}:assumed-role/Manual/{{`{{SessionName}}`}}"
266+
KubernetesGroups:
267+
- zalando:administrator
268+
Type: "STANDARD"
269+
{{- end }}
255270
EKSAddonPodIdentityAgent:
256271
Type: AWS::EKS::Addon
257272
Properties:

cluster/config-defaults.yaml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ karpenter_max_pods_per_node: "32"
4141
# Our AMI configured RAID0 at boot.
4242
karpenter_instance_storage_raid0: "true"
4343

44+
# configure whether karpenter node pools only allow instances supporting
45+
# in-transit encryption
46+
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/data-protection.html#encryption-transit
47+
# Can be set cluster wide or per node pool
48+
karpenter_in_transit_support_required: "false"
49+
4450
# ALB config created by kube-aws-ingress-controller
4551
kube_aws_ingress_controller_ssl_policy: "ELBSecurityPolicy-TLS-1-2-2017-01"
4652
kube_aws_ingress_controller_idle_timeout: "1m"
@@ -104,11 +110,7 @@ skipper_ingress_binpack: "false"
104110

105111
# skipper node-pool
106112
enable_dedicate_nodepool_skipper: "true"
107-
{{if eq .Cluster.Environment "e2e"}}
108-
skipper_attach_only_to_skipper_node_pool: "false"
109-
{{else}}
110113
skipper_attach_only_to_skipper_node_pool: "true"
111-
{{end}}
112114

113115
skipper_suppress_route_update_logs: "true"
114116
skipper_validate_query: "true"
@@ -366,6 +368,9 @@ skipper_ingress_routegroup_crd_require_hosts: "true"
366368
skipper_open_policy_agent_enabled: "false"
367369
skipper_open_policy_agent_styra_token: ""
368370

371+
# Default timeout value in seconds for outgoing http calls from Open Policy Agent in a skipper filter
372+
skipper_open_policy_agent_styra_response_header_timeout: "2"
373+
369374
#
370375
# FabricGateway controller config
371376
#
@@ -768,14 +773,18 @@ tracing_coredns_local_zone_traces_endpoint: ""
768773
# AMI id given the image name and the Image AWS account owner.
769774
#
770775
# [0]: https://github.com/zalando-incubator/cluster-lifecycle-manager/blob/8a9bd1cb2d094038a9e23e646421f8146b48886a/provisioner/template.go#L116
771-
kuberuntu_image_v1_31_old_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.4-amd64-master-359" "861068367966" }}
772-
kuberuntu_image_v1_31_old_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.4-arm64-master-359" "861068367966" }}
773-
kuberuntu_image_v1_31_new_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.6-amd64-master-368" "861068367966" }}
774-
kuberuntu_image_v1_31_new_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.6-arm64-master-368" "861068367966" }}
776+
kuberuntu_image_v1_31_aws_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.6-amd64-master-368" "861068367966" }}
777+
kuberuntu_image_v1_31_aws_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.6-arm64-master-368" "861068367966" }}
778+
kuberuntu_image_v1_31_eks_amd64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.7-amd64-master-371" "861068367966" }}
779+
kuberuntu_image_v1_31_eks_arm64: {{ amiID "zalando-ubuntu-jammy-22.04-kubernetes-production-v1.31.7-arm64-master-371" "861068367966" }}
775780

776781
# This is used to determine which AMI to use for the cluster or individual node
777-
# pools. Possible values are 'new' or 'old'
778-
kuberuntu_ami_version: "new"
782+
# pools. Possible values are 'aws' or 'eks'
783+
{{if eq .Cluster.Provider "zalando-eks"}}
784+
kuberuntu_ami_version: "eks"
785+
{{else}}
786+
kuberuntu_ami_version: "aws"
787+
{{end}}
779788

780789
# Feature toggle for auditing events
781790
audit_pod_events: "true"
@@ -913,7 +922,7 @@ external_dns_zones_cache_duration: "1h"
913922
external_dns_mem: "4Gi"
914923

915924
# select which cache to use for Cluster DNS: unbound or dnsmasq.
916-
dns_cache: "dnsmasq"
925+
dns_cache: "unbound"
917926

918927
expirimental_dns_unbound_liveness_probe: "true"
919928

@@ -1249,10 +1258,10 @@ role_sync_controller_enabled: "false"
12491258
wiz_enable_runtime_sensor: "false"
12501259
wiz_enable_runtime_connector: "false"
12511260
wiz_enable_runtime_connector_broker: "false"
1252-
wiz_sensor_cpu: "300m"
1261+
wiz_sensor_cpu: "200m"
12531262
wiz_sensor_memory: "300Mi"
1254-
wiz_connector_cpu: "300m"
1255-
wiz_connector_memory: "300Mi"
1263+
wiz_connector_cpu: "50m"
1264+
wiz_connector_memory: "150Mi"
12561265
wiz_priority: "false"
12571266
# Please note when this is set to true it allows the use of the node selector feature
12581267
# to deploy the sensor and connector on specific nodes, by manually setting the node selector label on the nodes.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ spec:
212212
{{- if eq .Cluster.Provider "zalando-eks" }}
213213
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/coredns:1.12.0-master-25
214214
{{- else }}
215-
image: container-registry.zalando.net/teapot/coredns:1.12.0-master-25
215+
image: container-registry.zalando.net/teapot/coredns:1.12.1-master-26
216216
{{- end }}
217217
args: [ "-conf", "/etc/coredns/Corefile" ]
218218
env:

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ data:
2929
pod.service-account-iam.enable: "true"
3030
pod.service-account-iam.base-aws-account-id: "{{ accountID .Cluster.InfrastructureAccount }}"
3131
{{- if eq .Cluster.ConfigItems.teapot_admission_controller_inject_aws_waiter "true" }}
32-
pod.aws-waiter.image: "926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/automata/aws-credentials-waiter:master-249"
32+
pod.aws-waiter.image: "926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/automata/aws-credentials-waiter:master-257"
3333
{{- end }}
3434
pod.env-inject.enable: "{{ .Cluster.ConfigItems.teapot_admission_controller_inject_environment_variables }}"
3535
pod.env-inject.variable._PLATFORM_ACCOUNT: "{{ .Cluster.Alias }}"
@@ -45,6 +45,10 @@ data:
4545
pod.env-inject.variable._PLATFORM_OBSERVABILITY_METRICS_PORT: "{{ .Cluster.ConfigItems.observability_metrics_port }}"
4646
pod.env-inject.variable._PLATFORM_OBSERVABILITY_ACCESS_TOKEN: "{{ .Cluster.ConfigItems.lightstep_token }}"
4747
pod.env-inject.variable._PLATFORM_OBSERVABILITY_COMMON_ATTRIBUTE_CLOUD__ACCOUNT__ID : "{{ .Cluster.Alias }}"
48+
{{- if and (eq .Cluster.Provider "zalando-eks") (eq .Cluster.ConfigItems.eks_ip_family "ipv6")}}
49+
pod.env-inject.variable.AWS_EC2_METADATA_SERVICE_ENDPOINT: "http://[fd00:ec2::254]"
50+
pod.env-inject.variable.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE: "IPv6"
51+
{{- end }}
4852
{{- if eq .Cluster.Environment "e2e" }}
4953
pod.env-inject.variable._PLATFORM_E2E: "injected"
5054
{{- end }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
priorityClassName: system-cluster-critical
3434
containers:
3535
- name: admission-controller
36-
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/admission-controller:master-250
36+
image: 926694233939.dkr.ecr.eu-central-1.amazonaws.com/production_namespace/teapot/admission-controller:master-251
3737
lifecycle:
3838
preStop:
3939
exec:

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,16 @@ webhooks:
575575
object.kind == "ConfigMap" &&
576576
object.metadata.name == "skipper-default-filters"
577577
)
578+
- name: 'allow-routesrv-routes-access'
579+
expression: |
580+
!(
581+
"okta:common/engineer" in request.userInfo.groups &&
582+
request.name == "skipper-ingress-routesrv" &&
583+
request.resource.resource == "services" &&
584+
request.subResource == "proxy" &&
585+
request.operation == "CONNECT"
586+
)
587+
578588
- name: collaborator-deny-admitter.teapot.zalan.do
579589
clientConfig:
580590
{{- if eq .Cluster.Provider "zalando-eks"}}

cluster/manifests/03-kube-aws-iam-controller/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
hostNetwork: true
2828
containers:
2929
- name: kube-aws-iam-controller
30-
image: container-registry.zalando.net/teapot/kube-aws-iam-controller:v0.3.0-68-g08c195b
30+
image: container-registry.zalando.net/teapot/kube-aws-iam-controller:v0.3.0-74-g62d552b
3131
env:
3232
- name: AWS_DEFAULT_REGION
3333
value: "{{.Cluster.Region}}"

cluster/manifests/04-ebs-csi/controller.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ spec:
9191
allowPrivilegeEscalation: false
9292
readOnlyRootFilesystem: true
9393
- name: csi-provisioner
94-
image: container-registry.zalando.net/teapot/external-provisioner:v5.1.0-eks-1-31-10-master-27
94+
image: container-registry.zalando.net/teapot/external-provisioner:v5.1.0-eks-1-31-10-master-28
9595
args:
9696
- --csi-address=$(ADDRESS)
9797
- --v=2
@@ -116,7 +116,7 @@ spec:
116116
allowPrivilegeEscalation: false
117117
readOnlyRootFilesystem: true
118118
- name: csi-attacher
119-
image: container-registry.zalando.net/teapot/external-attacher:v4.7.0-eks-1-31-10-master-27
119+
image: container-registry.zalando.net/teapot/external-attacher:v4.7.0-eks-1-31-10-master-28
120120
args:
121121
- --csi-address=$(ADDRESS)
122122
- --v=2

cluster/manifests/04-ebs-csi/node.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
privileged: true
7878
readOnlyRootFilesystem: true
7979
- name: node-driver-registrar
80-
image: container-registry.zalando.net/teapot/node-driver-registrar:v2.12.0-eks-1-31-10-master-27
80+
image: container-registry.zalando.net/teapot/node-driver-registrar:v2.12.0-eks-1-31-10-master-28
8181
args:
8282
- --csi-address=$(ADDRESS)
8383
- --kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)

cluster/manifests/deployment-service/controller-statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ spec:
2929
terminationGracePeriodSeconds: 300
3030
containers:
3131
- name: "deployment-service-controller"
32-
image: "container-registry.zalando.net/teapot/deployment-controller:master-238"
32+
image: "container-registry.zalando.net/teapot/deployment-controller:master-239"
3333
args:
3434
- "--config-namespace=kube-system"
3535
- "--decrypt-kms-alias-arn=arn:aws:kms:{{ .Cluster.Region }}:{{ .Cluster.InfrastructureAccount | getAWSAccountID }}:alias/deployment-secret"

0 commit comments

Comments
 (0)