Commit Graph

3175 Commits

Author SHA1 Message Date
Peter Rifel fba21c93d2
Update upup/pkg/fi/cloudup/awstasks/launchtemplate_target_terraform_test.go 2020-05-01 06:51:58 -05:00
Martin Tomes deb4e86c70 Uodate terraform test
try to fix wrong indentation again
2020-05-01 10:24:06 +02:00
Ole Markus With 74732487d5 Fix various tests that used masters without etcd members 2020-04-30 18:32:28 +02:00
Martin Tomes 7d5dedcbea Update launchtemplate_target_terraform_test.go
Fixed indentation in terraform test template
2020-04-30 17:25:15 +02:00
Ole Markus With 7c49f283c4 Bump cilium to 1.7.3 2020-04-30 07:29:22 +02:00
Martin Tomes c66180bc58 Added support for instance interruption behavior 2020-04-29 14:53:17 +02:00
Kubernetes Prow Robot e39ea8de68
Merge pull request #9021 from MoShitrit/issue-9012
Add af-south-1 and eu-south-1 regions (AWS)
2020-04-29 04:58:24 -07:00
MoShitrit e8416c1028 Add af-south-1 and eu-south-1 regions to AWS 2020-04-29 00:10:32 -04:00
Kubernetes Prow Robot a1a6611c8f
Merge pull request #9020 from rifelpet/aws-vpc-cni-161
Upgrade amazon vpc cni to 1.6.1
2020-04-28 20:56:25 -07:00
Peter Rifel 4e9d14f51d
Upgrade amazon vpc cni to 1.6.1
https://github.com/aws/amazon-vpc-cni-k8s/releases/tag/v1.6.1
2020-04-28 21:27:00 -05:00
liranp 1ecf559b71
feat(spot/ocean): add support for grace period 2020-04-28 19:54:57 +03:00
Kubernetes Prow Robot 0adf32f973
Merge pull request #8965 from hakman/weave-fixes
Fix missing changes in Weave manifest
2020-04-28 08:20:09 -07:00
Kubernetes Prow Robot 7d85c53c96
Merge pull request #9004 from geojaz/gce/update_network
GCE: needs to use v1 network resources, not beta
2020-04-27 14:16:05 -07:00
eric-hole 444ad7b4fd GCE: needs to use v1 network resources, not beta 2020-04-27 13:14:50 -07:00
Kubernetes Prow Robot 8d0933fe35
Merge pull request #8982 from olemarkus/cilium-bump-april
Bump cilium to 1.7.2
2020-04-27 13:04:05 -07:00
mosheshitrit 9fffc5f8e0 Make CPU Requests for Calico configurable instead of hard-coded
Update bindata.go

Apply suggestions from code review

Applying suggested changes.

Co-Authored-By: Ciprian Hacman <ciprianhacman@gmail.com>

Applying changes after running `make gofmt`

Applying changes after running `make crds`

Apply suggestions from code review

Applying suggested changes.

Co-Authored-By: Ciprian Hacman <ciprianhacman@gmail.com>

Applying changes after running `make gofmt`

Fixing broken things

Typo fixes

Apply suggestions from code review

Co-Authored-By: Ciprian Hacman <ciprianhacman@gmail.com>

Apply suggested changes and run necessary `make` steps
2020-04-26 12:44:14 -04:00
Ole Markus With 3e3b2019dc Bump cilium to 1.7.2 2020-04-25 19:39:40 +02:00
Kubernetes Prow Robot 73a93f7d44
Merge pull request #8961 from hakman/calico-v3.13.3
Update Calico and Canal to latest patch versions
2020-04-24 13:27:30 -07:00
eric-hole f25b26ff07 Migrates GCE sdk from v0.beta to v1 2020-04-24 10:54:19 -07:00
Ciprian Hacman 227a767ce5 Fix missing changes in Weave manifest 2020-04-23 19:58:13 +03:00
Ciprian Hacman 676fdc6ab4 Update Calico and Canal misc stuff 2020-04-23 11:03:57 +03:00
Ciprian Hacman 006c2f9025 Update Calico liveness probe for k8s 1.12-1.15 2020-04-23 10:52:50 +03:00
Ciprian Hacman ad835b478d Update Canal to v3.12.1 for k8s 1.15 2020-04-23 10:52:50 +03:00
Ciprian Hacman 916f3014b7 Update Calico and Canal to v3.13.3 for k8s 1.16+ 2020-04-23 10:52:50 +03:00
Ole Markus With 78e8d83d91 Adding a test for deleting keysets 2020-04-21 10:37:43 +02:00
Ole Markus With 8bb078a4a8 Load the correct certificate before deleting 2020-04-20 21:32:22 +02:00
liranp 2a17a50d00
chore(deps): make gomod 2020-04-19 14:23:32 +03:00
liranp 870bdfdcff
feature(spotinst): add support for auto scaler configuration 2020-04-19 14:22:57 +03:00
Martin Tomes 462ca78f2a Import package aliases modified
Modified api -> kopsapi aliases of imports of k8s.io/kops/pkg/apis/kops
2020-04-17 16:55:08 +02:00
Kubernetes Prow Robot 982496c539
Merge pull request #8930 from justinsb/enabled_to_pointer
Change NodeLocalDNS Enabled to *bool
2020-04-16 21:55:06 -07:00
Justin Santa Barbara f3a40cf87c Change NodeLocalDNS Enabled to *bool
As discussed in #8780 so we differentiate between false and not-set.
Also tweak the comment.
2020-04-17 00:09:35 -04:00
Ole Markus With 869ab75dea Use etcd-manager for the cilium etcd cluster 2020-04-16 08:42:59 +02: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
Ole Markus With f5a5db4ff3 Verify bindata 2020-04-10 11:29:49 +02:00
Ole Markus With d5019a6c11 Simplify the spec and templates a bit 2020-04-10 10:48:21 +02:00
Salvatore Mazzarino f754cbda7d NodeLocal DNSCache
Signed-off-by: Salvatore Mazzarino <dev@mazzarino.cz>
2020-04-10 10:44:53 +02:00
Justin Santa Barbara 108d1eee5d Replace deprecated x/net/context with context
It's not x-perimental any more!
2020-04-09 23:58:19 -04:00
Peter Rifel ef76409046 Add support for writing maps of literals, used by gce metadata 2020-04-08 22:16:57 -05:00
Peter Rifel 2a48c70ea8 Copy GCE instance fields into both Instance and InstanceTemplate
The hcl2 library doesn't handle embedded types well,
so rather than trying to detect it with reflection I figured it was easier to just get rid of the one case of it.
This copies the fields from the embedded type into both Instance and InstanceTemplate, updating the receiver functions to instead return the value for the field that was being modified.
2020-04-08 21:18:50 -05:00
Kubernetes Prow Robot fde8ceaaa8
Merge pull request #8584 from rdrgmnzs/include-bindata
Don't compress bindata & allow Kops to be imported as a package.
2020-04-07 20:51:43 -07:00
Justin Santa Barbara b903724e0f Fix a spelling mistake; regenerate 2020-04-07 22:57:10 -04:00
Kubernetes Prow Robot ef10d5444e
Merge pull request #8825 from rifelpet/hcl2-native
Add Terraform 0.12 support
2020-04-07 09:01:44 -07:00
Rodrigo Menezes cfeefed17f fix misspelling 2020-04-07 10:41:55 -04:00
Rodrigo Menezes 2fe2f4fd81 Don't compress bindata & allow Kops to be imported as a package. 2020-04-07 10:41:55 -04:00
Justin Santa Barbara 765fa36d22 Use dns.NewService instead of dns.New
Fixes build problems caused by concurrent changes
2020-04-07 10:37:00 -04:00
Christian van der Leeden eb3bb41c6b kops delete will also delete the DNS entries for GCE 2020-04-07 10:37:00 -04:00
Ciprian Hacman 49dfafc606 Remove critical-pod annotation 2020-04-07 11:38:33 +03:00
Ciprian Hacman 5ee9ba2ee6 Update Calico and Canal to v3.13.2 2020-04-07 10:50:54 +03:00
Kubernetes Prow Robot a06cebc915
Merge pull request #8847 from rifelpet/machine-types
Switch to using ec2.DescribeInstanceTypes for building the MachineTypes list
2020-04-06 06:43:46 -07:00
Peter Rifel fa2d64c3a3 Update expected outputs of terraform tests 2020-04-05 21:24:49 -05:00
Peter Rifel 4e6e00bec1 Add Terraform 0.12 rendering support and feature flag 2020-04-05 21:18:03 -05:00
Peter Rifel 04a5ead08e Add cty field tags to Terraform structs 2020-04-05 21:18:02 -05:00
Peter Rifel 1b29afb45d Switch to using ec2.DescribeInstanceTypes for building the MachineType list 2020-04-05 21:16:49 -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
eric-hole c59314a799 Adds some initial tests. Fixes some logic
Need to fix service account implementation first

Fixing tests and iterating on the serviceaccount logic

Run the gce_byo_sa test
2020-04-04 21:20:31 -07:00
eric-hole b3d65ffce0 Adds a gce-service-account flag so you BYO service-account
Generated code and some cleanup

Not sure where that code went

Tests for service account

fixes case on gceserviceaccount
2020-04-04 21:15:56 -07:00
Ciprian Hacman 3001e0619b Use CNI 0.8.5 for Kubernetes 1.18+ 2020-04-04 17:21:47 +03:00
Peter Rifel 4d24c4d1e6 Remove unused ECU and Burstable fields from AWSMachineTypeInfo
I tracked these fields back to a 2016 commit that added the entire struct but they still werent used even back then.
2020-04-03 22:19:05 -05:00
GuyTempleton c1a259b5a4
Cleanup InstanceGroup MixedInstancePolicy docs
Also improved consistency of rest of InstanceGroup docs and
some docstrings
2020-04-02 16:48:17 +01:00
Kubernetes Prow Robot 759e24a490
Merge pull request #8802 from thejasbabu/feature/spot-block
Add support for Spot block in launch template
2020-04-01 10:15:27 -07:00
Kubernetes Prow Robot 73d4d1c941
Merge pull request #8744 from rifelpet/tf-bastion-userdata
Don't set terraform user_data if it is empty
2020-03-31 09:32:40 -07:00
Thejas B dda8dc3f37 Add support for Spot block in launch template
- Launch configuration does not support the field SpotDurationInMinutes which is used to reserve the spot instances, but however Launch Template does
2020-03-31 20:07:01 +05:30
Peter Rifel ee86488d98 Don't set terraform's user_data if it is an empty string
Bastion hosts have no user_data by default.
This is not valid in terraform, based on the error messages reported here [0]

The Terraform provider code says user_data is optional for both LaunchConfigurations and LaunchTemplates [1] [2]

This change prevents the user_data property from being added to aws_launch_configuration and aws_launch_template resources unless the string is not empty.

[0] https://travis-ci.org/github/kubernetes/kops/jobs/662472020
[1] 04d24f80f3/aws/resource_aws_launch_configuration.go (L74-L76)
[2] 04d24f80f3/aws/resource_aws_launch_template.go (L510-L512)
2020-03-31 09:33:16 -05:00
liranp 98a74deba6
fix(aws): add missing region: me-south-1 2020-03-31 01:10:41 +03:00
Peter Rifel 5505de2c3c Fix terraform json field tags
In preparation for the Terraform 0.12 support I noticed these inconsistencies.
I dont think it has any impact on functionality, I'm just trying to minimize the diff of the 0.12 PR
2020-03-28 11:34:45 -05:00
Kubernetes Prow Robot 7698323377
Merge pull request #8799 from johngmyers/deprecate-1.10
Deprecate support for Kubernetes 1.10
2020-03-27 12:03:54 -07:00
Kubernetes Prow Robot 8df55b8571
Merge pull request #8776 from tiendc/ut_upup_pkg_fi_files
Add UT for upup/pkg/fi/files.go
2020-03-27 05:56:23 -07:00
John Gardiner Myers 758f8017e4 Deprecate Kubernetes 1.10 2020-03-25 20:10:51 -07:00
Kashif Saadat 3606865ad4 Canal v3.13.1 2020-03-25 12:09:46 +00:00
Ole Markus With 7e87eddbea Make cilium operator health check go against localhost IP
Health check will fail otherwise
2020-03-25 08:38:47 +01:00
fentas d0f12d3793 Bump cilium manifestHash 2020-03-21 18:00:04 +01:00
fentas 49b18cd3f7 Add cilium option tofqdns-dns-reject-response-code 2020-03-21 16:52:08 +01:00
Dao Cong Tien de779c2b2f Add UT for upup/pkg/fi/files.go
Signed-off-by: Dao Cong Tien <tiendc@vn.fujitsu.com>
2020-03-20 13:12:30 +07:00
Ole Markus With e77a7d495c Allow configuration of enable-remote-node-identity 2020-03-19 09:48:59 +01:00
Kubernetes Prow Robot 36cf282870
Merge pull request #8752 from johngmyers/missing-priority
Add missing priorityClassName to addons
2020-03-18 17:54:43 -07:00
liranp 526fd98afa
feature(spotinst): upgrade controller (v1.0.57) 2020-03-18 18:48:37 +02:00
Kubernetes Prow Robot 06823cf354
Merge pull request #8762 from zetaab/allowedcidrs
add support for OpenStack Octavia AllowedCIDRs
2020-03-18 07:32:48 -07:00
Kubernetes Prow Robot 441ecc96b5
Merge pull request #8764 from hakman/weave-2.6.2
Update Weave Net to version 2.6.2
2020-03-17 12:15:28 -07:00
Kubernetes Prow Robot f9d882d77a
Merge pull request #8757 from maruina/lyft-0.6.0
Update lyft CNI to 0.6.0
2020-03-17 11:06:22 -07:00
Ciprian Hacman eb2c9e336c Update Weave Net to version 2.6.2 2020-03-17 19:44:20 +02:00
Jesse Haka d694a6f66d add support for AllowedCIDRs 2020-03-17 17:33:11 +02:00
Ciprian Hacman fb68aae41f
Apply suggestions from code review #1
Co-Authored-By: John Gardiner Myers <jgmyers@proofpoint.com>
2020-03-16 19:48:19 +02:00
Ciprian Hacman 59a6b065a0 Add root volume tags for CF and TF targets 2020-03-16 18:41:39 +02:00
Matteo Ruina 499885822d Update lyft CNI to 0.6.0 2020-03-16 09:24:28 +01:00
John Gardiner Myers 09df6ac844 Remove unreferenced template 2020-03-15 13:51:14 -07:00
John Gardiner Myers 63ccaa14d6 Add missing priorityClassName to addons 2020-03-15 13:51:10 -07:00
Ciprian Hacman b3fbb494c6 Fix template for kube-router v0.4.0 2020-03-15 17:38:59 +02:00
Ciprian Hacman 507230fe75 Move Docker "health-check" to DockerBuilder 2020-03-15 09:47:47 +02:00
Kubernetes Prow Robot 88600407f4
Merge pull request #8629 from olemarkus/cilium-etcd-operator
Add option to use etcd managed by cilium-etcd-operator as kvstore
2020-03-14 17:18:34 -07:00
Kubernetes Prow Robot 0a6dcce580
Merge pull request #8525 from hakman/docker-tgz
Update support for docker tgz package
2020-03-14 16:40:35 -07:00
Ole Markus With 0c27aa3ce8
Update upup/models/cloudup/resources/addons/networking.cilium.io/k8s-1.12.yaml.template
Co-Authored-By: John Gardiner Myers <jgmyers@proofpoint.com>
2020-03-14 21:44:44 +01:00
eric-hole 450fad6e4c Fixes the prom to sd params in metadata-proxy 2020-03-14 12:18:05 -07:00
eric-hole 0daa5388ba Fixing gce integration tests (thanks Peter) with nodeLabels 2020-03-14 12:18:05 -07:00
eric-hole bd6a54958f Fix addon manifest version for metadata-proxy 2020-03-14 12:18:05 -07:00
eric-hole b52e322159 Adds metadata concealment addon for GCE node 2020-03-14 12:18:05 -07:00
eric-hole 12ce5f0e9c Node metadata-concealment in GCE, first pass 2020-03-14 12:18:05 -07:00
Kubernetes Prow Robot 7d030ae459
Merge pull request #8742 from hakman/kube-router-0.4.0-2
Fix template for kube-router v0.4.0
2020-03-14 10:42:35 -07:00
Kubernetes Prow Robot ae51a5b138
Merge pull request #8582 from joshbranham/feature/better-default-storageclass
Create New Default StorageClass: kops-ssd-1-17
2020-03-14 08:46:35 -07:00
Ciprian Hacman 163c11fc6c Fix template for kube-router v0.4.0 2020-03-14 17:23:12 +02:00
Ole Markus With a98666d05a Set kube-proxy-replacement to partial
Fully relying on kube-proxy breaks network policies.
Setting kube-proxy-replacement to partial instead of disabled makes
cilium behave as in 1.6.
2020-03-14 08:38:41 +01:00