Commit Graph

12714 Commits

Author SHA1 Message Date
Peter Rifel a15957da2f
IRSA - continue adding route53 permisions to masters
These are needed by protokube to create the kops-controller DNS record to allow nodes to bootstrap.

See these logs: https://storage.googleapis.com/kubernetes-jenkins/logs/e2e-kops-grid-scenario-public-jwks/1345956556562239488/artifacts/ip-172-20-48-1.sa-east-1.compute.internal/protokube.log

```
I0104 05:03:51.264472    6482 dnscache.go:74] querying all DNS zones (no cached results)
I0104 05:03:51.264570    6482 route53.go:53] AWS request: route53 ListHostedZones
W0104 05:03:51.389485    6482 dnscontroller.go:124] Unexpected error in DNS controller, will retry: error querying for zones: error querying for DNS zones: AccessDenied: User: arn:aws:sts::768319786644:assumed-role/masters.e2e-kops-scenario-public-jwks.test-cncf-aws.k8s.io/i-05b1db10d1a5b8637 is not authorized to perform: route53:ListHostedZones
```

and the nodeup logs on nodes that couldn't join the cluster:

```
Jan 04 04:55:53.500187 ip-172-20-38-84 nodeup[2070]: W0104 04:55:53.500117    2070 executor.go:131] error running task "BootstrapClient/BootstrapClient" (9m52s remaining to succeed): Post "https://kops-controller.internal.e2e-kops-scenario-public-jwks.test-cncf-aws.k8s.io:3988/bootstrap": dial tcp: lookup kops-controller.internal.e2e-kops-scenario-public-jwks.test-cncf-aws.k8s.io on 127.0.0.53:53: no such host
```
2021-01-04 21:03:53 -06:00
Kubernetes Prow Robot 7238f2689c
Merge pull request #10512 from hakman/kube-router-v1.1.1
Update kube-router to v1.1.1
2021-01-04 16:01:57 -08:00
Kubernetes Prow Robot 22c5975591
Merge pull request #10519 from seh/restrict-api-server-security-groups-to-masters
Only include API server additional security groups in InstanceGroups for masters
2021-01-04 14:15:58 -08:00
Kubernetes Prow Robot 6d5549e730
Merge pull request #10453 from msidwell/gp3-etcd
Add gp3 Volume Type to etcd
2021-01-04 11:29:57 -08:00
Kubernetes Prow Robot 137c8368d3
Merge pull request #10524 from justinsb/kubetest2_gce
kubetest2: add initial support for GCE
2021-01-04 10:51:56 -08:00
Kubernetes Prow Robot b4ee59cae6
Merge pull request #10525 from justinsb/aws_env_vars
kubetest2: Pass through some AWS env vars
2021-01-04 09:51:57 -08:00
msidwell ebf05facc2 add gp3 volume default params
add io2 case and correct IOPS minimum value check

add gp3 case

add io2 and gp3 parameter ratio validation logic

add volumeThroughput parameter for disks that support it

add volumeThroughput components throughout ebs structs

add volumeThroughput to versioned api

updated api machinery and crds

apimachinery update
2021-01-04 17:08:11 +00:00
Justin Santa Barbara 28261a5dcc kubetest2: Pass through some AWS env vars
To run directly, I need to specify AWS_PROFILE.
2021-01-04 11:34:31 -05:00
Justin Santa Barbara 28184756c3 kubetest2: add initial support for GCE
Filling in some of the GCE-equivalents to the AWS code.
2021-01-04 11:32:12 -05:00
Steven E. Harris 76feb2e637 Correct integration test to reflect SG restriction 2021-01-04 08:38:25 -05:00
Steven E. Harris 2a89d25ed0 Test that launch templates include additional SGs 2021-01-04 08:38:25 -05:00
Steven E. Harris 252d4177f0 Only include API server SGs in IGs for masters
When using an AWS NLB in front of the Kubernetes API servers, we can't
attach the EC2 security groups nominated in the Cluster
"spec.api.loadBalancer.additionalSecurityGroups" field directly to the
load balancer, as NLBs don't have associated security groups. Instead,
we intend to attach those nominated security groups to the machines
that will receive network traffic forwarded from the NLB's
listeners. For the API servers, since that program runs only on the
master or control plane machines, we need only attach those security
groups to the machines that will host the "kube-apiserver" program, by
way of the ASG launch templates that come from kOps InstanceGroups of
role "master."

We were mistakenly including these security groups in launch templates
derived from InstanceGroups of all of our three current roles:
"bastion," "master," and "node." Instead, skip InstanceGroups of the
"bastion" and "node" roles and only target those of role "master."
2021-01-04 08:38:25 -05:00
Steven E. Harris ad4ac4f474 Test that AWS launch templates include wrong SG 2021-01-04 08:38:25 -05:00
Kubernetes Prow Robot e1389aa31b
Merge pull request #10522 from rifelpet/kubetest2-test
e2e - dump cluster manifests into artifacts and add --kubernetes-version
2021-01-03 23:05:56 -08:00
Peter Rifel cf74053426
Dump cluster and IG manifests into artifacts 2021-01-03 21:49:32 -06:00
Peter Rifel d8abaa77fd
cleanup some input validation error messages 2021-01-03 19:50:53 -06:00
Peter Rifel 0ac86d13e3
Support a --kubernetes-version flag that is passed to `kops create cluster` 2021-01-03 19:50:53 -06:00
Kubernetes Prow Robot c5658e1978
Merge pull request #10520 from bmelbourne/remove-year-generated-go-files
Remove copyright YEAR from generated Go files
2021-01-03 17:13:55 -08:00
Barry Melbourne 1c96e826d9 Remove copyright YEAR from generated Go files 2021-01-03 12:48:50 +00:00
Kubernetes Prow Robot 66fe512b69
Merge pull request #10504 from rifelpet/kubetest2-test
Run k/k's e2e suite via new kubetest2 make target
2020-12-31 09:17:51 -08:00
Peter Rifel 83eeccc6c0
Use the same package version as that reported by apiserver
kubetest2 doesn't download a kubectl client from the same version being tested, so the mismatch is causing test failures.
Until we can download kubectl we'll use the same minor version as /usr/local/bin/kubectl baked into the prow image
2020-12-31 10:43:50 -06:00
Kubernetes Prow Robot c7afbf2192
Merge pull request #10514 from MoShitrit/alpha-to-stable-2020-12-30
Update stable channel with recent k8s releases
2020-12-31 06:25:51 -08:00
MoShitrit 89f988a035 Update stable channel with recent k8s releases 2020-12-30 17:52:06 -05:00
Ciprian Hacman 7c2dc634ec Update kube-router to v1.1.1 2020-12-30 09:08:35 +02:00
Kubernetes Prow Robot 22a9a13abf
Merge pull request #10488 from rifelpet/iam-role-tag
AWS IAM Role Tagging
2020-12-29 22:33:48 -08:00
Kubernetes Prow Robot 99804b1a6a
Merge pull request #10509 from silashansen/patch-1
Add required toleration to gpu documentation
2020-12-29 21:39:49 -08:00
Kubernetes Prow Robot 0e34ce13d7
Merge pull request #10508 from wongma7/dhcpnotfound
Treat InvalidDhcpOptionsId.NotFound as already-deleted
2020-12-29 20:25:48 -08:00
Silas Hansen e8ad061172
Add required toleration
As the example sets a taint on the gpu-node, a toleration is required for the *gpu-feature-discovery* (gfd) daemonset to be able to run.
2020-12-29 21:04:19 +01:00
Kubernetes Prow Robot dded75ee3f
Merge pull request #10507 from hakman/containerd-registry-mirrors
Add containerd option for registry mirrors
2020-12-29 10:18:28 -08:00
Matthew Wong 7e9392e72c Treat InvalidDhcpOptionsId.NotFound as already-deleted 2020-12-28 17:27:34 -08:00
Ciprian Hacman 01019f09ed Update integration tests 2020-12-28 21:11:34 +02:00
Peter Rifel b72cb37b30
allow ARTIFACTS env var to be overridden in makefile 2020-12-28 12:09:43 -06:00
Ciprian Hacman 66039f150e Add containerd option for registry mirrors 2020-12-28 19:32:06 +02:00
Peter Rifel 95b7210e27
Dump cluster logs to artifacts directory 2020-12-28 11:29:39 -06:00
Peter Rifel 12d399e650
run tests in parallel, matching the existing kubetest parallelism 2020-12-27 14:41:13 -06:00
Kubernetes Prow Robot 784c4f02bc
Merge pull request #10501 from hakman/remove-kubenet-containerd
Remove support for Kubenet with containerd
2020-12-27 11:54:28 -08:00
Peter Rifel a945d54bf5
fix shell expansion in skip-regex 2020-12-27 13:31:17 -06:00
Peter Rifel 38215210c6
Run k/k's e2e suite via new kubetest2 make target 2020-12-27 13:25:27 -06:00
Ciprian Hacman c02e5a20ea Remove support for Kubenet with containerd 2020-12-27 18:21:16 +02:00
Kubernetes Prow Robot 72a4797341
Merge pull request #10502 from hakman/amazonvpc-cni-containerd
Use containerd.sock for AmazonVPC CNI with containerd
2020-12-27 08:16:27 -08:00
Ciprian Hacman 41d74903e3 Use containerd.sock for AmazonVPC CNI with containerd 2020-12-27 17:35:52 +02:00
Kubernetes Prow Robot e39f8bcf7d
Merge pull request #10497 from hakman/relnotes_1.19.0-beta.3
Release notes for 1.19.0-beta.3
2020-12-24 09:58:26 -08:00
Peter Rifel 5406744c55
Update integration test output 2020-12-23 15:13:45 -06:00
Peter Rifel 4ee5d7a543
Add tagging support for AWS IAM Roles 2020-12-23 15:11:07 -06:00
Kubernetes Prow Robot aff0ae2d39
Merge pull request #10455 from MoShitrit/docs/contributing
Docs: Rename "Development" section to "Contributing" and add instructions to update the base AMI version of Ubuntu
2020-12-23 09:44:26 -08:00
Kubernetes Prow Robot facae47672
Merge pull request #10496 from hakman/fix-arch-filter
Fix cluster setup when KOPS_ARCH is set
2020-12-23 09:04:27 -08:00
Ciprian Hacman 49f23412a7 Release notes for 1.19.0-beta.3 2020-12-23 18:14:01 +02:00
Ciprian Hacman c02434269f Fix cluster setup when KOPS_ARCH is set 2020-12-23 17:08:20 +02:00
MoShitrit 2e671cb91d Address comments: rename contributing.md to index.md and move everything under Contributing section 2020-12-23 09:00:53 -05:00
Kubernetes Prow Robot b5afd1d6c4
Merge pull request #10473 from hakman/custom-container-runtime-package
Add config options for container runtime package URL and Hash
2020-12-23 04:48:28 -08:00