Skip to content

Commit 3c61314

Browse files
authored
Merge pull request #8967 from zalando-incubator/dev-to-eks
dev to eks
2 parents 34718ac + 41632d0 commit 3c61314

16 files changed

+55
-1164
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ spec:
7575
periodSeconds: 10
7676
timeoutSeconds: 5
7777
{{- end }}
78-
lifecyle:
78+
lifecycle:
7979
preStop:
8080
sleep:
8181
seconds: 25

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-58-gff54efd
30+
image: container-registry.zalando.net/teapot/kube-aws-iam-controller:v0.3.0-60-g29433b1
3131
env:
3232
- name: AWS_DEFAULT_REGION
3333
value: "{{.Cluster.Region}}"

cluster/manifests/deletions.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,16 @@ post_apply:
151151
namespace: kubenurse
152152
kind: Service
153153
{{- end }}
154+
# Remove karpenter webhook related resources which are not used since v1.1.1
155+
- name: karpenter-lease
156+
kind: Role
157+
namespace: kube-node-lease
158+
- name: karpenter-lease
159+
kind: RoleBinding
160+
namespace: kube-node-lease
161+
- name: karpenter-cert
162+
kind: Secret
163+
namespace: kube-system
154164
{{ if eq .Cluster.ConfigItems.karpenter_pools_enabled "false" }}
155165
- name: provisioners.karpenter.sh
156166
kind: CustomResourceDefinition
@@ -410,3 +420,6 @@ post_apply:
410420
kind: ServiceAccount
411421
namespace: kube-system
412422
{{- end}}
423+
- name: karpenter-v1-migrator
424+
namespace: "kube-system"
425+
kind: CronJob

cluster/manifests/kube-metrics-adapter/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
serviceAccountName: custom-metrics-apiserver
2828
containers:
2929
- name: kube-metrics-adapter
30-
image: container-registry.zalando.net/teapot/kube-metrics-adapter:kube-metrics-adapter-0.2.3-60-g6149308
30+
image: container-registry.zalando.net/teapot/kube-metrics-adapter:kube-metrics-adapter-0.2.3-62-gb44fcba
3131
env:
3232
- name: AWS_REGION
3333
value: {{ .Cluster.Region }}

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.1.0-master-61
60+
image: container-registry.zalando.net/teapot/prometheus:v3.2.0-master-62
6161
args:
6262
- "--config.file=/prometheus/prometheus.yaml"
6363
- "--storage.tsdb.path=/prometheus/"

cluster/manifests/skipper/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{/* image-updater-bot detects *image variables so use print to disable it for main image */}}
22

3-
{{ $main_image := print "container-registry.zalando.net/teapot/skipper-internal:" "v0.21.257-1079" }}
3+
{{ $main_image := print "container-registry.zalando.net/teapot/skipper-internal:" "v0.21.268-1090" }}
44
{{ $canary_image := "container-registry.zalando.net/teapot/skipper-internal:v0.21.268-1090" }}
55

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

cluster/manifests/z-karpenter/02-role.yaml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@ rules:
1515
- apiGroups: ["coordination.k8s.io"]
1616
resources: ["leases"]
1717
verbs: ["get", "watch"]
18-
- apiGroups: [""]
19-
resources: ["configmaps", "secrets"]
20-
verbs: ["get", "list", "watch"]
2118
# Write
22-
- apiGroups: [""]
23-
resources: ["secrets"]
24-
verbs: ["update"]
25-
resourceNames:
26-
- "karpenter-cert"
2719
- apiGroups: ["coordination.k8s.io"]
2820
resources: ["leases"]
2921
verbs: ["patch", "update"]
@@ -50,23 +42,4 @@ rules:
5042
resources: ["services"]
5143
resourceNames: ["kube-dns"]
5244
verbs: ["get"]
53-
---
54-
# Source: karpenter/templates/role.yaml
55-
apiVersion: rbac.authorization.k8s.io/v1
56-
kind: Role
57-
metadata:
58-
name: karpenter-lease
59-
namespace: kube-node-lease
60-
labels:
61-
application: kubernetes
62-
component: karpenter
63-
rules:
64-
# Read
65-
- apiGroups: ["coordination.k8s.io"]
66-
resources: ["leases"]
67-
verbs: ["get", "list", "watch"]
68-
# Write
69-
- apiGroups: ["coordination.k8s.io"]
70-
resources: ["leases"]
71-
verbs: ["delete"]
7245
{{end}}

cluster/manifests/z-karpenter/03-rolebinding.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,4 @@ subjects:
3535
- kind: ServiceAccount
3636
name: karpenter
3737
namespace: kube-system
38-
---
39-
# Source: karpenter/templates/rolebinding.yaml
40-
apiVersion: rbac.authorization.k8s.io/v1
41-
kind: RoleBinding
42-
metadata:
43-
name: karpenter-lease
44-
namespace: kube-node-lease
45-
labels:
46-
application: kubernetes
47-
component: karpenter
48-
roleRef:
49-
apiGroup: rbac.authorization.k8s.io
50-
kind: Role
51-
name: karpenter-lease
52-
subjects:
53-
- kind: ServiceAccount
54-
name: karpenter
55-
namespace: kube-system
5638
{{end}}

cluster/manifests/z-karpenter/05-clusterrole-core.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ rules:
2222
- apiGroups: ["apps"]
2323
resources: ["daemonsets", "deployments", "replicasets", "statefulsets"]
2424
verbs: ["list", "watch"]
25-
- apiGroups: ["apiextensions.k8s.io"]
26-
resources: ["customresourcedefinitions"]
27-
verbs: ["get", "watch", "list"]
2825
- apiGroups: ["policy"]
2926
resources: ["poddisruptionbudgets"]
3027
verbs: ["get", "list", "watch"]
28+
- apiGroups: [""]
29+
resources: ["events"]
30+
verbs: ["get", list, "watch"]
3131
# Write
3232
- apiGroups: ["karpenter.sh"]
3333
resources: ["nodeclaims", "nodeclaims/status"]
@@ -47,14 +47,6 @@ rules:
4747
- apiGroups: [""]
4848
resources: ["pods"]
4949
verbs: ["delete"]
50-
- apiGroups: ["apiextensions.k8s.io"]
51-
resources: ["customresourcedefinitions/status"]
52-
resourceNames: ["ec2nodeclasses.karpenter.k8s.aws", "nodepools.karpenter.sh", "nodeclaims.karpenter.sh"]
53-
verbs: ["patch"]
54-
- apiGroups: ["apiextensions.k8s.io"]
55-
resources: ["customresourcedefinitions"]
56-
resourceNames: ["ec2nodeclasses.karpenter.k8s.aws", "nodepools.karpenter.sh", "nodeclaims.karpenter.sh"]
57-
verbs: ["update"]
5850
---
5951
# Source: karpenter/templates/clusterrole-core.yaml
6052
apiVersion: rbac.authorization.k8s.io/v1

cluster/manifests/z-karpenter/07-karpenter.k8s.aws_ec2nodeclasses.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ spec:
116116
additionalProperties:
117117
type: string
118118
description: |-
119-
Tags is a map of key/value tags used to select subnets
119+
Tags is a map of key/value tags used to select amis.
120120
Specifying '*' for a value selects all values for a given tag key.
121121
maxProperties: 20
122122
type: object
@@ -491,7 +491,7 @@ spec:
491491
additionalProperties:
492492
type: string
493493
description: |-
494-
Tags is a map of key/value tags used to select subnets
494+
Tags is a map of key/value tags used to select security groups.
495495
Specifying '*' for a value selects all values for a given tag key.
496496
maxProperties: 20
497497
type: object
@@ -598,6 +598,9 @@ spec:
598598
items:
599599
description: AMI contains resolved AMI selector values utilized for node launch
600600
properties:
601+
deprecated:
602+
description: Deprecation status of the AMI
603+
type: boolean
601604
id:
602605
description: ID of the AMI
603606
type: string
@@ -701,7 +704,7 @@ spec:
701704
type: string
702705
securityGroups:
703706
description: |-
704-
SecurityGroups contains the current Security Groups values that are available to the
707+
SecurityGroups contains the current security group values that are available to the
705708
cluster under the SecurityGroups selectors.
706709
items:
707710
description: SecurityGroup contains resolved SecurityGroup selector values utilized for node launch
@@ -718,7 +721,7 @@ spec:
718721
type: array
719722
subnets:
720723
description: |-
721-
Subnets contains the current Subnet values that are available to the
724+
Subnets contains the current subnet values that are available to the
722725
cluster under the subnet selectors.
723726
items:
724727
description: Subnet contains resolved Subnet selector values utilized for node launch

0 commit comments

Comments
 (0)