Commit Graph

3858 Commits

Author SHA1 Message Date
Lars Lehtonen b98e7f8b0f
Makefile govet depends on ${BINDATA_TARGETS} 2017-09-21 01:26:44 -07:00
Lars Lehtonen 4862f16fda
Makefile kops-install default
Makefile binary targets depend on SOURCES
2017-09-21 01:06:53 -07:00
Kubernetes Submit Queue c3379df06b Merge pull request #3409 from justinsb/clientset_secret_stores
Automatic merge from submit-queue. .

SecretStore and CAStore implementations backed by API
2017-09-20 23:33:48 -07:00
Kubernetes Submit Queue 54ca68326e Merge pull request #3202 from carlossg/patch-1
Automatic merge from submit-queue. .

Allow cluster-autoscaler to list/watch StatefulSets
2017-09-20 22:52:44 -07:00
Kubernetes Submit Queue 66b9838a8c Merge pull request #3215 from johnzeringue/specify-ssh-key-name
Automatic merge from submit-queue. .

Allow specifying a SSH key name for AWS

Related to #2309, this allows naming an existing key pair using the
cluster spec field `sshKeyName`.

In our use case, kops can now be used without providing the ability to
create EC2 key pairs.
2017-09-20 21:15:43 -07:00
Kubernetes Submit Queue a4171cd5aa Merge pull request #3400 from justinsb/makefile_use_hack_packages
Automatic merge from submit-queue. .

Makefile: use hack/.packages instead of go list
2017-09-20 20:39:15 -07:00
Kubernetes Submit Queue 80928386e8 Merge pull request #3404 from justinsb/gce_instancetemplate_matching
Automatic merge from submit-queue. .

GCE: Prevent instancetemplate spurious mismatches
2017-09-20 12:51:57 -07:00
Kubernetes Submit Queue 40797b73b5 Merge pull request #3417 from afalko/provisionedIopsDocFix
Automatic merge from submit-queue. .

Update provisioned iops doc example
2017-09-19 09:53:56 -07:00
Kubernetes Submit Queue ce4861e6c1 Merge pull request #3395 from andrewsykim/1796-fixed
Automatic merge from submit-queue. .

cluster-autoscaler should use dnsPolicy Default

Fixes: https://github.com/kubernetes/kops/issues/1796
2017-09-19 00:29:40 -07:00
Kubernetes Submit Queue e55947139e Merge pull request #3407 from justinsb/baremetal_further
Automatic merge from submit-queue. .

baremetal: more wiring up
2017-09-18 23:47:07 -07:00
Kubernetes Submit Queue 751855025b Merge pull request #3401 from justinsb/gce_change_detection_logic
Automatic merge from submit-queue. .

GCE: Fix logic around change detection

We need to ignore the Lifecycle field
2017-09-18 23:00:28 -07:00
Kubernetes Submit Queue 44ddf582d2 Merge pull request #3391 from justinsb/inttest_gce_create
Automatic merge from submit-queue. .

Create minimal mock GCECloud, first test
2017-09-18 22:17:58 -07:00
Andrey Falko a683ccd7af Update provisioned iops doc example 2017-09-18 19:01:30 -07:00
Kubernetes Submit Queue 817f94a241 Merge pull request #3396 from justinsb/gcs_different_error_messages
Automatic merge from submit-queue. .

GCS: Don't reuse same error message
2017-09-18 17:57:31 -07:00
Kubernetes Submit Queue 81896f70df Merge pull request #3402 from justinsb/makefile_kops_dev
Automatic merge from submit-queue. .

Makefile: build kops in dev-mode by default
2017-09-18 16:35:11 -07:00
Justin Santa Barbara d9a3c46b0b Clientset fixes per code review 2017-09-17 23:22:14 -04:00
Justin Santa Barbara 914fe68ee2 SecretStore and CAStore implementations backed by API
Not yet wired in
2017-09-17 23:01:13 -04:00
Justin Santa Barbara f157cccf85 baremetal: more wiring up
This lets us get further on a kops update
2017-09-17 15:17:57 -04:00
Justin Santa Barbara 487b83a8ca GCE: Prevent instancetemplate spurious mismatches
The lack of a Kind on the networkInterface was causing the
InstanceTemplate to be considered dirty.
2017-09-17 14:25:23 -04:00
Justin Santa Barbara 0e03fb61ad GCE: Ignore the Lifecycle field for change detection
Not copying the Lifecycle field causes spurious changes to be detected.
2017-09-17 14:11:36 -04:00
Justin Santa Barbara 8a02cf4065 Makefile: build kops in dev-mode by default
The default makefile target should do a standard go install of kops
so we don't break existing workflows.
2017-09-16 23:55:38 -04:00
Justin Santa Barbara 752a9b79f1 Makefile: use hack/.packages instead of go list
go list is slow, so we memoize the list of packages in hack/.packages.
2017-09-16 23:46:30 -04:00
Justin Santa Barbara d257e73b1c GCS: Don't reuse same error message
We had exactly the same error message for two code paths, which made
figuring out the cause harder.
2017-09-16 21:39:14 -04:00
andrewsykim 6c01c946e6 cluster-autoscaler should use dnsPolicy Default 2017-09-16 19:44:45 -04:00
Justin Santa Barbara 055f510c6f Create minimal mock GCECloud, first test
We test create cluster - we actually have an issue with the length of
the names on longer cluster names; first step is to get test coverage.
2017-09-16 11:02:30 -04:00
Kubernetes Submit Queue 0224883aba Merge pull request #3390 from alrs/makefile-redundant-logic
Automatic merge from submit-queue

Makefile remove redundant logic

The `verify-gendocs` target in the Makefile checks for the existence of the kops binary. By making the kops binary a dependency, this check need not exist.

I've silenced the commands in this target by prepending them with `@`, so all that the end-user sees is the echoed text, not the shell logic.
2017-09-15 17:51:31 -07:00
Lars Lehtonen 9e3b1d7f34
Makefile remove redundant logic 2017-09-15 14:36:37 -07:00
Kubernetes Submit Queue 70007f869d Merge pull request #3323 from KashifSaadat/bootstrap-include-file-assets
Automatic merge from submit-queue

Add file assets to node user data scripts, fingerprint fileAssets and hooks content.

**Changes made:**
- Include FileAssets in the bootstrapscript (user-data for all nodes), selectively dependent on the roles specified for each asset.
- Fingerprint the sections of the FileAssets (Content) and Hooks (Manifests, ExecContainer Commands) Specs within the bootstrap script to reduce size (otherwise this can very quickly hit the 16KB user data limit with AWS).
2017-09-15 10:44:17 -07:00
Kubernetes Submit Queue 52fe2ceab4 Merge pull request #3343 from KashifSaadat/iam-policy-revision
Automatic merge from submit-queue

Revision to IAM Policies created by Kops

Based off of the work done by @chrislovecnm in PR #2497.

This PR tightens down the IAM policies created for Master & Node instance groups. The Cluster Spec `IAMSpec.Legacy` flag is used to control application of stricter policy rules, which is defaulted to true for existing clusters (to limit potential regression impact), and false for new cluster creation.
2017-09-15 08:32:47 -07:00
Kubernetes Submit Queue 5958845992 Merge pull request #3380 from alrs/more-makefile
Automatic merge from submit-queue

More Makefile improvements
2017-09-15 07:50:07 -07:00
Kubernetes Submit Queue 7cecaa9079 Merge pull request #3379 from justinsb/honor_nodeport_range
Automatic merge from submit-queue

Honor ServiceNodePortRange when opening NodePort access
2017-09-15 07:09:30 -07:00
Kubernetes Submit Queue 7127babf16 Merge pull request #3381 from KashifSaadat/hooks-examples-typo
Automatic merge from submit-queue

Correct typo in Hooks Spec examples

Fixes #3357
2017-09-15 06:29:34 -07:00
Kashif Saadat 058fb1e93f Correct typo in Hooks Spec examples 2017-09-15 08:29:05 +01:00
chrislovecnm 2e6b7eedb9 Revision to IAM Policies created by Kops, and wrapped in Cluster Spec
IAM Legacy flag.
2017-09-15 08:05:23 +01:00
Lars Lehtonen 4e8e9eb6a2
protokube-builder use new channels target in Makefile 2017-09-14 22:01:29 -07:00
Lars Lehtonen 17045a5770
Makefile build channels in local subdirectory 2017-09-14 22:01:29 -07:00
Lars Lehtonen c694ac9946
Makefile UPLOAD variable 2017-09-14 22:01:29 -07:00
Lars Lehtonen 1f3bd6b8b8
Makefile use DIST and IMAGES variables 2017-09-14 22:01:29 -07:00
Lars Lehtonen b9eed7f82f
Makefile remove nodeup-gocode
Makefile nodeup-dist clean up permissions in container

Makefile install and all depend on ${NODEUP}
2017-09-14 22:01:29 -07:00
Justin Santa Barbara b29f3a7505 Honor ServiceNodePortRange when opening NodePort access 2017-09-15 00:39:41 -04:00
Kubernetes Submit Queue 5cb443d4a9 Merge pull request #3290 from romana/romana-networking-option
Automatic merge from submit-queue

Add romana to built-in CNI options

This PR adds `romana` as a networking option for kops.

It installs the latest "preview" release of Romana v2.0, which provides the expected features in terms of IP allocations and route configuration. Network policy features are being ported to 2.0 and will be in the final release. (We intend to submit a followup PR for kops as part of that rolling out that release.)

Note: in this setup, we're using the etcd cluster that kops deploys for k8s. This isn't ideal, but some possibilities (eg: StatefulSets) aren't practical for the CNI itself, and creating a parallel etcd cluster via manifests seemed to be a more-intrusive approach than using the existing one.
If this is a concern or problem, then I'm very open to discussing and implementing it based on your suggestions.

Also, some functionality is exclusive to AWS environments. Other cloud platforms are on Romana's roadmap but not developed yet. Let me know that restriction needs to be enforced in code or directly documented.
2017-09-14 20:43:05 -07:00
Kubernetes Submit Queue 3c84e67ebe Merge pull request #3369 from alrs/dephony-makefile
Automatic merge from submit-queue

Makefile improvements

Makefile separate install directive from kops

Makefile TESTABLE_PACKAGES variable to opt-out of testing

Makefile .build/local to keep development kops and go-bindata out of PATH

Makefile fewer PHONY targets that actually generate artifacts

Makefile prevent root-owned artifacts
2017-09-14 20:05:39 -07:00
Kubernetes Submit Queue 593f444297 Merge pull request #3359 from justinsb/delete_more_secrets
Automatic merge from submit-queue

Support for deleting tokens & keypairs
2017-09-14 19:30:08 -07:00
Kubernetes Submit Queue 168ed3fbfc Merge pull request #3364 from johanhubens/issue-3363
Automatic merge from submit-queue

Allow cluster autoscaler addon to read statefulsets
2017-09-14 18:52:38 -07:00
Kubernetes Submit Queue 4b5d6e4588 Merge pull request #3360 from qqshfox/patch-1
Automatic merge from submit-queue

Add a doc to describe how to use kops in AWS China

Closes #2933, closes #3282.

@wangycc, @mgyong, @hb404 This doc might be helpful for you guys to deploy a cluster in AWS China Region.

@chrislovecnm, @justinsb Please help to review. Thanks.
2017-09-14 18:17:46 -07:00
Kubernetes Submit Queue ec074bb473 Merge pull request #3346 from rushtehrani/update-autoscaling-policy
Automatic merge from submit-queue

add autoscaling:DescribeLaunchConfigurations permission

As of 0.6.1, Cluster Autoscaler supports [scaling node groups from/to 0](https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler/cloudprovider/aws#scaling-a-node-group-to-0), but requires the `autoscaling:DescribeLaunchConfigurations` permission.  

It'd be great to have this in kops since this permission needs to be re-added back to the master policy every time the cluster is updated.
2017-09-14 18:17:42 -07:00
Kubernetes Submit Queue a582fbf68f Merge pull request #3377 from RichardBronosky/patch-1
Automatic merge from submit-queue

small docs improvement

Make cmd1 populate the var for cmd2

Using `tee /dev/stderr` allows the user to still get output if they copy-pasta the first command. The other changes prepare the HZC variable so it can be used if they copy-pasta the second command.
2017-09-14 17:43:57 -07:00
Hanfei Shen e9b1648e9f Add a doc to describe how to use kops in AWS China
Closes #2933, #3282.
2017-09-15 08:26:44 +08:00
Kubernetes Submit Queue 893217fea0 Merge pull request #3333 from robinpercy/node-port-range
Automatic merge from submit-queue

Added ability to set --service-node-port-range

Addresses: #3052 and #3326 

From what I can tell, `--service-node-port-range` has been a valid option forever, so I haven't worried about k8s versions.

@justinsb @chrislovecnm let me know if any changes are required.
2017-09-14 17:11:15 -07:00
Kubernetes Submit Queue 159a21c4d0 Merge pull request #3372 from fvasco/patch-1
Automatic merge from submit-queue

switch monitoring-standalone to v1.7.0
2017-09-14 16:32:18 -07:00