Commit Graph

152 Commits

Author SHA1 Message Date
Justin SB 4fe3db7faa
Don't share /etc/hosts when using etcd-manager
With etcd-manager the DNS names should only be used by the
etcd-manager pod itself, so we don't need to share /etc/hosts with the
host.

By not sharing we avoid:

(1) the temptation to address etcd directly
(2) problems of concurrent updates to /etc/hosts being hard from within a container (because locking is difficult across bind mounts)

Introducing with kubernetes 1.17 to avoid changing behavior of existing versions.
2020-01-12 11:56:14 -05:00
Xiaoyu Zhong d81566482b Alicloud: etcd-manager support 2019-11-28 10:00:08 +08:00
Justin SB 9108b69798
Update etcd-manager to 3.0.20191025
Primarily for DigitalOcean support

Changes:

* fix issues in pr#253
* Update rules-docker to 0.12
* [DO-7442] Fix logic for Digital Ocean volume tag
* Update release process to use shipbot
* Move to go modules
* Update golang to 1.13.3
* travis: Test newer bazel versions
* Fix unit tests
* Test everything, not just //test
2019-10-25 09:47:22 -04:00
Justin SB b6862103bb
Change default port for memberlist from 3997
We had a port collision on 3997; change the default memberlist ports
to avoid the collision (we haven't shipped a release with this in it).

Also create a go file so that we can use constants to keep track of
our port numbers, rather than magic values.
2019-10-14 07:26:27 -04:00
tanjunchen 279c429abd remove the unnecessary newline and unused vars 2019-10-08 22:43:10 +08:00
Kubernetes Prow Robot bbe979f56e
Merge pull request #7710 from justinsb/update_etcd_manager
Update etcd-manager with OpenStack fixes
2019-09-30 12:44:53 -07:00
Justin SB e1be7aeba1
Update etcd-manager with OpenStack fixes
etcd-manager changes:

* Use disk by id for mounting devices in OpenStack [zetaab](https://github.com/zetaab) [#253](https://github.com/kopeio/etcd-manager/pull/253)
2019-09-30 13:15:27 -04:00
Jesse Haka 4ccad007ce mountcerts -> usehostcerts 2019-09-30 11:36:32 +03:00
Jesse Haka 352bc1eaa2 Allow to use custom rootCAs 2019-09-30 11:35:58 +03:00
Kubernetes Prow Robot 070498ba2d
Merge pull request #7566 from srikiz/DO-7442-AddTagsForCreateVolumeRequest
[DO-7442] Digital Ocean add consistent volume and droplet tags for multi master feature
2019-09-16 08:22:38 -07:00
Srikanth 88850e2151 Additional review comments addressed, also reverted back to Replace instead of ReplaceAll 2019-09-12 15:31:55 +05:30
Srikanth a5cda6643c Address review comments 2019-09-12 10:38:48 +05:30
Srikanth 84da7d00ef Add tags for droplets and volumes 2019-09-12 00:27:12 +05:30
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Justin SB 3fbc906cbc
Create env-var helper function
Refactor to start to centralize the env-var configuration for system
components, also start to add test coverage so we can be sure we
haven't broken things!
2019-09-02 10:26:09 -07:00
Srikanth 704d32a87f Go Fmt code 2019-08-20 07:18:30 +05:30
Srikanth e4f4767ed9 Update documentation to remove the override flag 2019-08-19 23:46:09 +05:30
Srikanth 706c0e3777 Update model.go after rebase with master 2019-08-19 23:26:13 +05:30
Srikanth 2bfd3ff356 Update to use the latest etcdmanager image 2019-08-19 23:11:26 +05:30
Srikanth 6f71e27229 Update to etcdManager model to pass DO specific environment variables 2019-08-19 23:10:32 +05:30
Jesse Haka 1adaf0ccea update etcd-manager to 3.0.20190816 2019-08-16 16:54:37 +03:00
Jesse Haka 0b9a5fe2c9 add openstack env values for swift 2019-08-13 16:48:59 +03:00
Jesse Haka 0a1d85639d add env variables 2019-08-13 16:48:59 +03:00
Jesse Haka a7fc695ce2 add OpenStack etcd-manager support 2019-08-13 16:48:53 +03:00
Justin SB 62e8ebff8f
Bump etcd-manager to 3.0.20190801
Relnotes are at https://github.com/kopeio/etcd-manager/blob/master/docs/relnotes/3.0.20190801.md

Highlights:

* etcd-manager-ctl is now available in the image, and for download from github
* etcd 3.3.13 is included
* etcd-manager will now run a compatible version of etcd if it is available (for example, etcd 3.3.13 instead of 3.3.11), to better import backups or support migration
* listen-metrics-urls can now be specified and will be passed through to etcd
* improved docs around internals
2019-08-01 01:56:48 -04:00
Kubernetes Prow Robot 039cee170f
Merge pull request #7221 from srikiz/DO-7148-legacyetcdSupport
[Issue-7148] Legacyetcd support for Digital Ocean
2019-07-19 09:55:15 -07:00
Srikanth 63927250ba Initial changes to add DO models for etcd-manager
update template

Update notes for digital ocean

Update TTL to 60 seconds and version upgrade to 0.1.15 for DO Cloud Controller Manager

Update review comments

Format go code
2019-07-17 20:08:04 +05:30
Kubernetes Prow Robot dd6b0314fc
Merge pull request #6897 from vainu-arto/set-priority-for-static-pods
Set priority for static pods
2019-07-12 00:41:07 -07:00
Kashif Saadat 2b61ace49c goimports update 2019-07-03 16:43:20 +01:00
Austin Moore 00ad7316a4
Read egressProxy spec into etcdmanager 2019-06-05 15:59:19 -04:00
Justin SB b29426e2b4
etcd-manager: update to 3.0.20190516
Main fixes:

https://github.com/kopeio/etcd-manager/pull/208

https://github.com/kopeio/etcd-manager/pull/209

https://github.com/kopeio/etcd-manager/pull/210
2019-05-16 11:18:13 -07:00
Justin SB 7b858f7cfa
etcd-manager: Update to 3.0.20190513
In particular, we are picking up the fix for #6098.
2019-05-13 17:59:06 -07:00
Justin SB 8809b5aeaf
Update to etcd-manager 3.0.20190509
Includes the fixes for concurrent file writes
2019-05-09 22:58:32 -04:00
Arto Jantunen 238fdaf1c1 Give etcd pods system-cluster-critical priority
Again unlikely to matter since master nodes aren't expected to run out of
capacity, done mostly for completeness (all pods should usually have a
priority defined if the cluster is running with PodPriority enabled).
2019-05-09 16:03:08 +03:00
Justin SB 3e33ac7682
Change code from glog to klog
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog.  That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Justin Santa Barbara 4999f95c26 Update etcd-manager to 1.0.20190328
Significant changes:

* Support adoption of tls-enabled etcd databases (i.e. migration from
  legacy to etcd-manager when using https)
2019-03-28 07:23:18 -04:00
Justin SB 29445998e7
Bump etcd-manager / etcd-backup to 3.0.20190325
Picking up kopeio/etcd-manager#192, for #6562
2019-03-25 13:01:50 -04:00
Justin SB 31f408c978
Support etcd-manager in kops 1.12
In 1.12 (kops & kubenetes):

* We default etcd-manager on
* We default to etcd3
* We default to full TLS for etcd (client and peer)
* We stop allowing external access to etcd
2019-03-14 23:13:06 -04:00
Kashif Saadat 34b5b6c3ac Fix panic when using etcd-manager and resource requests are nil 2019-03-01 12:17:54 +00:00
Justin SB 8a22a257f1
Bump etcd-manager version to 3.0.20190224
Includes https://github.com/kopeio/etcd-manager/pull/190, fix for
symlinks as seen on GCE.
2019-02-24 15:15:25 -05:00
Eric Greer 89a5fa58a4 removig unecessary package after squashing and patching to current master 2019-02-21 18:12:42 -08:00
Eric Greer 31a4c40131 merge conflict resolution 2019-02-21 15:20:05 -08:00
Eric Greer 8362b1260e etcd memory requests can now be specified 2019-02-21 15:14:51 -08:00
Justin SB dd7533398d
Support etcd-manager v3, suitable for backporting
Add etcd-manager v3 in a way that we can safely backport.
2019-01-29 23:51:26 -05:00
Derek Lemon -T (delemon - AEROTEK INC at Cisco) 4f0169bb79 codegen 2019-01-16 09:30:40 -07:00
Justin SB 26bd75aecb
Bulk spelling fixes
Experimenting with my own spelling checker, these are the typos it caught.
2018-12-20 17:43:56 -05:00
Justin SB 4b3e66b347
Use hostPID: true with etcd-manager
Addresses issues with mounting inside a container with systemd
("Failed to add PIDs to scope's control group: Invalid argument")
2018-10-18 20:20:11 -07:00
Justin Santa Barbara 54c499fe9b Introduce field to specify whether we are using etcd-manager or legacy mode
Splitting this out from the bigger bundle PR
2018-10-01 15:36:24 -07:00
k8s-ci-robot 019ecdecae
Merge pull request #5335 from justinsb/gce_etcd_manager
etcd-manager: GCE support
2018-06-20 08:45:08 -07:00
Justin Santa Barbara 5120b913a5 Initial work for etcd-manager on GCE 2018-06-14 17:50:07 -04:00
Justin Santa Barbara 553e519a56 Set log-verbosity for etcd-manager 2018-06-14 17:40:06 -04:00
Justin Santa Barbara ba87c36f73 Support (optional) etcd-manager 2018-05-25 16:01:22 -04:00