Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Kubernetes v1.16 #2774

Merged
merged 30 commits into from
Feb 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5d0f29f
Update Emergency Access Service to show reason after approval
mikkeloscar Feb 13, 2020
ffd8d66
enhance authClient opentracing
szuecs Feb 11, 2020
0598b11
fix kubernetes dataclients refresh
szuecs Feb 14, 2020
38dedc6
chore: drop obsolete feature gate for PodMaxPids
linki Jan 14, 2020
d3bd9c4
Update to Kubernetes v1.16
mikkeloscar Dec 10, 2019
235c02d
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 17, 2020
317b700
chore: drop obsolete feature gate for PodMaxPids
linki Jan 14, 2020
addd953
Update to Kubernetes v1.16
mikkeloscar Dec 10, 2019
4643ea3
Merge pull request #2987 from zalando-incubator/dev-to-kube-1.16
mikkeloscar Feb 17, 2020
e3e461d
Wait to serve current requests before terminating api-server
Feb 13, 2020
145f725
Merge pull request #2972 from zalando-incubator/master-graceful-shutdown
mikkeloscar Feb 17, 2020
e1ec36d
Enable HPAScaleToZero by default
mikkeloscar Feb 18, 2020
c6e7c97
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 18, 2020
c5c7b58
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 18, 2020
bee8f13
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 20, 2020
7202942
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 20, 2020
55d8d10
Merge pull request #2998 from zalando-incubator/dev-to-kube-1.16
mikkeloscar Feb 20, 2020
84c8951
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 20, 2020
3013b00
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 20, 2020
a206788
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 20, 2020
43cd30b
Merge pull request #3009 from zalando-incubator/dev-to-kube-1.16
arjunrn Feb 21, 2020
64808d9
Update 1.16 AMI
aermakov-zalando Feb 21, 2020
922474e
Merge pull request #3017 from zalando-incubator/update-1-16-ami
mikkeloscar Feb 24, 2020
493efa3
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 24, 2020
2215045
Drop allow non-resource URL rule from webhook
mikkeloscar Feb 24, 2020
1563814
Merge dev to dev-to-kube-1.16
zalando-teapot-robot Feb 24, 2020
a7d661c
Merge pull request #3018 from zalando-incubator/dev-to-kube-1.16
mikkeloscar Feb 24, 2020
ff6f051
Merge pull request #3020 from zalando-incubator/webhook-drop-non-reso…
mikkeloscar Feb 24, 2020
cd07e5b
CA: disable --scale-down-delay-after-add
aermakov-zalando Feb 24, 2020
9a4b393
Merge pull request #3021 from zalando-incubator/disable-scale-down-delay
aermakov-zalando Feb 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions cluster/config-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@ teapot_admission_controller_validate_pod_template_resources: "true"
{{end}}

{{if eq .Environment "e2e"}}
teapot_admission_controller_ignore_namespaces: "^kube-system|((downward-api|kubectl|projected|statefulset|pod-network)-.*)$"
teapot_admission_controller_ignore_namespaces: "^kube-system|((downward-api|kubectl|projected|statefulset|pod-network|scope-selectors|resourcequota)-.*)$"
teapot_admission_controller_crd_ensure_no_resources_on_delete: "false"
{{else}}
teapot_admission_controller_ignore_namespaces: "^kube-system$"
teapot_admission_controller_crd_ensure_no_resources_on_delete: "true"
{{end}}

# etcd cluster
Expand All @@ -195,6 +197,7 @@ cluster_dns: "coredns"
coredns_log_svc_names: "true"

kuberuntu_image_v1_15: {{ amiID "zalando-ubuntu-kubernetes-production-v1.15.9-master-89" "861068367966" }}
kuberuntu_image_v1_16: {{ amiID "zalando-ubuntu-kubernetes-production-v1.16.7-master-91" "861068367966" }}

# Feature toggle to allow gradual decommissioning of ingress-template-controller
enable_ingress_template_controller: "false"
Expand All @@ -215,14 +218,6 @@ audittrail_url: ""
{{end}}
audittrail_root_account_role: ""

# Feature toggle for CustomResourceWebhookConversion (alpha in v1.13)
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definition-versioning/#webhook-conversion
custom_resource_webhook_conversion: "false"

# Feature toggle for CustomResourcePublishOpenAPI (alpha in v1.14)
# https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#publish-validation-schema-in-openapi-v2
custom_resource_publish_openapi: "false"

# CIDR configuration for nodes and pods
# Changing this will change the number of nodes and pods we can schedule in the
# cluster: https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr
Expand Down Expand Up @@ -286,12 +281,15 @@ enable_cdp_sa: "false"
vm_dirty_background_bytes: ""
vm_dirty_bytes: ""

# Enable FeatureGate EndpointSlice
enable_endpointslice: "false"

# Enable FeatureGate HPAScaleToZero
enable_hpa_scale_to_zero: "true"

# temporary flag for kubernetes.io/node-pool node label
legacy_node_pool_label_enabled: "false"

# Disable legacy apiVersions which will be gone in Kubernetes v1.16
disable_legacy_api_versions: "true"

# setup supporting components to enable encryption
# this flag must only be switched from true to false when enable_encryption is false and all secrets were decrypted
support_encryption: "false"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# A specification to declare needed OAuth credentials (tokens, clients) for the
# Zalando Platform IAM system
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: platformcredentialssets.zalando.org
spec:
scope: Namespaced
group: zalando.org
version: v1
names:
kind: PlatformCredentialsSet
plural: platformcredentialssets
Expand All @@ -16,66 +15,72 @@ spec:
- pcs
categories:
- all
additionalPrinterColumns:
- JSONPath: .spec.application
description: ID of application registered in application registry
name: Application
type: string
- JSONPath: .status.processingStatus
description: Processing status reported by Credentials Provider
name: Status
type: string
- JSONPath: .metadata.creationTimestamp
description: Age of the PlatformCredentialsSet
name: Age
type: date
validation:
openAPIV3Schema:
required:
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
- jsonPath: .spec.application
description: ID of application registered in application registry
name: Application
type: string
- jsonPath: .status.processingStatus
description: Processing status reported by Credentials Provider
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
description: Age of the PlatformCredentialsSet
name: Age
type: date
schema:
openAPIV3Schema:
type: object
required:
- spec
properties:
spec:
required:
- application
properties:
application:
type: string
pattern: "^[a-z][a-z0-9-]*[a-z0-9]$"
clients:
type: object
additionalProperties:
properties:
spec:
type: object
required:
- application
properties:
application:
type: string
pattern: "^[a-z][a-z0-9-]*[a-z0-9]$"
clients:
type: object
properties:
realm:
type: string
enum:
- customers
- users
- services
grant:
type: string
enum:
- authorization-code
- implicit
- resource-owner-password-credentials
- client-credentials
redirectUri:
type: string
tokens:
type: object
additionalProperties:
type: object
nullable: true
properties:
privileges:
type: array
nullable: true
items:
additionalProperties:
type: object
properties:
realm:
type: string
enum:
- customers
- users
- services
grant:
type: string
token_version:
type: string
enum:
- v1
- v2
subresources:
status: {}
enum:
- authorization-code
- implicit
- resource-owner-password-credentials
- client-credentials
redirectUri:
type: string
tokens:
type: object
additionalProperties:
type: object
nullable: true
properties:
privileges:
type: array
nullable: true
items:
type: string
token_version:
type: string
enum:
- v1
- v2
subresources:
status: {}
94 changes: 50 additions & 44 deletions cluster/manifests/02-kube-aws-iam-controller/crd.yaml
Original file line number Diff line number Diff line change
@@ -1,56 +1,62 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: awsiamroles.zalando.org
spec:
group: zalando.org
version: v1
scope: Namespaced
names:
kind: AWSIAMRole
singular: awsiamrole
plural: awsiamroles
categories:
- all
additionalPrinterColumns:
- name: RoleARN
type: string
description: Full RoleARN
JSONPath: .status.roleARN
- name: Expiration
type: string
description: Expiration time of the current credentials provisioned for the role
JSONPath: .status.expiration
subresources:
# status enables the status subresource.
status: {}
# validation depends on Kubernetes >= v1.11.0
validation:
openAPIV3Schema:
properties:
spec:
properties:
roleReference:
description: |
Reference to an AWS IAM role which can either be a role name
or a full IAM role ARN.
type: string
minLength: 3
roleSessionDuration:
description: |
Specify the role session duration in seconds. Defaults to 3600
seconds (1 hour). This value must be less than or equal to the
`MaxSessionDuration` value of the IAM role.
type: integer
minimum: 900 # 15 minutes
maximum: 43200 # 12 hours
status:
properties:
observedGeneration:
type: integer
roleARN:
type: string
expiration:
type: string
required:
- spec
versions:
- name: v1
served: true
storage: true
additionalPrinterColumns:
- name: RoleARN
type: string
description: Full RoleARN
jsonPath: .status.roleARN
- name: Expiration
type: string
description: Expiration time of the current credentials provisioned for the role
jsonPath: .status.expiration
subresources:
# status enables the status subresource.
status: {}
# validation depends on Kubernetes >= v1.11.0
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
roleReference:
description: |
Reference to an AWS IAM role which can either be a role name
or a full IAM role ARN.
type: string
minLength: 3
roleSessionDuration:
description: |
Specify the role session duration in seconds. Defaults to 3600
seconds (1 hour). This value must be less than or equal to the
`MaxSessionDuration` value of the IAM role.
type: integer
minimum: 900 # 15 minutes
maximum: 43200 # 12 hours
status:
type: object
properties:
observedGeneration:
type: integer
roleARN:
type: string
expiration:
type: string
required:
- spec
2 changes: 0 additions & 2 deletions cluster/manifests/02-kube-aws-iam-controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ spec:
cpu: "{{.ConfigItems.kube_aws_iam_controller_cpu}}"
memory: "{{.ConfigItems.kube_aws_iam_controller_mem}}"
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/role
value: master
effect: NoSchedule
Expand Down
4 changes: 1 addition & 3 deletions cluster/manifests/admission-control-proxy/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,12 @@ spec:
dnsPolicy: Default
hostNetwork: true
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/role
value: master
effect: NoSchedule
containers:
- name: cluster-autoscaler
image: registry.opensource.zalan.do/teapot/admission-controller:master-57
image: registry.opensource.zalan.do/teapot/admission-controller:master-63
command:
- /registry-proxy
- --address=127.0.0.1:8285
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ spec:
priorityClassName: system-cluster-critical
serviceAccountName: cluster-lifecycle-controller
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/role
value: master
effect: NoSchedule
Expand Down
2 changes: 0 additions & 2 deletions cluster/manifests/etcd-backup/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ spec:
readOnly: true
{{ end }}
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/role
value: master
effect: NoSchedule
Expand Down
7 changes: 5 additions & 2 deletions cluster/manifests/ingress-template-controller/crd.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{{ if eq .ConfigItems.enable_ingress_template_controller "true"}}
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: ingresstemplates.zalando.org
spec:
group: zalando.org
version: v1
versions:
- name: v1
served: true
storage: true
scope: Namespaced
names:
kind: IngressTemplate
Expand Down
3 changes: 1 addition & 2 deletions cluster/manifests/kube-cluster-autoscaler/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ spec:
serviceAccountName: cluster-autoscaler
dnsPolicy: Default
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/role
value: master
effect: NoSchedule
Expand All @@ -53,6 +51,7 @@ spec:
- --max-node-provision-time=7m
- --max-nodes-total={{ nodeCIDRMaxNodes (parseInt64 .Cluster.ConfigItems.node_cidr_mask_size) (parseInt64 .Cluster.ConfigItems.reserved_nodes) }}
- --scale-down-enabled={{ .ConfigItems.autoscaling_scale_down_enabled }}
- --scale-down-delay-after-add=-1s
resources:
requests:
cpu: {{.Cluster.ConfigItems.cluster_autoscaler_cpu}}
Expand Down
Loading