Commit Graph

989 Commits

Author SHA1 Message Date
Justin Santa Barbara bf74133fd4 Refactor CAStore to use API types
We now return KeySet objects
2017-12-17 20:09:00 -05:00
Kubernetes Submit Queue dd49d69399
Merge pull request #3254 from chrislovecnm/file-assets
Automatic merge from submit-queue.

work on using files assets

Basic MVP for file assests.

- using file assest builder
- able to upload files
- using URL structs instead of strings everywhere
2017-12-17 16:10:23 -08:00
chrislovecnm c0da5e7fbb fixing bazel 2017-12-17 17:03:58 -07:00
Kubernetes Submit Queue 0bfb273f72
Merge pull request #4095 from reactiveops/fix_3883
Automatic merge from submit-queue.

Adds permissions for ELB and NLB req'd by 1.9

Adds appropriate IAM permissions to Masters (in restrictive mode) for ELB and NLB.

Closes https://github.com/kubernetes/kops/issues/3883
2017-12-17 15:38:32 -08:00
Kubernetes Submit Queue 7768729cf2
Merge pull request #3832 from justinsb/cleanup_ssh
Automatic merge from submit-queue.

Refactor: separate out SSHCredentials from Keyset stores
2017-12-17 15:05:09 -08:00
chrislovecnm 7057aaf1bb Enabling the file assets
File assets and the SHA files are uploaded to the new location. Files
when are users uses s3 are upload public read only. The copyfile task
uses only the existing SHA value.

This PR include major refactoring of the use of URLs.  Strings are no
longer categnated, but converted into a URL struct and path.Join is
utlilized.

A new values.go file is included so that we can start refactoring more
code out of the "fi" package.

A
2017-12-17 15:26:57 -07:00
Kubernetes Submit Queue 0d07cc9f4c
Merge pull request #4046 from artsy/master
Automatic merge from submit-queue.

add imagePullProgressDeadline to kubelet config

Support the kubelet runtime flag `--image-pull-progress-deadline` by mapping the config key `imagePullProgressDeadline`

This supports extending the deadline to pull new images, as detailed in [this issue](https://github.com/openshift/origin/issues/13122)
2017-12-17 13:32:43 -08:00
Manuel de Brito Fontes 2e05dd17aa Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
Eric Hole 59bc52a05a Adds permissions for ELB and NLB req'd by 1.9 2017-12-17 13:03:54 -08:00
Isac Petruzzi 92abe3676f capitalize imagePullProgressDeadline in docstrings 2017-12-17 18:35:09 +01:00
Kubernetes Submit Queue b44d894813
Merge pull request #3860 from justinsb/batching
Automatic merge from submit-queue.

Copy dnsprovider into our code, implement route53 batching

Fixes #3121
2017-12-15 15:44:12 -08:00
Kubernetes Submit Queue ce7fe5142c
Merge pull request #3981 from justinsb/return_not_found_error
Automatic merge from submit-queue.

Return apierrors NotFound when object not found
2017-12-15 15:05:46 -08:00
Justin Santa Barbara 65aea59418 Return apierrors NotFound when object not found 2017-12-15 01:19:54 -05:00
Justin Santa Barbara 6ef414e040 validation: don't require subnet CIDRs on baremetal
They aren't needed!
2017-12-15 01:10:54 -05:00
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
Justin Santa Barbara f03cc5dbd9 Update dnsprovider imports to use our version 2017-12-13 20:43:01 -05:00
Justin Santa Barbara 509b83ac7a Refactor: separate out SSHCredentials from Keyset stores
We've done this in the API already, but we had a single CAStore
interface that did Keysets and SSHCredentials.  Separate out
SSHCredentials into SSHCredentialStore, and start using API objects as
our primary representation.
2017-12-13 20:16:59 -05: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
Isac Petruzzi 2dfa262b3b add imagePullProgressDeadline to kubelet config 2017-12-12 12:02:10 +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
Rodrigo Menezes 863d080011 Merge branch 'master' into additional_cidr 2017-11-21 00:50:45 -08:00
Rodrigo Menezes d7378fc10d Add additionalNetworkCIDRs to support VPCs with multiple CIDRs in AWS 2017-11-21 00:47:22 -08:00
Rohith 4816ed5e36 DNS Controller Optional
The current implementation requires 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-20 22:06:50 +00:00
zengchen1024 0949d597b7 build volume task 2017-11-20 11:52:19 +08:00
Kubernetes Submit Queue f14bd2c2c4
Merge pull request #3889 from ftoresan/autoscaling-policy-fix
Automatic merge from submit-queue.

Changing the prefix of the ResourceTag condition

The prefix was `ec2` and it was not working, changing it to `autoscaling` should do the trick. This should fix #3871
2017-11-19 14:06:05 -08:00
Justin Santa Barbara c7d3a53e48 upscale-delay flag in two more places
Same idea as in #3872
2017-11-18 17:03:59 -05:00
georgebuckerfield eab351c913 Add tests for ListRouteTables function 2017-11-18 12:34:39 +00:00
Fabricio Toresan d4eef657d6 Changing the prefix of the ResourceTag condition to match the one specified in the ASG documentation 2017-11-18 09:17:07 -02:00
georgebuckerfield df550ec2b5 Set the Shared field of RouteTable resources when listing 2017-11-17 17:27:16 +00:00
Kubernetes Submit Queue d8e2ce211a
Merge pull request #3709 from chrislovecnm/placehold-dns-ux-updates
Automatic merge from submit-queue.

Improving UX for placeholder IP Address

Before the `kops validate cluster` attempts to connect to the K8s API
endpoint, the code now checks to see if the API DNS Entry is the kops
placeholder IP Address 203.0.113.123.  It prints a message to the user
and err's.  There is a new init func in validate cluster that disables
CGO based DNS for Darwin OS.  Darwin does two things with kops
validates; it caches the IP address, and it does not return the
placeholder IP address.  We cannot use CGO base DNS with kops validate with OSX.
2017-11-17 02:24:23 -08:00
Caleb Gilmour 04ef7ee0a3 Version and validation updates for romana networking. 2017-11-16 23:37:04 +00:00
chrislovecnm c7ef856f92 Improving UX for kops validate cluster
Before the `kops validate cluster` attempts to connect to the K8s API
endpoint, the code now checks to see if the API DNS Entry is the kops
placeholder IP Address 203.0.113.123.  It prints a message to the user
and err's.  There is a new init func in validate cluster that disables
CGO based DNS for Darwin OS.  Darwin does two things with kops
validates; it caches the IP address, and it does not return the
placeholder IP address.  We cannot use CGO base DNS with kops validate.
2017-11-16 15:12:51 -07:00
Kubernetes Submit Queue e1ff22e125
Merge pull request #3874 from KashifSaadat/bootstrap-apiserver-encryption
Automatic merge from submit-queue.

Include encryptionConfig setting within userdata for masters.

When updating the kops `ClusterSpec.EncryptionConfig` setting, a `kops update cluster / kops rolling-update cluster` mentions no changes required, and so a forced rolling-update is required for the setting to be picked up.

Including this in bootstrapscript will add the setting to the user-data for the master nodes only (because it applies to the KubeAPIServer), marking them as requiring a rolling-update.
2017-11-16 09:04:17 -08:00
Kashif Saadat f0c3ed8965 Include encryptionConfig setting within userdata for masters. 2017-11-16 15:58:59 +00:00
David 38591d9659
Fix Autoscaling flag on Controller Manager Config
According to https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#support-for-cooldowndelay

The `HorizontalPodAutoscalerUpscaleDelay` flag value should be `horizontal-pod-autoscaler-upscale-delay` and not `horizontal-pod-autoscaler-downscale-delay`
2017-11-16 12:26:29 +00:00
chrislovecnm 6c2caedfc0 updating api docs 2017-11-14 16:07:50 -07:00
Kubernetes Submit Queue 17487a4853
Merge pull request #3820 from zengchen1024/add_openstack_cloud
Automatic merge from submit-queue.

add openstack cloud provider

Add an Openstack cloud provider. It does not implement all the interfaces of fi.Cloud, hence, can not create a cluster, but it can pass the work flow of creating cluster for the command like "kops create cluster --cloud openstack --zones nova -v 15 --target direct --yes myoscluster4.k8s.local"
Which issue this PR fixes: #3819
2017-11-13 22:19:23 -08:00
Kubernetes Submit Queue 83c54fb6dc
Merge pull request #3827 from chrislovecnm/openapi-updates
Automatic merge from submit-queue.

Updating API documentation

User data API values generatation
2017-11-13 21:12:47 -08:00
Kubernetes Submit Queue ef08265e56
Merge pull request #3847 from discordianfish/add-horizontal-pod-autoscaler-delay
Automatic merge from submit-queue.

Add HPA up/downscale delay

Still need to test these changes.
2017-11-13 17:55:05 -08:00
Johannes 'fish' Ziemke 917e9dec38 Add HPA up/downscale delay 2017-11-13 15:50:37 +01:00
zengchen1024 f9c98c3b4c add openstack cloud provider 2017-11-13 16:59:24 +08:00
Justin Santa Barbara 86d18808fe Update bazel build files 2017-11-12 22:37:47 -05:00
chrislovecnm cd37a85dcd Updating api documentation 2017-11-10 11:41:41 -07:00
Kubernetes Submit Queue d69e962fcd
Merge pull request #3805 from flugel-it/master
Automatic merge from submit-queue.

FeatureGates support in all the components

Adding --feature-gates for all the Kubernetes components.
2017-11-10 09:08:37 -08:00
Kubernetes Submit Queue f86367ac7d
Merge pull request #3815 from chrislovecnm/san-api-update
Automatic merge from submit-queue.

san api update

Missed api update.

/assign @geojaz @andrewsykim
2017-11-10 03:55:49 -08:00
Kubernetes Submit Queue e5ea6ba6a7
Merge pull request #3783 from georgebuckerfield/instancegroup-labels
Automatic merge from submit-queue.

Add a default NodeLabel with the InstanceGroup name

As requested in https://github.com/kubernetes/kops/issues/2999, this change just auto-populates new InstanceGroup specs with a default node label containing the name of the instance group. It would be really useful for those of us managing environments with multiple instance groups.

It allows an admin to easily view the instance groups using kubectl:
```
kubectl get nodes --label-columns kops.k8s.io/instancegroup
NAME                                           STATUS         AGE       VERSION   INSTANCEGROUP
ip-172-20-108-120.eu-west-1.compute.internal   Ready,node     3m        v1.7.4    xtra-large
ip-172-20-117-133.eu-west-1.compute.internal   Ready,master   14m       v1.7.4    master-eu-west-1c
ip-172-20-32-139.eu-west-1.compute.internal    Ready,master   14m       v1.7.4    master-eu-west-1a
ip-172-20-32-92.eu-west-1.compute.internal     Ready,node     12m       v1.7.4    nodes
ip-172-20-67-184.eu-west-1.compute.internal    Ready,master   13m       v1.7.4    master-eu-west-1b
```
2017-11-09 23:29:47 -08:00
Kubernetes Submit Queue ec5496520d
Merge pull request #3795 from KashifSaadat/iam-kube-router
Automatic merge from submit-queue.

Add Node IAM permissions to access kube-router key in S3.

Fixes #3792 

An additional S3 IAM permission is added to the nodes policy when `Networking.Kuberouter` is specified.
2017-11-09 22:41:59 -08:00
Rodrigo Menezes ef24cec62b Fixing naming convention and adding running API machinery. 2017-11-09 14:30:48 -08:00
chrislovecnm 6de1828e14 updating api reference docs 2017-11-09 14:32:57 -07:00
chrislovecnm 61cff4dfcf updating missed api machinery 2017-11-09 14:31:40 -07:00
Kashif Saadat 029d0c0393 Add Node IAM permissions to access kube-router key in S3. 2017-11-09 09:57:02 +00:00
Rodrigo Menezes 255305b8ef Let a user use the hostname or set a hostnameOverride when the cloud provider is aws 2017-11-08 23:59:21 -08:00
Rodrigo Menezes 3cfa67c3e6 Merge remote-tracking branch 'upstream/master' into extra_user-data 2017-11-08 22:20:54 -08:00
Kashif Saadat 43f193e6ea Bugfix for bootstrapscript repeatedly generating different content when HookSpecs have ExecContainerAction defined. 2017-11-07 18:17:26 +00:00
georgebuckerfield 8f60078d11 Move instance group node label functionality out of PopulateInstanceGroupSpec so that it's not mandatory 2017-11-07 11:25:37 +00:00
Rodrigo Menezes 1fe56a1603 Move user-data to IG spec 2017-11-06 23:25:37 -08:00
Justin Santa Barbara 7066368f5c
Merge pull request #2063 from pdh/additional-sans
Allows additional Subject Alternate Names
2017-11-06 22:51:52 -05:00
Justin Santa Barbara 9851b19aed Fix bad import 2017-11-06 17:22:15 -05:00
chrislovecnm d71f53d4b5 fixing panic with iam unit tests 2017-11-06 13:36:45 -07:00
Diego Woitasen eff369bb71 featureGates support in KubeAPIServerConfig, KubeControllerManagerConfig and KubeSchedulerConfig. 2017-11-06 16:16:24 -03:00
Justin Santa Barbara 132b428d64
Merge pull request #3776 from chrislovecnm/bazel-work
gazelle updates with new bazel version
2017-11-06 14:08:57 -05:00
Justin Santa Barbara 4aef832b82
Merge pull request #3778 from romana/additional-iam-perms
Add additional Describe permissions required for Romana CNI
2017-11-06 14:08:44 -05:00
Caleb Gilmour d2b8741455 Add additional Describe permissions required for Romana CNI 2017-11-06 09:31:09 +00:00
chrislovecnm 609e268a1d gazelle updates with new bazel version 2017-11-05 17:41:53 -07:00
chrislovecnm 9e2f4080b3 updating api documentation 2017-11-05 17:13:47 -07:00
Kubernetes Submit Queue 9c30c30ec0
Merge pull request #3658 from justinsb/rationalize_rollingupdate_timeouts
Automatic merge from submit-queue.

Rationalize timeouts for rolling-update
2017-11-05 13:11:21 -08:00
Diego Woitasen 4c388eb186 Merge branch 'master' of github.com:flugel-it/kops 2017-11-05 13:04:11 -03:00
Diego Woitasen 5509247488 featureGates support in KubeAPIServerConfig, KubeControllerManagerConfig and KubeSchedulerConfig. 2017-11-05 13:03:43 -03:00
chrislovecnm 9647b1d349 deprecated API values that are no longer used with kube-dns 2017-11-04 22:15:48 -06:00
Rodrigo Menezes 565afae2c6 Merge remote-tracking branch 'upstream/master' into extra_user-data 2017-11-04 17:06:43 -07:00
chrislovecnm 4c82a6d5d4 Fixing YAML and JSON output across multiple cli functions. Also
Added --dry-run for create_ig and create_cluster
2017-11-04 17:04:44 -06:00
Kubernetes Submit Queue 88984d4b47
Merge pull request #3764 from chrislovecnm/goimports-cleanup
Automatic merge from submit-queue.

goimports cleanup && basel files

This is a dry PR.  Only goimports updates and gazelle fixes.
2017-11-04 11:04:47 -07:00
Kubernetes Submit Queue 4d424a473f
Merge pull request #3700 from justinsb/dummy_change
Automatic merge from submit-queue.

Spelling fixes

Really checking whether e2e is working.
2017-11-04 10:16:05 -07:00
chrislovecnm 1e418c3e13 more goimport updates 2017-11-04 10:03:02 -06:00
Kubernetes Submit Queue f3affcb0d3
Merge pull request #3730 from iterion/add-ipip-to-kuberouter
Automatic merge from submit-queue.

Add node-to-master IPIP to kuberouter

Like Calico and Romana, Kube Router needs IPIP traffic from nodes to masters to be allowed. This adds that firewall rule for all clusters set up with Kube Router.

See:
https://github.com/cloudnativelabs/kube-router/issues/208
2017-11-03 08:40:20 -07:00
Kubernetes Submit Queue aadc2e1427
Merge pull request #3731 from gambol99/template_fix
Automatic merge from submit-queue.

Template Fixes

- fixing an issue in the way it handled inline yaml documents
- cleaning it up somewhat, the prior version was a little cryptic to read; it's easier to just split into docs, format if required and rejoin at the end.

Apologizes @justinsb ... the prior PR didn't handle YAML separators correctly; I've find it somewhat simpler by a split and join rather than using indexes and such
2017-11-03 08:10:23 -07:00
pdh fc6f33db24 Allows additional Subject Alternate Names 2017-11-02 10:26:03 -07:00
Rohith fad62c284f Template Fixes
- fixing an issue in the way it handled inline yaml documents
- cleaning it up somewhat, the prior version was a little cryptic to read; it's easier to just split into docs, format and rejoin at the end
2017-11-02 14:26:39 +00:00
chrislovecnm 8d1ee1fa16 updating files for goimports 2017-11-01 12:51:43 -06:00
Kubernetes Submit Queue 08c34b6eb4
Merge pull request #3184 from justinsb/test_does_not_change_tags
Automatic merge from submit-queue.

Fix shared subnet/vpc tags
2017-11-01 08:23:29 -07:00
Justin Santa Barbara fa419d9510 Add comment on purpose of kops keypair
Otherwise it's tricky to track down where it is used.
2017-10-30 23:49:19 -04:00
Rodrigo Menezes 58faa71d89 Merge remote-tracking branch 'origin/master' into extra_user-data 2017-10-30 20:44:00 -07:00
Kubernetes Submit Queue c1c1d6bbcc
Merge pull request #3732 from KashifSaadat/iam-roles-documentation
Automatic merge from submit-queue.

Update IAM roles documentation based on recent changes.

The [IAM Roles documentation](https://github.com/kubernetes/kops/blob/master/docs/iam_roles.md) has been updated to reflect recent hardening on the policies generated for Master & Compute nodes.

Fixes #3557.
2017-10-30 17:55:20 -07:00
Kashif Saadat 1dea528a0e Update IAM roles documentation based on recent changes. 2017-10-30 16:41:55 +00:00
Adam Sunderland fd8fe5ea18 Add node-to-master IPIP to kuberouter 2017-10-30 09:51:21 -05:00
Justin Santa Barbara b3e00c0dd1 GCE Dump: Include instance IPs
The challenge here is that we normally only get the instance url.  So we
have to do another call to GCE, but we also don't want to do one call
per instance.

Instead, we create a dump operation context object which we pass into the dump.
2017-10-29 23:22:40 -04:00
Kubernetes Submit Queue b02c3a269c
Merge pull request #3726 from justinsb/storage_acls
Automatic merge from submit-queue.

GCS: Use ACLs for GCE permissions

This needs less permissions, but also allows for more granular control over
access to files than whole-bucket permissions that IAM gives us.
2017-10-29 20:18:51 -07:00
Justin Santa Barbara b2bcba4a6d GCE: Use object-level permissions for files in GCS
This lets us configure cross-project permissions while ourselves needing
minimal permissions, but also gives us a nice hook for future lockdown
of object-level permissions.
2017-10-29 19:17:00 -04:00
Justin Santa Barbara 1f0601126c Refactor gce resources into pkg/resources/gce
Should be a no-op refactor
2017-10-29 18:37:23 -04:00
Kubernetes Submit Queue 322507ced3
Merge pull request #3720 from justinsb/toolbox_refactor_2
Automatic merge from submit-queue.

Move DeleteResources into pkg/resources/utils
2017-10-29 15:34:44 -07:00
Justin Santa Barbara d1ee8026ac GCE: Tasks for object & bucket level permissions
We also switch to setting a bucket-level ACL permission, as this
requires less permissions.
2017-10-29 18:08:08 -04:00
Justin Santa Barbara 66e74fac6a Rename pkg/resources/utils -> pkg/resources/ops
That seems to be what utils really is.
2017-10-29 16:32:48 -04:00
Kubernetes Submit Queue dd207dcd7c
Merge pull request #3719 from justinsb/tooldump_dump_instances
Automatic merge from submit-queue.

Refactor toolbox dump & dump structured instances
2017-10-29 10:25:43 -07:00
Justin Santa Barbara 1eb17ae6b9 Move DeleteResources into pkg/resources/utils 2017-10-29 12:26:07 -04:00
Kubernetes Submit Queue cc4d4c437b
Merge pull request #3692 from gambol99/audit_policy
Automatic merge from submit-queue.

Audit Policy File

The current implementation doesn't allow users to set the [advanced audit policy](https://v1-7.docs.kubernetes.io/docs/tasks/debug-application-cluster/audit/#advanced-audit) location. Note, the file contents can be pushed by a [FileAsset](https://v1-7.docs.kubernetes.io/docs/tasks/debug-application-cluster/audit/#advanced-audit) a sample given below .... Or do we want an explicit secret for this? .. 

```YAML
fileAssets:
- name: audit-policy.conf
  path: /srv/kubernetes/audit-policy.conf
  roles: [Master]
  content: |
    some_content
```
related to https://github.com/kubernetes/kops/issues/3672
2017-10-28 17:44:39 -07:00
Justin Santa Barbara a18363f059 Refactor toolbox dump & dump structured instances
This will enable log collection even if nodes don't register.

AWS: Dumps ids & addresses
GCE: Dumps names - addresses to follow
Others: Not yet!
2017-10-28 14:46:28 -04:00
Kubernetes Submit Queue 8885c6d77b
Merge pull request #3520 from chrislovecnm/api-docs-updates
Automatic merge from submit-queue.

API docs updates

- tweak to .gitignore
- updating api docs
- updated docs/apireference/README.md with how to generate docs

@justinsb any idea what happened to the hack script? `hack/make-gendocs.sh` did not work last time I tried to do this, but I updated the instructions in the `docs/apireference/README.md` for how to get it to work now.
2017-10-28 11:18:28 -07:00
Kubernetes Submit Queue 4162ae1e3b
Merge pull request #3712 from justinsb/storage_acls_minimal
Automatic merge from submit-queue.

GCE: Set up permissions for cross-project configurations
2017-10-28 07:15:19 -07:00
chrislovecnm b3a93bb2ee updating apireference docs 2017-10-28 07:00:24 -06:00
Justin Santa Barbara 15dedf8e79 Updates from running gazelle 2017-10-28 03:27:18 -04:00
Justin Santa Barbara dbbe3f373b GCE: Set up permissions for cross-project configurations
This ensures that the cluster can read the kops state store files, even
if the GCS bucket is in a different project.

We automatically set up an IAM access policy that grants access.
2017-10-28 03:24:18 -04:00
chrislovecnm 4711d1596e update to imports that apimachinery is doing now automatically 2017-10-27 14:28:48 -06:00
Kubernetes Submit Queue a4d6895472 Merge pull request #3707 from andrewsykim/droplet
Automatic merge from submit-queue.

Implement DigitalOcean Droplet FI Task

Implements cloudup fi tasks for DigitalOcean droplets. It makes a few assumptions to reduce the size of this PR, those will be addressed in future PRs. 

Also does some cleanup in the DigitalOcean `dns` package.
2017-10-27 08:30:57 -07:00