Commit Graph

254 Commits

Author SHA1 Message Date
John Gardiner Myers 304476cebf Refactor BootstrapScript 2020-06-18 22:17:39 -07:00
Ciprian Hacman de6f6e9677 ARM64 support - Generate multi-arch config for assets 2020-06-19 04:42:11 +03:00
Kubernetes Prow Robot 88b53ca046
Merge pull request #9390 from justinsb/cleanup_bootstrap_context
Refactor to clean up TemplateFunctions
2020-06-17 23:36:04 -07:00
Justin SB af09f50fef Refactor to clean up TemplateFunctions
We had some fields that were duplicated; this was confusing and seemed
likely to cause (subtle) bugs.
2020-06-17 23:39:16 -04:00
John Gardiner Myers a5f5acc09d Move the instancegroup role into NodeupConfig 2020-06-17 09:05:15 -07:00
John Gardiner Myers 0d74344a43 Remove the baremetal cloud provider 2020-06-14 10:38:29 -07:00
Justin SB 6334da47b6 Refactor BootstrapChannelBuilder to use a KopsModelContext
Cleaner, and preparation for ServiceAccount IAM support.
2020-06-11 21:29:16 -04:00
Peter Rifel bc074e857c
Use ec2.DescribeInstanceTypes in awsup.GetMachineTypeInfo
This requires passing a cloud object in additional places throughout the validation package and originating mostly from cmd/kops

This means that some kops commands now require valid cloud provider credentials, but I don't think this is an issue because the vast majority of use-cases already require the same cloud provider credentials in order to interact with the state store.
2020-06-09 10:13:01 -05:00
ZouYu 2fc52ec6be fix some go-lint warning
Signed-off-by: ZouYu <zouy.fnst@cn.fujitsu.com>
2020-06-09 08:52:50 +08:00
John Gardiner Myers e88e0cf7ec Remove code supporting dropped k8s versions 2020-06-04 12:11:51 -07:00
John Gardiner Myers 07f5e58cac Bump supported and recommended k8s versions for kops 1.19 2020-06-04 12:11:51 -07:00
Ciprian Hacman c0b62a74ca Remove all traces of utils.tar.gz 2020-06-03 09:55:45 +03:00
Ole Markus With 7342525872 Remove vsphere from kops files 2020-05-30 13:36:55 +02:00
Kubernetes Prow Robot 6830cf6d44
Merge pull request #9065 from johngmyers/remove-distro
Remove support for CoreOS and Jessie
2020-05-27 23:22:01 -07:00
Kubernetes Prow Robot bfd65ae589
Merge pull request #9157 from olemarkus/networking-cleanup
Networking cleanup
2020-05-24 07:03:10 -07:00
liranp 23c0cdab36
feat(spotinst): new hybrid mode 2020-05-23 21:39:04 +03:00
John Gardiner Myers 2d98e5609c Remove/fix more CoreOS references 2020-05-22 20:54:41 -07:00
Ole Markus With d1ff25bb4e Remove some rather long networking nil checks 2020-05-22 08:08:58 +02:00
Justin Santa Barbara 7e710e85d9 DNS: Apply should be a no-op when empty
Document the contract a bit more, change the signature by adding a
context arg and following through to make sure we honor the contract
everywhere.
2020-05-17 16:45:08 -04:00
Justin SB 75fd939a62
kube-apiserver: healthcheck via sidecar container
kube-apiserver doesn't expose the healthcheck via a dedicated
endpoint, instead relying on anonyomous-access being enabled.  That
has previously forced us to enable the unauthenticated endpoint on
127.0.0.1:8080.

Instead we now run a small sidecar container, which
proxies /healthz and /readyz requests (only) adding appropriate
authentication using a client certificate.

This will also enable better load balancer checks in future, as these
have previously been hampered by the custom CA certificate.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2020-05-07 08:06:52 -04:00
John Gardiner Myers 126c4c8d37 Allow cluster maintenance when channel is unavailable 2020-05-03 13:48:15 -07:00
Justin Santa Barbara 31bb16d4d1 Add context.Context to most signatures
The client-go signature for most methods adds a context.Context
object, and also makes Options mandatory.  Feed through a
context.Context through many of our methods (but use context.TODO to
stop it getting totally out of hand!)
2020-04-11 14:44:17 -04:00
Peter Rifel 4e6e00bec1 Add Terraform 0.12 rendering support and feature flag 2020-04-05 21:18:03 -05:00
Kubernetes Prow Robot 502aaacbe2
Merge pull request #8700 from johngmyers/version-tweaks
Balk at using Kubernetes versions too new to be supported
2020-04-05 07:17:45 -07:00
John Gardiner Myers 758f8017e4 Deprecate Kubernetes 1.10 2020-03-25 20:10:51 -07:00
Matteo Ruina 499885822d Update lyft CNI to 0.6.0 2020-03-16 09:24:28 +01:00
John Gardiner Myers 8db90a3233 Balk at using Kubernetes versions too new to be supported 2020-03-08 18:06:38 -07:00
Srikanth 42e88a7f89 Initial changes for load balancer task
Add load balancer fi tasks

Add load balancer builder for DO

Fix go imports

Implement FindIPAddress functionality

Add load balancer api ingress status calls

Add error checks for FindIPAddress

Add delete LB option

Update load balancer delete logic

Revert make file changes

revert utils code changes

Revert NewDOCloud changes

Remove minor code comments

Update with gomod for dependencies
2020-01-27 15:03:05 +05:30
Matteo Ruina c6bbf504dc Update lyft CNI to v0.5.3 2020-01-17 22:42:21 +00:00
Kubernetes Prow Robot 77d6d381c3
Merge pull request #8327 from johngmyers/remove-code
Remove code for unsupported Kubernetes versions
2020-01-15 14:54:22 -08:00
Austin Moore 4a88f7b5a5
Add ability to specify no ssh key by setting sshKeyName to empty
Add tests for no ssh key functionality

Add docs for setting no ssh key

Disable sshKey rendering for cloudformation if nosshkey is set

Fix broken test

make goimports

Fix

Formatting fix

Update kubernetes version for tests

Update expected test output

Fix imports in mesh.pb.go

Run hack/update-expected.sh

Change digital ocean logic to handle *string for SSHKeyName

Fix expected output

Missed a few
2020-01-15 15:24:32 -05:00
John Gardiner Myers 68b4282cb6 Remove code for unsupported k8s versions from cloudup 2020-01-12 16:05:00 -08:00
John Gardiner Myers 19dc62a3e3 Fix staticcheck error 2020-01-11 20:13:22 -08:00
John Gardiner Myers 1651a7ec3c Merge branch 'master' into remove-support 2020-01-11 20:11:41 -08:00
Aresforchina f312f7c974 upup/pkg/fi-fix staticcheck 2020-01-07 15:50:30 +08:00
Justin SB b9e9865fd6
For dev, don't preload docker images on nodes
If we're not going to use the docker images, we don't need to preload
them - saves a bit off the boot time.
2020-01-04 14:18:58 -05:00
tanjunchen 46bb31559f upup/pkg/fi/cloudup/apply_cluster staticcheck 2019-12-30 23:07:52 +08:00
John Gardiner Myers d843915fcf Announce Kubernetes 1.9 deprecation 2019-12-28 08:49:31 -08:00
John Gardiner Myers a1d97c219f Remove support for Kubernetes 1.8 and earlier 2019-12-28 08:49:31 -08:00
Peter Rifel f9d0860bbd Fix link printed in k8s version deprecation message 2019-12-27 17:41:55 -08:00
Kubernetes Prow Robot fc6ec7cd6f
Merge pull request #8176 from rifelpet/deprecation-warning
Add deprecation warning for older k8s versions
2019-12-27 09:30:06 -08:00
Peter Rifel 57e85f7c67 Update links printed by Kops to use new docs site 2019-12-23 18:47:58 -06:00
Peter Rifel 0a917a1744 Add deprecation warning for older k8s versions
As discussed during yesterday's office hours.

This should be cherry-picked back to 1.16.
We'll need to bump the minor version in the 1.17 and master branches.
Once we officially drop support we could make this a sliding window that uses the `kops.Version` variable.
I think we could have deprecation warnings for the 2 oldest versions still supported by the kops version, announcing that the n+2 Kops version will no longer support the specified k8s version.
2019-12-21 14:47:44 -06:00
Kubernetes Prow Robot 3ef957322e
Merge pull request #7941 from prksu/fix-panic-when-ssh-key-not-exists-on-do
Fix panic when ssh key not exists on digitalocean
2019-11-20 13:39:19 -08:00
Matteo Ruina 7a581f0a88 Update docs/networking.md
Co-Authored-By: David Byron <dbyron@dbyron.com>
2019-11-19 08:31:51 +01:00
Ahmad Nurus S cc3f8aa88d Fix panic when ssh key not exists on digitalocean 2019-11-18 02:26:44 +07:00
Matteo Ruina 2ae68061d6 Update lyft cni to v0.5.0 2019-10-31 15:29:12 +01:00
Justin SB e611f39e48
Upload dns-controller archive, use in KOPS_BASE_URL
Like we recently did with kops-controller, this means we aren't
reliant on pushing a docker container for development.  This should
also fix the e2e tests, which otherwise break whenever we make an
incompatible change to dns-controller.
2019-10-13 08:34:44 -07:00
Kubernetes Prow Robot 021b805178
Merge pull request #7661 from beautytiger/dev-190924
cleanup code to cancel some staticcheck warnings
2019-09-30 11:45:46 -07:00
Justin SB 49258971fc
Publish kops-controller container dump to S3/GCS
We then `docker load` it when using a KOPS_BASE_URL.

This should simplify the development process (particularly once we
also do this for dns-controller; at that point we won't need a
registry at all).

This should also fix the problems in CI, where the kops-controller
image isn't available.  We've been getting away with testing with the
previous version for dns-controller, which changes pretty slowly.  But
that's not a good idea for kops-controller, which is likely to be more
critical and evolve more rapidly.
2019-09-28 22:43:46 -04:00