Commit Graph

3296 Commits

Author SHA1 Message Date
Kubernetes Prow Robot 7d8ef74bcd
Merge pull request #10797 from t1cg/azureManagedImage
Allow managed images for Azure instance groups
2021-02-12 16:27:05 -08:00
Kubernetes Prow Robot 688aeb873a
Merge pull request #10744 from t1cg/caw/azureLoadbalancer
add azure support for internal loadbalancer to k8s api
2021-02-12 14:53:04 -08:00
Collin Woodruff 6a8d474acd add internal loadbalancer for azure 2021-02-12 17:13:01 -05:00
Kubernetes Prow Robot 082bdc3878
Merge pull request #10780 from olemarkus/consistent-cp-labelling
Make protokube CP label setting consistent with kops-controller
2021-02-12 11:09:58 -08:00
Ole Markus With 783b6c0d6c Make protokube CP label setting consistent with kops-controller 2021-02-12 08:17:14 +01:00
Ciprian Hacman c0d02d7dc9 Update Docker to v19.03.15 2021-02-12 07:10:32 +02:00
Nicholas Schleicher 1ac3265a14 Allow managed images for Azure instance groups 2021-02-11 15:42:17 -05:00
Kubernetes Prow Robot ec495195a7
Merge pull request #10733 from seh/allow-disabling-of-storage-class-mgmt
Storage: Allow disabling of kOps's management of StorageClasses
2021-02-11 10:26:17 -08:00
Kubernetes Prow Robot c7f312ce08
Merge pull request #10728 from h3poteto/iss-10719
Fill Role names in kops-controller-config instead of instance profile names when it is specified
2021-02-11 08:38:16 -08:00
Steven E. Harris d1432bf1d4 Establish default CloudConfiguration values 2021-02-11 10:49:49 -05:00
Steven E. Harris 4a7b970011 Validate CloudConfiguration values 2021-02-11 10:49:44 -05:00
Steven E. Harris f63a5d3911 Define "ManageStorageClasses" cloud config field 2021-02-11 10:48:32 -05:00
Ole Markus With a86abcfd3e CSIMigrationAWSComplete feature gate does not work unless also CSIMigrationAWS is enabled 2021-02-11 12:41:50 +01:00
Kubernetes Prow Robot b233f031a3
Merge pull request #10489 from olemarkus/aws-loadbalancer-controller
Add AWS LoadBalancerController
2021-02-11 02:06:16 -08:00
Ole Markus With e106e5f752 Apply suggestions from code review
Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
2021-02-11 10:15:26 +01:00
Ole Markus With 56330188d0 Add AWS LoadBalancerController 2021-02-11 08:47:03 +01:00
AkiraFukushima 36acadca59 Fill Role names in kops-controller-config instead of instance profile names when it is specified
The role names are checked in node bootstrap.
If profile names are provided, bootstrap will fail.
Because profile name and role name do not always mactch in AWS IAM
2021-02-11 14:28:49 +09:00
Alexander Block cc4aca62f4 Fix unnecessary copying of list 2021-02-10 17:56:59 +01:00
Alexander Block 4ae47cc546 Use proper errors for subnet validation 2021-02-10 15:27:11 +01:00
Alexander Block 295fb11ac2 Better readable modification assigning of PrivateIPv4Address 2021-02-10 09:39:32 +01:00
Alexander Block 2c0f9809eb Move validation of ClusterSubnetSpec into pkg/apis/kops/validation 2021-02-10 09:36:39 +01:00
Alexander Block c6eca9db81 Fix check for empty privateIPv4Address 2021-02-10 08:21:22 +01:00
Ole Markus With e0c3490cc3 Add support for creating world-readable managedFiles 2021-02-09 21:06:28 +01:00
Kubernetes Prow Robot 41d7d2dbe4
Merge pull request #10707 from slu2011/master
Use the kubeApiServerConfig clientCAFile field
2021-02-09 03:58:46 -08:00
Kubernetes Prow Robot 4507be8e13
Merge pull request #10469 from justinsb/boot_nodes_from_kops_controller
Boot nodes without state store access
2021-02-08 11:28:19 -08:00
Ciprian Hacman ede4daf7ce Release 1.20.0-alpha.2 2021-02-08 13:36:48 +02:00
Peter Rifel e7ede2b13e
Use EnsureTask instead of prepending IG names to external ELB tasks
This way we end up with one CLB task per CLB regardless of how many ASGs to which it is attached.
2021-02-07 10:45:38 -06:00
Kubernetes Prow Robot 0aa9cf1921
Merge pull request #10695 from olemarkus/cilium-1-9
Add support for cilium 1.9
2021-02-07 01:07:11 -08:00
Kubernetes Prow Robot 016b0e5500
Merge pull request #10732 from zetaab/feature/uagent
add user agent to openstack api requests
2021-02-06 23:53:12 -08:00
Ole Markus With a6dce2e820 Add support for cilium 1.9
Apply suggestions from code review

Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
2021-02-07 08:00:54 +01:00
Alexander Block 6facd1b8ab Allow to explicitely choose subnets and private IPs for the API loadbalancer 2021-02-05 17:53:20 +01:00
Alexander Block 49e7ec8890 Use SubnetMappings for NLBs instead of Subnets
SubnetMappings allow to explicitely set the private IPv4 address that
must be used for the NLB.

SubnetMappings and Subnets in the AWS API are compatible as long as the
address settings are not changes, making this commit backwards compatible.
2021-02-05 17:53:20 +01:00
Li Zhijian d39f196292 pkg/apis/kops/validation/validation: Fix ineffectual assignment to optionTaken
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
2021-02-05 16:39:28 +08:00
Jesse Haka 034dad258c modify names 2021-02-05 09:57:54 +02:00
Kubernetes Prow Robot ae3579076d
Merge pull request #10692 from bharath-123/feat/set-cluster-validation
Throw error if path being set by kops set is not present in struct
2021-02-04 22:08:52 -08:00
Jesse Haka 41d04d8d4b add user agent to openstack api requests 2021-02-04 23:04:06 +02:00
Kubernetes Prow Robot c954793865
Merge pull request #10721 from rifelpet/kops-controller-r53
Cleanup kops-controller Route53 record during cluster deletion
2021-02-04 09:58:30 -08:00
Kubernetes Prow Robot 75df2e5cf7
Merge pull request #10690 from bharath-123/task/remove-unused-param
Remove unused instanceGroup parameter from setClusterFields
2021-02-04 01:04:29 -08:00
Peter Rifel c28c4c728d
Cleanup kops-controller Route53 record during cluster deletion 2021-02-03 22:41:49 -06:00
shil a0350a0dfa Use the kubeApiServerConfig clientCAFile field 2021-02-01 15:26:09 -08:00
Kubernetes Prow Robot fd21e0e836
Merge pull request #10689 from olemarkus/tf-channel-latest-ami
Add template function returning the latest image
2021-01-31 07:51:48 -08:00
Kubernetes Prow Robot 40ae752e46
Merge pull request #10545 from olemarkus/channels-certs
Have channels create PKI for addons
2021-01-31 01:21:49 -08:00
Ole Markus With 05092f8389 Add template function returning the latest image
Apply suggestions from code review

Co-authored-by: Peter Rifel <rifelpet@users.noreply.github.com>
2021-01-31 08:21:15 +01:00
Bharath Vedartham 49f3ab0703 Throw error if path being set by kops set is not present in struct 2021-01-31 12:00:42 +05:30
Ole Markus With 7ac74ab61c Fix bug preventing tasks using gp2 2021-01-30 19:46:30 +01:00
Bharath Vedartham 515fbf1c1c set_cluster: Remove unused instanceGroup parameter from setClusterFields 2021-01-30 14:31:49 +05:30
Ole Markus With 1db7b72843 Use serving cert for metrics-server 2021-01-30 09:01:36 +01:00
Ciprian Hacman f8d3b76556 Default IMDSv2 to "optional" for AWS 2021-01-29 14:02:14 +02:00
Kubernetes Prow Robot 3d39be7721
Merge pull request #10661 from hakman/etcd-manager-defaults
Update AWS etcd-manager volumes defaults
2021-01-28 22:01:41 -08:00
Ciprian Hacman 5fcd4e4b28 Allow attaching same external load balancer to multiple instance groups 2021-01-27 16:25:39 +02:00
Ciprian Hacman ca408f7e8f Set default volume type to "gp3" for etcd-manager volumes in AWS 2021-01-27 06:23:27 +02:00
Kubernetes Prow Robot a4e611aa36
Merge pull request #10654 from justinsb/set_sysctl_before_nodeup
Set the tcp_rmem sysctl in bootstrap script
2021-01-25 09:26:54 -08:00
Kubernetes Prow Robot f055dd561c
Merge pull request #10593 from gabrieljackson/set-instancegroup-cmd-redux
Add `set instancegroup` command
2021-01-25 05:16:54 -08:00
Gabe Jackson 45afe1d968 Switch validation to CrossValidateInstanceGroup 2021-01-25 01:05:07 -05:00
Justin SB 1d76a15f69 Set the tcp_rmem sysctl in bootstrap script
This ensures that we're using our settings for downloading nodeup
itself and any assets that nodeup downloads.  This is a workaround for
reported problems with the initial download on some kernels otherwise.

Issue #10206
2021-01-24 21:50:45 -05:00
Ciprian Hacman 7aeb8c2af3 Add back support for kubenet style networking with containerd 2021-01-24 21:16:45 +02:00
Justin SB 28f184f68a etcd-manager: Update to 3.0.20210122
Upstream changes:

* Release notes for 3.0.20201209
* Handling hanging list command from etcd client during reconciliation loop
* Update dependencies to match kOps 1.19
* Include IPs in peer certificates
* Use etcd v3.4.13 in tests
* Eager-broadcast leadership on every leader iteration
* Update Go to 1.15.7
2021-01-22 16:01:03 -05:00
Kubernetes Prow Robot 8cf32fe850
Merge pull request #10634 from olemarkus/update-yaml
Replace gopkg yaml with k8s-sigs yaml
2021-01-22 06:59:26 -08:00
Kubernetes Prow Robot dcf1eb608a
Merge pull request #10635 from olemarkus/cilium-rni-docs-fix
enableRemoteNodeIdentity actually defaults to true
2021-01-22 06:03:26 -08:00
Ole Markus With 91a6777e60 Replace gopkg yaml with k8s-sigs yaml 2021-01-22 14:28:05 +01:00
Ole Markus With 35d6ac5e21 enableRemoteNodeIdentity actually defaults to true 2021-01-22 10:52:22 +01:00
liranp 5f30cdedf9
fix(spot/ocean): avoid unnecessary duplication of tasks 2021-01-21 21:44:43 +02:00
Ciprian Hacman d889d61ddb Set default IMDS v2 to "required" for instances in AWS 2021-01-21 11:35:41 +02:00
Ciprian Hacman c8a9b2fb3e Set default volume encryption to "true" for instances in AWS 2021-01-21 11:27:02 +02:00
Ciprian Hacman 18bb14ffed Set default volume type to "gp3" for instances in AWS 2021-01-21 11:27:02 +02:00
Ciprian Hacman 85fbf1c6a2 Add iops field for gp3 volumes only with launch templates 2021-01-21 11:27:02 +02:00
Nicholas Schleicher 617869e823 Use correct tag when creating node labels from azure cloud tags 2021-01-20 16:41:38 -05:00
Kubernetes Prow Robot 04e61e4965
Merge pull request #10616 from ottosulin/azhints
Add network and router availability zone hints to OpenStack
2021-01-20 08:56:00 -08:00
Otto Sulin 46a8a00adc Fix broken tests 2021-01-20 14:24:49 +02:00
Otto Sulin c66a079e3e Add network and router availability zone hints to OpenStack
This pull request makes it possible to add availability zone hints to routers and networks if the hints are supported.
2021-01-20 13:34:08 +02:00
Ciprian Hacman 51cc462793 Add support for container-log-max-size/files with kubelet 2021-01-20 05:49:26 +02:00
Kubernetes Prow Robot 70a9804a28
Merge pull request #10599 from olemarkus/validate-cloud-labels
Validate cluster cloud labels
2021-01-17 10:27:43 -08:00
Ole Markus With 381875b96e
Apply suggestions from code review
Co-authored-by: Ciprian Hacman <ciprianhacman@gmail.com>
2021-01-17 18:43:12 +01:00
Ole Markus With ad36f99dfd Validate cluster cloud labels 2021-01-17 08:56:08 +01:00
Barry Melbourne 337c9c4c66 Set default container runtime to containerd 2021-01-16 14:55:35 +00:00
Kubernetes Prow Robot a051af8dc0
Merge pull request #10564 from bjhaid/master
Make cluster proportional autoscaler image configurable.
2021-01-15 11:03:52 -08:00
Gabe Jackson e90050f134 Add `set instancegroup` command
This change adds a new command and functionality for updating
instance group configuration via command line arguments. This
behavior mimics the `set cluster` command.
2021-01-15 12:19:26 -05:00
Ciprian Hacman bb787d3075 Release 1.20.0-alpha.1 2021-01-15 15:29:55 +02:00
Kubernetes Prow Robot 9057e13288
Merge pull request #10582 from justinsb/less_verbose_build_flags
Dial-down logging on flagbuilder
2021-01-14 11:43:31 -08:00
Justin SB d95392385a Dial-down logging on flagbuilder
We still run nodeup at V=8, so the distinction between V=10 and V=8
matters.

This message really is just development logging, so downgrade to V=10.
2021-01-14 10:53:13 -05:00
Ole Markus With afbd057286 Use consistent naming for the remaining SGRs 2021-01-14 12:57:33 +01:00
Kubernetes Prow Robot fb0fbb5280
Merge pull request #10557 from zetaab/feature/hashname
[OpenStack] Use new hash format in instance names
2021-01-13 09:24:36 -08:00
Kubernetes Prow Robot 0412bf7566
Merge pull request #10561 from spotinst/feat-launchspec-restrictions
Spotinst: Specify whether scale-down activities should be restricted
2021-01-13 08:24:36 -08:00
Jesse Haka 643997320d fix comment 2021-01-13 11:57:01 +02:00
Jesse Haka 1bc330b0bb nameprefix -> groupname 2021-01-13 11:54:07 +02:00
Kubernetes Prow Robot a140168c70
Merge pull request #10467 from olemarkus/ebs-csi
AWS CSI driver
2021-01-12 13:36:35 -08:00
bjhaid f299566822 Make cluster proportional autoscaler image configurable.
Similar to how we can configure coreDNS image we will like to configure
cluster Proportional autoscaler so we can use our internal docker
registry rather than gcr.io.
2021-01-12 13:30:42 -06:00
Kubernetes Prow Robot e4f4a20d27
Merge pull request #10419 from bharath-123/task/default-systemd
Default cgroup driver to systemd from k8s 1.20
2021-01-12 08:30:27 -08:00
Bharath Vedartham a8d709acf2 Default cgroup driver to systemd from k8s 1.20
Currently, kOps uses cgroupfs cgroup driver for the kubelet and CRIs. This PR defaults
the cgroup driver to systemd for clusters created with k8s versions >= 1.20.

Using systemd as the cgroup-driver is the recommended way as per
https://kubernetes.io/docs/setup/production-environment/container-runtimes/
2021-01-12 20:39:25 +05:30
Jesse Haka 38831ff70d fix test 2021-01-12 15:50:40 +02:00
Jesse Haka 185ccba246 Use random instance names in OpenStack 2021-01-12 14:52:39 +02:00
liranp 9fe505abed
feat(spot/ocean): new label: spotinst.io/restrict-scale-down 2021-01-12 11:35:28 +02:00
liranp eee856392b
fix(spot/model): iterate metadata labels only once 2021-01-12 10:26:11 +02:00
Ole Markus With f5ae5f8808 AWS CSI driver 2021-01-12 07:09:10 +01:00
Kubernetes Prow Robot 695be2666c
Merge pull request #10281 from dntosas/cluster-autoscaler-improvements
[addons/CA] Add support for specifying resources and metrics
2021-01-11 12:16:26 -08:00
dntosas 56fe4bab24
[addons/CA] Add support for specifying resources and metrics
- Resources
We enable users to set their desired capacity for cluster-autoscaler addon.
There are edge cases, especially in big clusters, where autoscaler needs
to reconcile a large number of objects thus may need increased memory or
increased cpu to avoid saturation.

- Metrics
Cluster autoscaler provides valuable insights for monitoring capacity
allocation and scheduling aspects of a cluster. In this commit, we
add proper annotation on deployment to enable Prometheus scrape metrics.

We also bump patch version of container images.

Signed-off-by: dntosas <ntosas@gmail.com>
2021-01-11 20:53:08 +02:00
Ole Markus With 4d2eca199f Remove node-authorization 2021-01-11 18:59:45 +01:00
Kubernetes Prow Robot f94539f6f6
Merge pull request #10556 from zetaab/feature/updatedeps
update gophercloud dependency
2021-01-11 06:13:08 -08:00
Jesse Haka 46de9f145e update gophercloud dependency 2021-01-11 14:48:22 +02:00
Kubernetes Prow Robot b3be6478dd
Merge pull request #10551 from spotinst/feat-launchspec-strategy
Spotinst: Specify Spot percentage per Instance Group
2021-01-11 04:33:07 -08:00