Commit Graph

443 Commits

Author SHA1 Message Date
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
chrislovecnm 609e268a1d gazelle updates with new bazel version 2017-11-05 17:41:53 -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
Manatsawin Hanmongkolchai a708919bf4 Generate scheduler policy by dynamic cluster addons 2017-10-27 08:56:07 +07:00
chrislovecnm 4179c76513 updates to generate go-bin-data 2017-10-25 19:41:47 -06:00
Mike Splain e000d21673 Add a v1.7.0 storage addon resource.
Fixes #3298
2017-10-23 22:11:28 -04:00
Kubernetes Submit Queue 760da7eeba Merge pull request #3637 from justinsb/bump_kopeio_networking
Automatic merge from submit-queue.

Bump kopeio networking to 20171015
2017-10-23 12:09:56 -07:00
Justin Santa Barbara 4bd997496d Grant kubelets system:node role in 1.8
This is an interim measure until we fully support the NodeAuthorizer and
dynamic kubelet bootstrapping.

Issue #3551
2017-10-23 00:34:24 -04:00
Justin Santa Barbara dfa89c096e Bump kopeio networking to 20171015 2017-10-20 23:12:15 -04:00
Kubernetes Submit Queue 3315d29bdb Merge pull request #3630 from wlan0/api
Automatic merge from submit-queue.

Add Cloud Controller Manager addon

This adds the CCM addon for the Kubernetes cluster. 

This is a follow-up PR to https://github.com/kubernetes/kops/pull/3408. 

cc @chrislovecnm @andrewsykim
2017-10-20 19:07:50 -07:00
wlan0 d3143ec3cc add Cloud Controller Manager addon 2017-10-19 12:33:44 -07:00
Kubernetes Submit Queue 1d5b2814d9 Merge pull request #3623 from KashifSaadat/canal-v2.5
Automatic merge from submit-queue.

Add Calico v2.5 support for Kubernetes v1.8+

Added support for Canal (Calico) v2.5.1, which is required to work with Kubernetes v1.8.0+.

Older versions of Calico relied on ThirdPartyResources API to store it's config data, however this is now fully deprecated in Kubernetes v1.8 and has moved over to CustomResourceDefinitions (CRD). Calico v2.5+ has been updated to use CRD, however there is a manual upgrade process involved to migrate the configuration data across: https://github.com/projectcalico/calico/blob/master/upgrade/v2.5/README.md
2017-10-16 19:51:08 -07:00
Bryan Boreham e2357f8568 Add critical-pod annotation and toleration for rescheduler
Background at
https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/

Note the extra toleration is not strictly necessary, because
rescheduler adds CriticalAddonsOnly with effect NoSchedule, so it's
covered by the existing toleration, but that isn't documented so going
by the book we add both.
2017-10-16 13:50:10 +00:00
Kashif Saadat 6d624c7ad5 Add Calico v2.5 support for Kubernetes v1.8+ 2017-10-16 12:23:53 +01:00
Kubernetes Submit Queue 2c2f9fd6cd Merge pull request #3632 from justinsb/kopeio_cricial
Automatic merge from submit-queue.

kopeio-vxlan: mark critical, remove cpu limit
2017-10-15 14:44:57 -07:00
Justin Santa Barbara 0d7e72e43c kopeio-vxlan: mark critical, remove cpu limit 2017-10-15 14:30:44 -04:00
Justin Santa Barbara a6ab7c3c61 GCE: Install correct storage class
We only want to install the AWS storage class on AWS, and on GCE we want
to install the GCE storage class.
2017-10-14 11:36:58 -04:00
Murali Reddy 2c7d85f480 Remove beta annotation versions (deprectated in 1.8) of init containers and move init
container to spec section
2017-10-13 02:29:36 +05:30
Bryan Boreham 88e001f88e Update to Weave Net 2.0.5
including a Weave Net template for Kubernetes 1.7 and above which adds
a volume-mount for the iptables lock file, which avoids collisions
between Weave components and kube-proxy that would result in a
half-configured Weave network.

This is only for version 1.7 and above because it requires the change
in https://github.com/kubernetes/kubernetes/issues/47212
2017-10-12 11:08:44 +00:00
Kubernetes Submit Queue 211dab152a Merge pull request #3522 from murali-reddy/3463-kube-router-rbac
Automatic merge from submit-queue.

Use system:kube-router User for clusterrole binding

Kube-router as it provides service proxy as well, it has a chicken-egg problem (can not
access api server till it can setup service proxy), so service account are not usable. certificate generated for kube-router has CN `system:kube-router`, so user  `system:kube-router` need to be given necessary RBAC permissions

Fixes #3463
2017-10-09 00:14:03 -07:00
Murali Reddy a43df55540 Certificate generated for kube-router has CN system:kube-router, so user
system:kube-router need to be given necessary RBAC permissions

Fixes #3463
2017-10-05 21:29:11 +05:30
Mike Splain 2195da0f15 Fix CVE for kube-dns pre k8s 1.6 2017-10-04 15:23:31 -04:00
Kubernetes Submit Queue 518e97d97b Merge pull request #3510 from justinsb/bazel
Automatic merge from submit-queue.

Initial bazel support

Builds on the 1.8 version bump

The "trick" is to strip the BUILD & BUILD.bazel files from the vendor-ed deps.

Will rebase after 1.8 version bump merges.
2017-10-03 01:19:27 -07:00
Mike Splain 538e351160 Fix silly typo from
6ea6e3aa3f (diff-d41e15155acd41a0ecf59ccd3d3309a3)
2017-10-02 15:12:52 -04:00
Justin Santa Barbara 0143be7c4f autogen: BUILD and BUILD.bazel 2017-10-02 14:27:21 -04:00
Mike Splain db995fc416 Update kube-dns to 1.14.5 for CVE-2017-14491 2017-10-02 12:14:54 -04:00
Kubernetes Submit Queue 3ddbf3e695 Merge pull request #3383 from haad/addon-external-dns
Automatic merge from submit-queue. .

Add external-dns as addon.

This superseeds route53mapper as it has multicloud support documentation and YAML taken from https://github.com/kubernetes-incubator/external-dns
2017-09-24 23:51:08 -07:00
Kubernetes Submit Queue b3f26f8cd0 Merge pull request #3206 from felipejfc/calico-portmap
Automatic merge from submit-queue. .

Support for using hostPort when using calico

For enabling hostPort we need to turn on portmap cni plugin.
In this PR I updated calico and calico-cni images to latest version which already includes the portmap binary, and then I only needed to modify the cni config file to enable it and change its extension from .conf to .conflist.

This is related to:
https://github.com/kubernetes/kops/issues/3132

I think we should do the same for kube-router, flannel and weave (are there any other cni plugin supported by kops?)
2017-09-22 13:08:41 -07:00
Kubernetes Submit Queue e0aa4e8bef Merge pull request #3405 from justinsb/remove_aws_gce_tag_options
Automatic merge from submit-queue. .

Remove unused GCE/AWS options
2017-09-21 22:24:54 -07:00
Kashif Saadat f1109dbf29 Support additional config options for Canal Networking 2017-09-20 15:44:02 +01:00
Justin Santa Barbara 17f0f44012 Remove unused GCE/AWS options
Another step closer to removing the tags
2017-09-17 14:52:34 -04:00
Adam Hamsik 2f89143e4f Bump feature flag version for external-dns addon. 2017-09-16 13:05:55 +02:00
Caleb Gilmour 79d331e590 Add support for Romana as a networking option 2017-09-13 22:48:18 +00:00
Justin Santa Barbara 15d6834113 Flannel: support choosing a backend type
We support udp, which has to the default for backwards-compatibility,
but also new clusters will now use vxlan.
2017-08-30 21:16:21 -04:00
Bradley cf1a907d0e Fixes #3317 allowing to spawn flannel on all nodes in the cluster 2017-08-30 14:58:01 +01:00
Kubernetes Submit Queue 1aef760d86 Merge pull request #3272 from KashifSaadat/canal-custom-endpoint-to-host-action
Automatic merge from submit-queue

Allow user defined endpoint to host action for Canal

Adds ability to define `Networking.Canal.DefaultEndpointToHostAction` in the Cluster Spec. This allows you to customise the behaviour of traffic routing from a pod to the host (after calico iptables chains have been processed). `ACCEPT` is the default value and is left as-is.

`If you want to allow some or all traffic from endpoint to host, set this parameter to “RETURN” or “ACCEPT”. Use “RETURN” if you have your own rules in the iptables “INPUT” chain; Calico will insert its rules at the top of that chain, then “RETURN” packets to the “INPUT” chain once it has completed processing workload endpoint egress policy.`
2017-08-28 02:31:00 -07:00
Kubernetes Submit Queue 908722ac94 Merge pull request #3284 from georgebuckerfield/refactor-apiserver-templates
Automatic merge from submit-queue

Refactor apiserver templates

Fixes #3247 by moving the apiserver configuration out of template files and into code.
2017-08-26 17:39:19 -07:00
Kashif Saadat d9e4a62994 Allow user defined endpoint to host action for Canal 2017-08-26 12:53:44 +01:00
georgebuckerfield 58960f39cd Move etcd config for apiserver into code, set cloud provider for Digital Ocean to external 2017-08-26 08:23:19 +01:00
georgebuckerfield ff7f60dc35 Initial work on moving apiserver templates into code 2017-08-26 00:32:28 +01:00
Murali Reddy 9b8f74d569 remove --cluster-cidr from manifest.
Kube-router was using --cluster-cidr flag to get the subnet allocated
for pod CIDR's. But now kube-router has the ability internally to infer
the CIDR allocated for the pod's by getting the information from
kubernetes API server node spec's
2017-08-25 01:21:51 +05:30
Kubernetes Submit Queue 2d7fb51c2a Merge pull request #3025 from chrislovecnm/mapping-and-uploading-kubernetes-assets
Automatic merge from submit-queue

inventory assets - mapping and uploading kubernetes containers
2017-08-22 19:15:31 -07:00
andrewsykim 0411ba270e Create cluster requirements for DigitalOcean 2017-08-22 09:01:19 -04:00
chrislovecnm 2afdb5ab2e mapping-and-uploading-kube-assets 2017-08-21 15:16:56 -06:00
Felipe Cavalcanti 73ac4ca809 support for using hostPort when using calico cni 2017-08-18 13:13:27 -03:00
Kubernetes Submit Queue 429004fdf1 Merge pull request #3162 from tmjd/update-calico-2-4-0
Automatic merge from submit-queue

Update to Calico 2.4.1

- Switch Calico images to be pulled from quay.io

Addresses #3161
2017-08-17 15:09:36 -07:00
Erik Stidham ec68c0c00b Update Canal to the latest
- Calico to v2.4.1
- Flannel to v0.8.0
- Update Calico RBAC
2017-08-11 17:00:49 -05:00
Erik Stidham 226e26f072 Update to Calico 2.4.1
- Switch Calico images to be pulled from quay.io
2017-08-11 08:56:03 -05:00
Derek VerLee ffa95b8112 Add support for cluster using http forward proxy 2017-08-07 14:30:42 -04:00
Prachetas Prabhu 8f13944ac3 Bumps calico versions to mitigate taint stripping issue 2017-08-04 21:23:23 -05:00
Prachetas Prabhu 32502ad54f Adds wider tolerations to Canal Daemonset to allow scheduling on nodes with strict taints 2017-08-04 21:23:23 -05:00
Igor Canadi 7323e5f26c added wider toleration to calico-node daemonset 2017-07-31 18:17:31 +00:00
BradErz e6d0aba9bf Updating flannel networking to use ClusterRole so its not broken when deploying with RBAC 2017-07-22 17:38:55 +01:00
Kubernetes Submit Queue 62d702a22b Merge pull request #2763 from justinsb/lifecycle
Automatic merge from submit-queue

Support for lifecycles
2017-07-21 09:59:00 -07:00
Justin Santa Barbara 8055fe506a Mark kops 1.7.0-beta.1 2017-07-19 22:53:31 -04:00
Justin Santa Barbara 3dfe48e5ae Wiring up lifecycle 2017-07-15 22:03:54 -04:00
Justin Santa Barbara 1d5c3fcf45 Dedent weave manifest, for easier diffing
Still some changes to order, but should be much easier to audit now.
2017-07-15 12:30:00 -04:00
Justin Santa Barbara 0044a323af Merge pull request #2829 from marccarre/weave-net-2.0.1
Update weave to 2.0.1
2017-07-15 12:23:55 -04:00
Justin Santa Barbara 9a8fcd64e4 Simplify how we build addon manifests, support image redirection 2017-07-08 18:33:00 -04:00
Justin Santa Barbara 8bde5317c1 Bump dns-controller & kops for 1.7.0-alpha.1 2017-07-07 00:57:10 -04:00
Chris Love 24c0bc19ed Merge pull request #2768 from ottoyiu/calico_cidr
Update calico to use the correct CIDR for pods
2017-07-06 14:29:18 -06:00
Chris Love 20535248b4 Merge pull request #2773 from justinsb/authn_integration
Initial support for authentication (kopeio)
2017-07-06 14:11:22 -06:00
Marc CARRE 77d7ad9f42 Update weave to 2.0.1 2017-07-04 15:16:17 +01:00
Justin Santa Barbara ea838efde6 Upgrade kube-dns for 1.7
A version bump from 1.14.1 -> 1.14.4; we don't update kube-dns for k8s <= 1.5
2017-06-30 10:14:24 -04:00
Otto Yiu 8674309565 Update calico to use the correct CIDR for pods
Currently, we are using .NonMasqueradeCIDR in the wrong fashion. We
should be using .KubeControllerManager.ClusterCIDR to prevent IP
collision with Service IPs.
2017-06-26 13:47:31 -07:00
Justin Santa Barbara 752150ef22 Initial support for authentication (kopeio)
Still experimental, so not doing a flag yet.
2017-06-20 00:15:39 -04:00
Justin Santa Barbara 8571924843 Bump dns-controller version for fixes 2017-06-19 14:16:36 -04:00
Chris Love f9f64e3fb3 Merge pull request #2760 from justinsb/weave_198
Update weave to 1.9.8
2017-06-16 09:42:34 -06:00
Justin Santa Barbara 8fb99a87e2 Merge pull request #2680 from murali-reddy/kube-router
add support for kube-router as CNI networking provider
2017-06-16 10:37:49 -04:00
Justin Santa Barbara f4cb670edc Update weave to 1.9.8
Includes the nodeport fixes
2017-06-16 00:08:37 -04:00
Jordan Jennings 767a8a6395 Update weave to use the correct CIDR for pods 2017-06-12 20:25:33 -04:00
Justin Santa Barbara d0213a5a0b Apply weave-NPC fix for NodeName != hostname
cf https://github.com/weaveworks/weave/pull/2996
2017-06-11 15:35:17 -04:00
Justin Santa Barbara 8afdfc3157 Update weave to 1.9.7
This includes the hairpin fix
2017-06-11 14:04:21 -04:00
Murali Reddy e872dbcb86 add support for kube-router as CNI networking provider
fixes #2606

Most part of the changes are similar to current supported CNI networking
provider. Kube-router also support IPVS bassed service proxy which can
be used as replacement for kube-proxy. So the manifest for kube-router
included with this patch enables kube-router to provide pod-to-pod
networking, IPVS based service proxy and ingress pod firewall.
2017-06-09 17:01:31 +05:30
Chris Love 0b7ed89cb9 Merge pull request #2539 from andreychernih/calico-critical
Mark calico-node pods as critical
2017-06-04 12:04:49 -07:00
Chris Love 96e490bef1 Merge pull request #2640 from ottoyiu/kops_srcdst
Add ability to set cross-subnet mode in Calico
2017-06-04 09:37:34 -07:00
Otto Yiu 3e281626a7 bump version of k8s-ec2-srcdst to v0.1.0 for kubernetes 1.6 support 2017-06-02 16:59:56 -07:00
Chris Love 8040c74f08 Merge pull request #2613 from jordanjennings/weave-networking-config
Make Weave MTU configurable and configure jumbo frame support for new clusters on AWS
2017-05-30 17:54:38 -06:00
Jordan Jennings 6213c519e1 Make Weave MTU configurable and set AWS default config for jumbo frames 2017-05-30 06:36:09 -04:00
Otto Yiu 2e1a024b9f Add ability to set cross-subnet mode in Calico
This gives the ability to a user to enable cross-subnet mode in Calico.
Also introduces a new addon that, full disclosure, I wrote.

[ottoyiu/k8s-ec2-srcdst](https://github.com/ottoyiu/k8s-ec2-srcdst)
2017-05-29 18:54:37 -07:00
Seth Pollack c0781e9869
add EnableExternalDNS feature flag 2017-05-28 19:20:06 -04:00
Otto Yiu cba3990adc change k8s 1.6 calico manifest ordering for creation of service account first
This fixes the behaviour described in #2529 which was fixed by #2590, by
avoiding the configure-calico job all together.
2017-05-25 18:10:43 -07:00
heschlie 63bd8762ce Updating Canal
- Updated manifests to the latest versions
- Added RBAC to k8s 1.6 manifest
2017-05-24 14:19:42 -07:00
Andrey Chernih c7168937a3 Mark calico-node pods as critical
When system is low on resources, it is possible that calico-node will be
evicted by kubernetes. That's what happened today in our cluster
bringing down all containers.
2017-05-23 12:09:19 -07:00
Justin Santa Barbara d9ba671097 Set hairpinMode for flannel
Fix #2601
2017-05-18 22:53:21 -04:00
Dan Osborne c3a7b671b8 replace calico ipip-configure job with node env 2017-05-18 14:28:14 -07:00
Alexander Brandstedt 9a1083e824 update to latest release of calico 2017-05-18 21:47:13 +02:00
Chris Love c6e334f1e5 Merge pull request #2544 from justinsb/add_critical_pod_annotations_kopeio
Add critical pod annotations to kopeio networking
2017-05-10 11:48:11 -06:00
Justin Santa Barbara 043f0aaa25 Add critical pod annotations to kopeio
Should prevent eviction, which would (best case) stop us discovering new
nodes.
2017-05-10 11:53:45 -04:00
Blake 056c76beda Also update pre-k8s-1.6 2017-05-09 12:00:56 -07:00
Blake 158253068b Update calico to 2.1.5 for k8s 1.6+ bugfixes 2017-05-09 11:48:50 -07:00
Justin Santa Barbara 81e8a90478 Tag 1.6.0-beta.1
Bumping dns-controller also to 1.6.1, for the gossip DNS support.
2017-05-02 10:25:33 -04:00
Chris Love b16b1c8b3e Merge pull request #2465 from justinsb/bump_canal_flannel_version
Bump version of flannel embedded in canal to 0.7.1
2017-04-29 21:18:42 -06:00
Justin Santa Barbara a950e0970f Bump version of flannel embedded in canal 2017-04-29 17:46:15 -04:00
Justin Santa Barbara ccee94ef72 Update flannel to 0.7.1
Includes some important fixes for taints in 1.6
2017-04-29 12:26:43 -04:00
Miao Luo c5519c0009 Add CoreDNS support into DNS controller addon image. 2017-04-20 23:33:21 -07:00
SandeepPissay 333e1aee40 Sample vsphere tasks added 2017-04-20 23:31:21 -07:00
Justin Santa Barbara cf51bd943b Fix weave daemonset labels to be backwards compatible
Otherwise the kops 1.5 -> kops 1.6 upgrade was failing with:

The DaemonSet "weave-net" is invalid: spec.template.metadata.labels:
Invalid value: {"name":"weave-net"}: `selector` does not match template
`labels`

Fix #2345
2017-04-13 03:27:42 -04:00
Justin Santa Barbara f7edd0b3f9 Merge pull request #2335 from justinsb/kopeionetworking_16_manifest
Update kopeio-networking
2017-04-11 00:52:34 -04:00