Commit Graph

16383 Commits

Author SHA1 Message Date
Kubernetes Prow Robot 13243b5add
Merge pull request #13029 from rifelpet/remove-tf-json
Remove TerraformJSON feature flag
2021-12-25 06:33:15 -08:00
Peter Rifel 1772d0e39d
Remove remaining references to TerraformJSON feature flag 2021-12-25 07:49:19 -06:00
Kubernetes Prow Robot 09562c35d5
Merge pull request #13019 from olemarkus/instance-requests
Support specifying instance requirements per IG
2021-12-24 20:59:14 -08:00
Ole Markus With b09241122f Support specifying instance requirements per IG
Update docs/instance_groups.md

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2021-12-24 21:19:58 +01:00
Peter Rifel e0555bb431
Remove unused json field tags from terraform structs 2021-12-24 14:17:23 -06:00
Peter Rifel e31dd982ac
Remove TerraformJSON feature flag and functionality 2021-12-24 14:17:23 -06:00
Kubernetes Prow Robot e95e359e3a
Merge pull request #13026 from johngmyers/ipv6-only
Allow IPv6-only subnets
2021-12-24 02:24:14 -08:00
Kubernetes Prow Robot 6ba44ea236
Merge pull request #12975 from olemarkus/karpenter-only
Add a CLI flag for creating one karpenter-managed IG for worker nodes instead of ASG-managed ones
2021-12-24 01:40:15 -08:00
Kubernetes Prow Robot ce3f464fbf
Merge pull request #13027 from olemarkus/addons-ha
Improve HA for various addons
2021-12-24 00:42:16 -08:00
Ole Markus With 8e59f5bc23 Create create_cluster test for karpenter 2021-12-24 09:20:06 +01:00
Ole Markus With 8f276cf944 Make it possible to create clusters with only karpenter-managed worker nodes
Apply suggestions from code review

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2021-12-24 09:12:59 +01:00
Ole Markus With 0ead405b30 Set karpenter dns policy to default, lower requests and remove cpu limits 2021-12-24 09:12:58 +01:00
Ole Markus With 468280d3f2 Improve HA for various addons 2021-12-24 08:53:27 +01:00
John Gardiner Myers 46404a9b19 hack/update-expected.sh 2021-12-23 19:50:46 -08:00
John Gardiner Myers f9071dd0d5 Allow IPv6-only subnets 2021-12-23 19:50:46 -08:00
Kubernetes Prow Robot 6b2cd12d6e
Merge pull request #13022 from hakman/k8s-1.23.1
Update k8s dependencies to v1.23.1
2021-12-23 05:38:37 -08:00
Ciprian Hacman d3bdba29e1 Update k8s dependencies to v1.23.1 2021-12-23 14:56:18 +02:00
Kubernetes Prow Robot 76647b1cf1
Merge pull request #13021 from olemarkus/fix-dangling-enis
Fix dangling ENIs from AWS VPC CNI
2021-12-22 19:30:38 -08:00
Ole Markus With 66e6ed0850 Delete ENIs tagged with k8s tags 2021-12-22 21:45:01 +01:00
Ole Markus With f7e86b9521 Tag ENIs with k8s tags 2021-12-22 21:16:19 +01:00
Kubernetes Prow Robot 2f31054e19
Merge pull request #13007 from hakman/skip_non-masquerade-cidr
Use kubelet --non-masquerade-cidr only for Docker with kubenet
2021-12-21 18:49:36 -08:00
Kubernetes Prow Robot 0441f2fddb
Merge pull request #12966 from heybronson/drain-nlb
add instance connection draining for NLBs
2021-12-20 22:44:45 -08:00
Kubernetes Prow Robot fbb3431b02
Merge pull request #12992 from justinsb/use_fi_keyset
Use fi.Keyset instead of passing tasks around
2021-12-20 21:56:45 -08:00
Kubernetes Prow Robot 0d7de46512
Merge pull request #13018 from rifelpet/kubetest2-ig-override
kubetest2 - Use the same binary path and env when fetching IGs
2021-12-20 21:10:45 -08:00
justinsb 994ac19b42 Use fi.Keyset instead of passing tasks around
Using a task leads to layering complexity.  We could introduce a new
type, but fi.Keyset is the type we seem to want.

(We could move Keyset out of fi, but we don't need to yet)

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2021-12-20 23:24:32 -05:00
Peter Rifel 7474a727e8
kubetest2 - Use the same binary path and env when fetching instance groups
The GetInstanceGroup function was used in kubetest2-tester-kops which has the desired `kops` set in PATH and KOPS_STATE_STORE already set.
Now that we're using GetInstanceGroups in kubetest2-kops (the deployer) we need to override these to the values that the deployer determines.
2021-12-20 20:34:48 -06:00
Kubernetes Prow Robot c8cf827c17
Merge pull request #13010 from olemarkus/remove-legacy-storage-sa
Do not install ClusterRole and binding used by in-tree volume provider if CSI is used
2021-12-20 17:38:45 -08:00
Kubernetes Prow Robot 28dc7d2815
Merge pull request #12917 from olemarkus/cgroups
Create cgroups for kube and runtime if configured
2021-12-20 12:53:33 -08:00
Kubernetes Prow Robot 4a6bc37dbe
Merge pull request #13011 from olemarkus/validate-etcd-names
Prevent creation of unsupported etcd clusters
2021-12-20 10:55:33 -08:00
Bronson Mirafuentes dd0f7c0948 run make gomod 2021-12-20 10:28:29 -08:00
Bronson Mirafuentes fa956e3909 add instance connection draining for NLBs 2021-12-20 10:08:05 -08:00
Ole Markus With 397b22b31a Do not install ClusterRole and binding used by in-tree volume provider if CSI is used 2021-12-20 19:00:16 +01:00
Kubernetes Prow Robot cc26c87b89
Merge pull request #13012 from justinsb/nodeup_script_explicit_return
nodeup bash script: use explicit return code
2021-12-20 09:10:56 -08:00
Kubernetes Prow Robot 47c7f21048
Merge pull request #13013 from justinsb/staticcheck_cleanups_1
staticcheck cleanup: fixup nodeup/pkg/model
2021-12-20 08:24:56 -08:00
justinsb 8d7f4485db staticcheck cleanup: fixup nodeup/pkg/model
These pop up in VSCode and are pretty simple to fix:

```
nodeup/pkg/model/cloudconfig_test.go:86:17: possible nil pointer dereference (SA5011)
        nodeup/pkg/model/cloudconfig_test.go:83:5: this check suggests that the pointer can be nil
nodeup/pkg/model/cloudconfig_test.go:155:17: possible nil pointer dereference (SA5011)
        nodeup/pkg/model/cloudconfig_test.go:152:5: this check suggests that the pointer can be nil
nodeup/pkg/model/sysctls.go:172:12: error strings should not be capitalized (ST1005)
nodeup/pkg/model/sysctls.go:184:12: error strings should not be capitalized (ST1005)
nodeup/pkg/model/volumes.go:59:11: error strings should not be capitalized (ST1005)
```
2021-12-20 10:36:54 -05:00
justinsb e8ddfa4328 Update test data for bash return change 2021-12-20 10:12:07 -05:00
justinsb fdf412cdf5 nodeup bash script: use explicit return code
In bash, `return` returns the exit code of the last statement.  Being
explicit here is safer, and I believe in the first case (the cached
download) the value was actually incorrect.
2021-12-20 10:08:06 -05:00
Kubernetes Prow Robot f25e7600dd
Merge pull request #13009 from olemarkus/karpenter-template-fix
Karpenter template fix
2021-12-20 06:50:56 -08:00
Ole Markus With a82d06d3fb Prevent creation of unsupported etcd clusters 2021-12-20 15:23:50 +01:00
Ole Markus With 694036719d Remove superflous quote 2021-12-20 15:04:52 +01:00
Ole Markus With 00f8808ab1 Log the specific yaml segment that fails. Also remove redundant full manifest logging 2021-12-20 15:04:52 +01:00
Ole Markus With 166860b668 Create cgroups for kube and runtime if configured 2021-12-20 13:36:45 +01:00
Kubernetes Prow Robot 928d15b8b0
Merge pull request #12660 from olemarkus/validate-ig-strict
Validate IGs more strictly after defaults have applied
2021-12-20 02:51:25 -08:00
Kubernetes Prow Robot 219cadb2ab
Merge pull request #13002 from olemarkus/karpenter-rbn
Bump karpenter to 0.5.3 and RBN support
2021-12-20 02:09:25 -08:00
Kubernetes Prow Robot dd3296c881
Merge pull request #12961 from olemarkus/spread-not-affinity
Use spread constraints rather than affinity to spread pods
2021-12-20 01:21:25 -08:00
Ole Markus With e2ba020b7f Karpenter does not require min/max set 2021-12-20 10:03:19 +01:00
Ole Markus With aa493a3273 Validate IGs more strictly after defaults have applied
This commit will ensure IGs are validated in clientset prior to write similar to clusters. Also introduces strict flag similar to cluster, which only validate values where we have defaults after defaults have been applied.
2021-12-20 10:03:04 +01:00
Ole Markus With 1ee6f347c5 Use spread constraints rather than affinity to spread pods (golden outputs) 2021-12-20 09:37:45 +01:00
Ole Markus With 89f0c85e90 Use spread constraints rather than affinity to spread pods (templates) 2021-12-20 09:33:20 +01:00
Kubernetes Prow Robot 681b5006d6
Merge pull request #13008 from olemarkus/skip-sctp-check
Skip SCTP check for all versions of k8s 1.23/1.24
2021-12-20 00:31:25 -08:00