Commit Graph

872 Commits

Author SHA1 Message Date
Kubernetes Submit Queue 210a22458c
Merge pull request #4026 from ihoegen/patch-1
Automatic merge from submit-queue.

Fix node counts

When running `kops validate`, and the cluster size is greater than the minimum configuration, the display message is 
<img width="153" alt="screen shot 2017-12-07 at 1 10 14 pm" src="https://user-images.githubusercontent.com/11003242/33738958-1571943e-db50-11e7-9156-f034c9af7d9c.png">

This PR sets the NodeCount value to the length of the nodes array instead of the configuration.
2017-12-14 10:25:42 -08:00
Kubernetes Submit Queue bea129142a
Merge pull request #4051 from robinpercy/autoscaler-perms
Automatic merge from submit-queue.

Adding DescribeTags to masters

/fixes #2681
2017-12-14 09:25:42 -08:00
Kubernetes Submit Queue d533714aa8
Merge pull request #4036 from almariah/feature-api-elb-security-groups
Automatic merge from submit-queue.

Allow additional SGs to be added to API loadbalancer

Allow adding precreated additional security groups to the API loadbalancer using cluster spec:
```yaml
spec:
  api:
    loadBalancer:
      type: Public
      additionalSecurityGroups:
      - sg-exampleid3
      - sg-exampleid4
```

- [x] Adding additionalSecurityGroups cluster spec
- [x] Adding validation for repeated security groups
- [x] Adding validation for API loadbalancer security groups
- [x] Integration test for API loadbalancer and its security groups
- [x] Update API docs and cluster.spec docs
2017-12-14 02:25:40 -08:00
Justin Santa Barbara a8a83f3ce9 Update gazelle 2017-12-14 01:31:28 -05:00
Kubernetes Submit Queue 0d837bcea8
Merge pull request #3947 from chrislovecnm/goimports
Automatic merge from submit-queue.

updating goimports
2017-12-13 19:25:43 -08:00
Kubernetes Submit Queue 7bd0a6a703
Merge pull request #3898 from rdrgmnzs/additional_cidr
Automatic merge from submit-queue.

Add additionalNetworkCIDRs to support VPCs with multiple CIDRs in AWS

Add additionalNetworkCIDRs to support VPCs with multiple CIDRs in AWS.

@justinsb I cannot find anywhere that does a check on an existing VPC to see if the networkCIDR matches what is on the VPC defined, I was looking for that so I can add a similar check for this. Am I missing something or is there really no check like that?
2017-12-13 18:25:41 -08:00
Abdullah Almariah 4b0aa1d320 Add API docs 2017-12-14 03:11:44 +01:00
Abdullah Almariah 5b4c9e2a14 Add API docs 2017-12-14 03:09:08 +01:00
Kubernetes Submit Queue ac7ae3fd58
Merge pull request #3809 from rdrgmnzs/hostnameOverride_use_hostname
Automatic merge from submit-queue.

Let a user set a hostnameOverride when the cloud provider is aws.

Let a user use the hostname or set a hostnameOverride when the cloud provider is aws. This would allow for a more descriptive name to be used. The name of the hosts when using @hostname can be set by using a hook or some other method.
2017-12-13 17:46:21 -08:00
Rodrigo Menezes 04506582ad add a check in validation.go 2017-12-13 16:58:52 -08:00
Rodrigo Menezes be85dfc438 Fix typo 2017-12-13 15:48:14 -08:00
Robin Percy 6a2ded4681 Adding DescribeTags to masters 2017-12-13 11:48:24 -08:00
Abdullah Almariah d181ecf885 awsValidateAdditionalSecurityGroups for API loadbalancer 2017-12-12 23:54:22 +01:00
Ian Hoegen 9ea5008da4 Make node counts and master counts autoscale friendly 2017-12-12 08:42:28 -08:00
Abdullah Almariah 5a46228927 awsValidateAdditionalSecurityGroups for API loadbalancer 2017-12-12 15:27:00 +01:00
Kubernetes Submit Queue d931c229f7
Merge pull request #4020 from rifelpet/fix_shared_igw_rename
Automatic merge from submit-queue.

Fix spurious shared InternetGateway renaming

This fixes the original issue described in #476 where `kops update cluster` would continuously report renaming a shared IGW even though it never actually renames it. I also added tests to confirm the behavior change.

I removed the bug mention from the docs although if you would prefer to keep it and instead say `In kops versions before X, ...` I can do that too
2017-12-11 08:15:05 -08:00
Abdullah Almariah 1dbc6064a5 Allow additional SGs to be added to API loadbalancer 2017-12-11 15:24:08 +01:00
Kubernetes Submit Queue e07d610fb4
Merge pull request #3934 from justinsb/roles_in_toolbox
Automatic merge from submit-queue.

Include roles in toolbox dump structured output
2017-12-11 02:36:29 -08:00
Peter Rifel 358e2e222c Create mock igw in integration tests 2017-12-07 16:38:06 -08:00
Nico Piderman 69519f558b Spelling fix in instancegroups.go error msg 2017-12-07 10:08:15 -05:00
Rodrigo Menezes 3942185698 Merge remote-tracking branch 'upstream/master' into additional_cidr 2017-12-04 12:53:20 -08:00
Kubernetes Submit Queue 23319a0974
Merge pull request #3941 from vainu-arto/private_dns_cert_fix
Automatic merge from submit-queue.

When using private DNS add ELB name to the api certificate

This fixes issue #2032 by using the gossip paths with private dns as well:

* When creating the api server certificate, include the ELB hostname
* When generating kubeconfig, use the ELB hostname as the api server name
2017-12-04 06:01:25 -08:00
Kubernetes Submit Queue 8f927cdc68
Merge pull request #4000 from justinsb/update_bazel
Automatic merge from submit-queue.

Update bazel / gazelle
2017-12-03 21:51:52 -08:00
Kubernetes Submit Queue 2b7b0f6cc7
Merge pull request #3978 from justinsb/dump_instances_in_order
Automatic merge from submit-queue.

toolbox dump now dumps instances in alphabetical order
2017-12-03 20:09:53 -08:00
Kubernetes Submit Queue 26d931eab1
Merge pull request #3976 from aledbf/missing-elb-permission
Automatic merge from submit-queue.

Add missing permissions for NLB creation

Without this permissions is not possible to create a network load balancer (alpha in k8s >= 1.9)
2017-12-03 19:03:42 -08:00
Justin Santa Barbara 0a02aa2955 Update bazel / gazelle 2017-12-03 12:45:45 -05:00
Kubernetes Submit Queue 90a70996a0
Merge pull request #3988 from justinsb/gce_networks_mode
Automatic merge from submit-queue.

Allow GCE network to be reconfigured
2017-12-02 06:50:16 -08:00
Justin Santa Barbara 0872cb74d7 Allow GCE network to be reconfigured 2017-12-02 02:43:21 -05:00
Justin Santa Barbara 33b7432d6a Fix segfault when updating non-existent object
Fix #3935
2017-12-01 11:00:46 -05:00
Manuel de Brito Fontes 683799c9ab Add missing permissions for NLB creation 2017-12-01 08:56:55 -03:00
Justin Santa Barbara f02595e915 toolbox dump now dumps instances in alphabetical order 2017-12-01 00:25:07 -05:00
Kubernetes Submit Queue fd7acd1ce6
Merge pull request #3948 from chrislovecnm/openapi-updates
Automatic merge from submit-queue.

openapi doc updates
2017-11-29 09:49:26 -08:00
Arto Jantunen 7639487e4f Use ELB hostname in the generated kubeconfig when using private DNS 2017-11-29 15:12:58 +02:00
chrislovecnm 3382b2d82f kops not Kops 2017-11-29 00:38:49 -07:00
chrislovecnm da10075d5c openapi doc updates 2017-11-28 11:37:49 -07:00
chrislovecnm fc9caea827 updating goimports 2017-11-28 11:34:28 -07:00
Arto Jantunen dd64f1ed6c Include ELB hostname in certificate when using private DNS 2017-11-28 11:48:57 +02:00
Arto Jantunen 53669b8217 Make ELB somewhat mockable 2017-11-28 11:48:57 +02:00
Rodrigo Menezes 2594d382ae Merge remote-tracking branch 'upstream/master' into additional_cidr 2017-11-27 23:30:42 -08:00
King'ori Maina 28ff1bfe06
Add API machinery generated code 2017-11-27 23:12:33 +02:00
King'ori Maina 2d59315b96
Map horizontal-pod-autoscaler-use-rest-clients flag 2017-11-27 21:41:27 +02:00
Justin Santa Barbara f3f5e6dba0 Include roles in toolbox dump structured output
Proves very handy when diagnosing problems.
2017-11-26 23:37:16 -05:00
Rodrigo Menezes f908dcb3bf Check and docs 2017-11-26 20:37:16 -08:00
Kubernetes Submit Queue e33a3ecee5
Merge pull request #3923 from justinsb/lockdown_etcd_peer_ports
Automatic merge from submit-queue.

Block etcd peer port from nodes
2017-11-26 16:17:13 -08:00
Kubernetes Submit Queue 0ade1dd2c4
Merge pull request #3822 from gambol99/dns_controller_optional
Automatic merge from submit-queue.

DNS Controller Optional

The current implementation enforces a dns-controller is running; given the user can switch the make the kube-apiserver server Internal and then reuse the dns for the masterInternalName; this effectlively removes the need to run the service (assuming your not using it for pods, node and service dns)

- adding a disableDnsController to the ExternalDNS spec provides a toggle on the addon (name is definitely up for debate)
- the default behaviour remains, the dns-controller is always pushed as an addon
2017-11-26 15:03:47 -08:00
Justin Santa Barbara 581e954062 Block etcd peer port from nodes
Ports 2380 & 2381 should not be exposed to nodes.

Fix #3746
2017-11-25 16:36:46 -05:00
Justin Santa Barbara 1b58585c8c
Merge pull request #3892 from romana/romana-networking-update
Version and validation updates for romana networking.
2017-11-22 11:25:35 -05:00
Kubernetes Submit Queue e5194cf08b
Merge pull request #3904 from zengchen1024/generate_codes_for_cinder_volume_tasks
Automatic merge from submit-queue.

generate gazelle for cinder volume tasks

for issue #3886
2017-11-22 00:25:29 -08:00
zengchen1024 769a9e9dbb update gazelle 2017-11-22 14:29:14 +08:00
Kubernetes Submit Queue cabe97230f
Merge pull request #3887 from georgebuckerfield/fix-routetable-deletion
Automatic merge from submit-queue.

Respect the shared tag when deleting route tables

Fixes #3828.

Modifies the `buildTrackerForRouteTable` function (used by `ListRouteTables`) to set the `Shared` field of each returned route table resource, based on the presence of the `kubernetes.io/cluster/<clustername>: shared` tag. This prevents route tables with this tag from being deleted.

WIP while I add some more tests.
2017-11-21 21:05:31 -08:00