Commit Graph

1749 Commits

Author SHA1 Message Date
k8s-ci-robot 752c7bd96d
Merge pull request #4306 from justinsb/update_kopeio_networking
Bump kopeio-networking to 1.0.20180120
2018-01-21 12:45:25 -08:00
Justin Santa Barbara 54af8e41b9 Bump kopeio-networking to 1.0.20180120 2018-01-20 16:33:09 -05:00
Jeff Grafton dcb7c96b84 run make bazel-gazelle 2018-01-19 14:32:50 -08:00
k8s-ci-robot d8c6b25890
Merge pull request #4297 from blakebarnett/bdb/update_calico_cni_2-6-6
Upgrade to calico v2.6.6
2018-01-19 14:19:28 -08:00
Blake c78336fa99 Update bootstrap calico versions 2018-01-19 13:42:00 -08:00
k8s-ci-robot 77c21509b0
Merge pull request #4298 from blakebarnett/bdb/bazel_updates
bazel 0.9.0 running `make bazel-build` updates
2018-01-19 12:54:28 -08:00
Blake 0450d08c0b bazel 0.9.0 running `make bazel-build` updates 2018-01-18 13:26:27 -08:00
Blake 93fb66c223 Upgrade to calico v2.6.6 2018-01-18 13:23:56 -08:00
Kashif Saadat e315c350be Implement ability to update Load Balancer subnets 2018-01-17 11:57:29 +00:00
Otto Yiu e4427e9672 improve S3 url parsing for vfsPath to support more naming conventions 2018-01-12 16:07:18 -08:00
k8s-ci-robot 96268846c2
Merge pull request #4217 from justinsb/support_writeto_in_vfs_path
VFS: Support io.WriterTo interface
2018-01-09 12:42:14 -08:00
Justin Santa Barbara 6f6bafb65e VFS: Support io.WriterTo interface
Allows us to handle much bigger files (no need to buffer in-memory)
2018-01-08 22:34:27 -05:00
Justin Santa Barbara 7b04ede10e GCE: Don't set bucket-level permissions
We previously needed them to allow list operations; however we now use a
keyset.yaml file instead of listing keys.  That should be the sole use,
so we should no longer need this permission.

If not, we can re-enable the code easily.
2018-01-08 00:58:36 -05:00
Justin Santa Barbara 3b983dfabd gce: mounter asset has moved
The mounter asset is now available directly, no longer in
kubernetes-manifests.tar.gz
2018-01-07 17:07:54 -05:00
k8s-ci-robot 2f3f0548c2
Merge pull request #4154 from chrislovecnm/missed-lifecycle-elb
adding missed lifecycles in elb code
2018-01-05 12:14:12 -08:00
Justin Santa Barbara ec8db8b78c Initial implementation of bundle command
The bundle command will support enrollment of a machine via SSH.
2018-01-04 18:55:28 -05:00
k8s-ci-robot fcc904f468
Merge pull request #4170 from chrislovecnm/bazel-improvements
Improving bazel make targets, adding a target for kops cli, bumping go_rules version
2018-01-04 08:48:31 -08:00
chrislovecnm 6bc37d33ba Adding capability to handle tgz files as archive files 2018-01-02 13:04:26 -07:00
chrislovecnm 53565eedeb Adding CNI v0.6.0 which is required for Kubernetes 1.9 2018-01-02 13:04:25 -07:00
chrislovecnm 88baba38de fixing security lifecycle for additional security groups 2017-12-30 09:00:11 -07:00
Justin Santa Barbara 8c23031561 Add roundtrip tests for certs & private keys
Travis should cover all our supported go versions.
2017-12-29 21:18:29 -05:00
chrislovecnm 4dd3bb1dea Updating bazel BUILD files with new go_rules version 2017-12-29 15:03:14 -07:00
k8s-ci-robot 96bff2246b
Merge pull request #3840 from justinsb/avoid_list_for_keypairs_5
Implement mirroring for API CAStore
2017-12-27 16:12:36 -08:00
chrislovecnm 7f998802ee fixing lifecycle type for network in security phase 2017-12-27 13:47:45 -07:00
Albert c52472cfa8 Add support for cn-northwest-1. 2017-12-27 15:37:09 +08:00
Kubernetes Submit Queue e7443ca345
Merge pull request #3839 from justinsb/avoid_list_for_keypairs_4
Automatic merge from submit-queue.

Force nodeup to use the bundle

We disable fallback entirely for nodeup, so we can still share code, but
won't accidentally be using the wrong code path.

Builds on #3839
2017-12-22 09:51:58 -08:00
Kubernetes Submit Queue 9ca326391f
Merge pull request #4120 from KashifSaadat/protokube-custom
Automatic merge from submit-queue.

Fix null pointer issues when custom PROTOKUBE_IMAGE is specified.

When setting a custom protokube location via the environment variable `PROTOKUBE_IMAGE`, this appeared to not be getting set properly at the time of applying Cluster updates (via `kops update cluster ${KOPS_CLUSTER_NAME} --yes`), resulting in a runtime exception.

This PR resolves the above issue, so cluster updates are correctly applied with reference to a custom protokube image location (if provided).
2017-12-22 07:50:06 -08:00
Justin Santa Barbara ca6268b25b Implement mirroring for API CAStore
Makes the mirror code essentially identical.
2017-12-21 21:48:43 -05:00
Justin Santa Barbara 5cc5a936f9 Force nodeup to use the bundle
We disable fallback entirely for nodeup, so we can still share code, but
won't accidentally be using the wrong code path.
2017-12-21 16:06:11 -05:00
Justin Santa Barbara e981e708e4 Use bundles when loading keysets
This avoids the need to list directories, which is problematic on GCE.

It also makes for a more consistent experience; we can move nodeup to
use the bundle always, and we can move writing to the Mirror task, so
that VFS & kops-server are more similar.
2017-12-21 12:58:26 -05:00
Kubernetes Submit Queue 7d15b5be05
Merge pull request #3837 from justinsb/avoid_list_for_keypairs_2
Automatic merge from submit-queue.

Refactor VFS CA store to reuse keyset from clientset

This ensures the two behave more similarly, but also will help us parse a
serialized keyset.

Builds on #3836
2017-12-21 09:26:46 -08:00
Kashif Saadat 0b9a1116ad Fix null pointer issues when custom PROTOKUBE_IMAGE is specified. 2017-12-20 12:28:40 +00:00
Kubernetes Submit Queue 4f05a694d0
Merge pull request #4116 from bitfusionio/f1-instance-types
Automatic merge from submit-queue.

added instance types for f1 family
2017-12-20 04:15:18 -08:00
Justin Santa Barbara ad82cd24eb Refactor VFS CA store to reuse keyset from clientset
This ensures the two behave more similarly, but also will help us parse
a serialized keyset.
2017-12-20 00:54:47 -05:00
Justin Santa Barbara f3e68c954c Remove use of deprecated create-if-missing functions
Generally tightening up the interface to make it easier to remove list
operations.
2017-12-20 00:54:47 -05:00
Justin Santa Barbara 9e5c086c5b Remove use of deprecated create-if-missing functions
Generally tightening up the interface to make it easier to remove list
operations.
2017-12-20 00:52:18 -05:00
Peter Whitesell 7b10093082 added instance types for f1 family 2017-12-19 16:25:29 -06:00
Kubernetes Submit Queue e43ac18590
Merge pull request #3834 from justinsb/cleanup_ssh_3
Automatic merge from submit-queue.

Refactor: clean up SecretStore to not use KeystoreItem

More moving to use API objects, except in this case we eventually want to
deprecate SecretStore entirely.

Builds on #3833
2017-12-19 10:29:15 -08:00
Justin Santa Barbara 7f3d3544c4 Refactor: clean up SecretStore to not use KeystoreItem
More moving to use API objects, except in this case we eventually want
to deprecate SecretStore entirely.
2017-12-19 11:43:43 -05:00
Manuel de Brito Fontes cb9859719d Update ottoyiu/k8s-ec2-srcdst docker image 2017-12-19 09:46:09 -03:00
Kubernetes Submit Queue e88496a248
Merge pull request #4061 from meringu/create-subnets
Automatic merge from submit-queue.

Add --subnets and --utility-subnets to kops create cluster

This change adds two new options to `kops create cluster`

When specifying `--vpc`, `--subnets` can be specified as an unordered array of subnet ids. Kops will then look up the zones of the subnets to find which zone to add the subnet id to.

If `--topology private` is also specified, `--utility-subnets` can similarly be specified.

~If a zone was specified but a subnet wasn't given that matches the zone, then the subnet will be allocated a CIDR with the current behaviour.~ This case fails validation here 7bd0a6a703/pkg/apis/kops/validation/validation.go (L151)

I can add unit tests and docs changes if required, but I am keen to get feedback before I proceed much further.

I have only added support for AWS.

I have tested this by running a command similar to this:

```bash
kops create cluster \
  --zones=us-east-1a,us-east-1b,us-east-1c \
  --topology private \
  --master-zones=us-east-1a,us-east-1b,us-east-1c  \
  --vpc $vpc_id \
  --subnets subnet-111111,subnet-222222,subnet-333333 \
  --utility-subnets subnet-444444,subnet-555555,subnet-666666 \
  $cluster_hosted_zone_name
```

And the cluster spec was as expected.
2017-12-18 21:12:59 -08:00
Kubernetes Submit Queue 78b61a5b6e
Merge pull request #4106 from justinsb/fix_comment_onPhaseiam
Automatic merge from submit-queue.

Fix code comment on PhaseSecurity
2017-12-18 20:38:33 -08:00
Kubernetes Submit Queue ca0a720a7e
Merge pull request #3833 from justinsb/cleanup_ssh_2
Automatic merge from submit-queue.

Refactor CAStore to use API types

We now return KeySet objects


Builds on #3832
2017-12-18 20:08:41 -08:00
Justin Santa Barbara be9d15b565 Fix code comment on PhaseSecurity 2017-12-18 22:33:05 -05:00
Raúl Cuza cd442b3560
make it go to f
`aws ec2 describe-availability-zones` returns 1a-1f for my account. This change allows me to provision things in the 1f availability zone.
2017-12-18 10:05:41 -05:00
Kubernetes Submit Queue 15c7d61dfb
Merge pull request #3997 from aledbf/amazon-vpc-cni
Automatic merge from submit-queue.

Add support for Amazon VPC CNI plugin

TODO:
- [x] IAM perms so that the CNI provider only has perms for the nodes in the cluster
- [x] Cleanup of security groups
- [ ] Replace image aledbf/k8s-ec2-srcdst:v0.1.0-5 with the official after https://github.com/ottoyiu/k8s-ec2-srcdst/pull/5 and https://github.com/ottoyiu/k8s-ec2-srcdst/pull/6
2017-12-17 21:41:13 -08:00
Kubernetes Submit Queue ff857218df
Merge pull request #4098 from chrislovecnm/gazelle-updates
Automatic merge from submit-queue.

fixing bazel

man we need a ci test for this :(
2017-12-17 17:36:13 -08:00
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 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
Manuel de Brito Fontes 2e05dd17aa Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
Kubernetes Submit Queue 922a0d3ac6
Merge pull request #3924 from justinsb/remove_nodeup_templates
Automatic merge from submit-queue.

Remove nodeup templating
2017-12-16 09:58:09 -08: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 96ee92a4b3
Merge pull request #4063 from rajivm/fix-canal-hostport
Automatic merge from submit-queue.

Support for hostPort when using canal

Similar to: https://github.com/kubernetes/kops/pull/3206

Without this, we are unable to get `hostPort` working with `canal`. The same is true for `flannel`, but this does add support for plain flannel.
2017-12-15 07:00:22 -08:00
Kubernetes Submit Queue 794b7a12f4
Merge pull request #4075 from justinsb/assetstore_atomic_expand
Automatic merge from submit-queue.

assetstore: extract tar files to a temp directory
2017-12-15 06:09:19 -08:00
Kubernetes Submit Queue 56da7ed34e
Merge pull request #4081 from justinsb/files_npe
Automatic merge from submit-queue.

files task: fix potential nil pointer error
2017-12-15 03:47:04 -08:00
Justin Santa Barbara 6cedbbf456 Remove nodeup templating
As it is now unused
2017-12-15 01:20:34 -05:00
Justin Santa Barbara 78b84d6c2c apt-get: specify unattended installation
Otherwise we risk getting stuck on a prompt
2017-12-15 01:12:37 -05:00
Justin Santa Barbara 060d94e9e8 files task: fix potential nil pointer error
If the user didn't exist, we would panic with a nil pointer error
2017-12-15 01:12:20 -05:00
Justin Santa Barbara c198d3ed89 assetstore: extract tar files to a temp directory
This ensures that even if we are interrupted mid-expand, we won't leave
the system in an unexpected state.
2017-12-15 00:44:29 -05:00
Henry Muru Paenga afc1b58722 Tests for create cluster in shared vpc 2017-12-15 18:29:20 +13:00
Rajiv Makhijani 2c42970c24 Bump canal version for kops manifest tweaks 2017-12-14 14:42:37 -08:00
Kubernetes Submit Queue a19d90143f
Merge pull request #4062 from justinsb/bump_weave_for_212
Automatic merge from submit-queue.

Bump weave version in bootstrapchannelbuilder

2.1.3 upstream becomes 2.1.3-kops.1, so if we need to make our own
"packaging" changes, we can do 2.1.3-kops.2 etc.
2017-12-14 06:25:41 -08:00
Kubernetes Submit Queue 9487dd4102
Merge pull request #4064 from justinsb/bump_flannel_version_for_3952
Automatic merge from submit-queue.

Bump flannel packaging version
2017-12-14 05:25:42 -08:00
Kubernetes Submit Queue 8f271027a9
Merge pull request #4065 from justinsb/gazelle
Automatic merge from submit-queue.

Update gazelle
2017-12-14 01:25:41 -08:00
Kubernetes Submit Queue 3fc8ddd471
Merge pull request #3952 from mikesplain/fix_flannel_nonMasqueradeCIDR
Automatic merge from submit-queue.

Fix Flannel nonMasqueradeCIDR

Fixes https://github.com/kubernetes/kops/issues/3950

~~And looks like we forgot to bump the version in `bootstrapchannelbuilder.go`~~(moved to https://github.com/kubernetes/kops/pull/3953) (thanks @jkemp101)
2017-12-13 23:25:41 -08:00
Justin Santa Barbara a8a83f3ce9 Update gazelle 2017-12-14 01:31:28 -05:00
Kubernetes Submit Queue 291edf329a
Merge pull request #3944 from bboreham/weave-212
Automatic merge from submit-queue.

Update Weave Net to version 2.1.3

This version supports 'v1' NetworkPolicy semantics.

Also includes a feature to clear down data for deleted nodes, which is probably the most-requested fix.
2017-12-13 22:25:41 -08:00
Kubernetes Submit Queue f97f5bdc40
Merge pull request #4017 from zengchen1024/security_group_rule_task
Automatic merge from submit-queue.

Implement security group rule task

fix: #4015
2017-12-13 21:25:41 -08:00
Kubernetes Submit Queue fded8486f6
Merge pull request #4016 from zengchen1024/security_group_task
Automatic merge from submit-queue.

implement security group task

fix: #4015
2017-12-13 20:25:41 -08: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
Justin Santa Barbara 3e236283f3 Tag 1.8.0 2017-12-13 22:13:27 -05:00
Justin Santa Barbara e65d1b0608 Bump flannel packaging version
For #3952
2017-12-13 21:55:48 -05:00
Rajiv Makhijani 05f06bea5c Update canal configuration to support portmap plugin (for hostport) 2017-12-13 18:35:16 -08:00
Justin Santa Barbara 6f5036f0cd Bump weave version in bootstrapchannelbuilder
2.1.3 upstream becomes 2.1.3-kops.1, so if we need to make our own
"packaging" changes, we can do 2.1.3-kops.2 etc.
2017-12-13 21:29:20 -05: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
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
Kashif Saadat 4f15273d49 Downgrade Flannel in Canal deployment to v0.9.0 2017-12-12 11:09:23 +00:00
Peter Rifel 3da1bdc069 Don't report an InternetGateway rename when using shared IGWs
Adds test to confirm fixed behavior
2017-12-06 16:36:35 -08:00
zengchen1024 1880aa7fa5 Implement security group rule task 2017-12-06 17:56:09 +08:00
zengchen1024 3e2942a87e generate other methods 2017-12-06 17:39:04 +08:00
zengchen1024 431e7b1bbf implement security group task 2017-12-06 17:24:34 +08:00
zengchen1024 f2f4a1ebfa generate the other methods of Volume 2017-12-06 17:20:43 +08:00
Rodrigo Menezes 3942185698 Merge remote-tracking branch 'upstream/master' into additional_cidr 2017-12-04 12:53:20 -08:00
Bryan Boreham 1b9486a7af Bump to v2.1.3 2017-12-04 15:11:15 +00: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 5c1b3b2d24
Merge pull request #3990 from ripta/ripta/new-instance-types-nov2017
Automatic merge from submit-queue.

Add support for M5 and H1 instance families

This PR adds support for the new [M5 General Purpose](https://aws.amazon.com/blogs/aws/m5-the-next-generation-of-general-purpose-ec2-instances/) and [H1 Storage-optimized](https://aws.amazon.com/blogs/aws/new-h1-instances-fast-dense-storage-for-big-data-applications/) instance types that were announced at re:Invent 2017. The blog posts note that these instance types are available immediately.

`hack/verify-gofmt.sh` exits cleanly (go1.9.2 darwin), and I've _just_ signed the CLA. Let me know if I've missed any prereqs!
2017-12-02 11:27:52 -08:00
Ripta Pasay 2ed76b9f51 Add support for M5 and H1 instance families 2017-12-02 13:24:26 -05:00
Justin Santa Barbara f34d748f6b Provide better message if GCE network is in legacy mode 2017-12-02 02:43:51 -05:00
Justin Santa Barbara a09d2fd1fa Guard against nil pointers in tryResourceAsString
Issue #3943
2017-12-01 02:53:04 -05:00
Mike Splain 1417f9eebe Fix Flannel nonMasqueradeCIDR 2017-11-29 09:34:37 -05:00
Mike Splain 96aefac318 Fix flannel error on starting 2017-11-28 21:39:08 -05:00
Mike Splain a2aa1da816 Fix flannel version 2017-11-28 16:26:46 -05:00
chrislovecnm fc9caea827 updating goimports 2017-11-28 11:34:28 -07:00
Justin Santa Barbara b8b7287e4a Bump versions to 1.8.0-beta.2 2017-11-28 13:27:58 -05:00
Bryan Boreham f1c8d89e55 Update Weave Net to version 2.1.2
This version supports 'v1' NetworkPolicy semantics.
Also includes a feature to clear down data for deleted nodes.
2017-11-28 17:13:31 +00: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
Kubernetes Submit Queue 967ed4acf5
Merge pull request #3928 from justinsb/kopeio_auth
Automatic merge from submit-queue.

Update kopeio auth
2017-11-27 15:02:12 -08:00
Rodrigo Menezes f908dcb3bf Check and docs 2017-11-26 20:37:16 -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 d0944714f4 Update kopeio auth 2017-11-26 15:32:14 -05:00
Justin Santa Barbara e3c7f03aaa Avoid generating a CA keypair on-demand
Instead we must explicitly create it; this avoids races where we are
reading the private key and creating CA certs.

Issue #3875
2017-11-25 23:12:55 -05:00
Justin Santa Barbara b05faa0068 Set SleepDelay function in AWS
Works around nil SleepDelay problem: latest aws-sdk-go (in k8s 1.9 and
kops 1.8) has updated SleepDelay logic; fix is in
https://github.com/kubernetes/kubernetes/pull/55307 but that is only in
1.9.

Set the SleepDelay to work around the problem.
2017-11-22 16:50:19 -05:00
Kubernetes Submit Queue 8eac358795
Merge pull request #3869 from chrislovecnm/calico-2.6-update
Automatic merge from submit-queue.

Updating Calico manifests to Calico release 2.6.2

Renamed the k8s-1.8 manifest to a k8s-1.7. This is required because of config
change that occurs between k8s 1.6 and k8s 1.7. This refactor will also
be re-used when Calico Kubernetes data source support is added to kops.
Updated bootstrapchannelbuilder with the new Calico version numbers.

The diffs for the k8s-1.6 version is pretty rough, tried to make it cleaner, but nada.

FIXES: https://github.com/kubernetes/kops/issues/3866
FIXES: https://github.com/kubernetes/kops/issues/3867

Line: https://github.com/kubernetes/kops/compare/master...chrislovecnm:calico-2.6-update?expand=1#diff-891cbc61587adb202b66b7c9bc6896daR209  is why Calico would not start on k8s 1.6 - thanks @caseydavenport 

 **TODO**
Testing K8s versions

- [x] test 1.5
- [x] test 1.6
- [x] test 1.7
- [x] test 1.8

/cc @blakebarnett @itajaja
2017-11-22 10:20:04 -08:00
chrislovecnm 3067a21341 Updating Calico manifests to Calico release 2.6.2.
Renamed the k8s-1.8 manifest to a k8s-1.7. This is required because of config
change that occurs between k8s 1.6 and k8s 1.7. This refactor will also
be re-used when Calico Kubernetes data source support is added to kops.
Updated bootstrapchannelbuilder with the new Calico version numbers.
2017-11-22 09:45:21 -07: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
Kubernetes Submit Queue ae94d14e54
Merge pull request #3893 from zengchen1024/cinder_volume_task
Automatic merge from submit-queue.

Implement volume task for Openstack platform

Implement volume task to create volume for ETCD cluster.
Which issue this PR fixes: #3886
2017-11-21 15:00:13 -08:00
Kashif Saadat 79eef3cc6c Support replacing kops secrets via force flag 2017-11-21 11:47:03 +00: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
zengchen1024 f1d673f77e implement volume task 2017-11-20 09:42:55 +08:00
georgebuckerfield eab351c913 Add tests for ListRouteTables function 2017-11-18 12:34:39 +00:00
Caleb Gilmour 04ef7ee0a3 Version and validation updates for romana networking. 2017-11-16 23:37:04 +00:00
Tom Denham 9dfe9443c0
Bump all flannel versions to latest release - v0.9.1 2017-11-16 12:29:59 -07:00
Kubernetes Submit Queue a84f086544
Merge pull request #3851 from justinsb/calico_on_other_versions_also
Automatic merge from submit-queue.

Apply gossip dns changes to 1.8 calico version also
2017-11-14 02:06:45 -08:00
Justin Santa Barbara dedf88c52b Apply gossip dns changes to 1.8 calico version also 2017-11-14 03:14:15 -05:00
marshallbrekka 5aea1d2484 Mount /etc/hosts in calico containers for gossip based DNS. 2017-11-14 02:23:59 -05:00
Justin Santa Barbara 0ce39f26b4 Regenerate gazelle 2017-11-14 02:02:40 -05: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
Giacomo Tagliabue b7a16a28cc add version map 2017-11-13 17:52:35 -05:00
Giacomo Tagliabue 3719d15c6b update templates and bootstrapper 2017-11-13 17:11:10 -05:00
Giacomo Tagliabue af64c2894c update calico template 2017-11-13 17:11:10 -05:00
zengchen1024 76b9aebafb update hack/.package 2017-11-13 17:03:30 +08:00
zengchen1024 f9c98c3b4c add openstack cloud provider 2017-11-13 16:59:24 +08:00
Justin Santa Barbara 148a65e1ad Fix CNI CPU allocations
* Limit each CNI provider to 100m

* Remove CPU limits - they cause serious problems
(https://github.com/kubernetes/kubernetes/issues/51135), but this also
makes the CPU allocation less problematic.

* Bump versions and start introducing the `-kops.1` suffix preemptively.

* Upgrade flannel to 0.9.0 as it fixes a lot.
2017-11-13 01:28:40 -05:00
Kubernetes Submit Queue f1fddb5512
Merge pull request #3620 from murali-reddy/remove-beta-init-container
Automatic merge from submit-queue.

kube-router: remove beta annotation versions (deprectated in 1.8) of init container

kube-router: remove beta annotation versions (deprectated in 1.8) of init container and move init container to spec section
2017-11-10 10:08:38 -08:00
Kubernetes Submit Queue aab07e365b
Merge pull request #3794 from shamil/patch-2
Automatic merge from submit-queue.

Add support for C5 instance family

AWS [released](https://aws.amazon.com/blogs/aws/now-available-compute-intensive-c5-instances-for-amazon-ec2) 5th generation of Compute oriented EC2 series. This PR adds support for them.
2017-11-10 01:14:33 -08: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
Kubernetes Submit Queue 531d21018b
Merge pull request #3802 from KashifSaadat/canal-1.8-tolerations
Automatic merge from submit-queue.

Update tolerations in Canal spec so the pods can run on all nodes.
2017-11-08 12:06:56 -08:00
Kashif Saadat f7dbcf0978 Update tolerations so the pods can run on all nodes. 2017-11-08 17:06:49 +00:00
Rohith 260124d1d9 DNS Controller Watch Command line
- adding a fix to the building of the argument, as the double quote cause an yaml parsing error
  error building tasks: error remapping manifest addons/dns-controller.addons.k8s.io/pre-k8s-1.6.yaml: error parsing yaml: error converting YAML to JSON: yaml: line 37: did not find expected key
2017-11-08 15:00:39 +00:00
Alex Simenduev a99844ffb9 machine_types: go formatting 2017-11-08 12:20:53 +02:00
Alex Simenduev 304d7229d5
Add support for C5 instance family 2017-11-08 10:50:38 +02:00
Kashif Saadat 657a91729e Update Canal to use Calico v2.6.2. 2017-11-07 09:26:18 +00:00
Justin Santa Barbara 9b71713d68 Tag 1.8.0-beta.1 2017-11-06 23:24:51 -05: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
chrislovecnm 609e268a1d gazelle updates with new bazel version 2017-11-05 17:41:53 -07:00
chrislovecnm 5c300e6cb9 bazel updates 2017-11-04 20:55:38 -06:00
chrislovecnm 74b33ea6ff moving code that is not supported by windows 2017-11-04 20:50:19 -06:00
chrislovecnm 1e418c3e13 more goimport updates 2017-11-04 10:03:02 -06:00
pdh fc6f33db24 Allows additional Subject Alternate Names 2017-11-02 10:26:03 -07:00
chrislovecnm 4fd4bb8d0e subnet test not correct, not sure now 2017-11-01 13:48:12 -06:00