- Dec 28, 2016
-
-
Bogdan Dobrelya authored
* Add restart for weave service unit * Reuse docker_bin_dir everythere * Limit systemd managed docker containers by CPU/RAM. Do not configure native systemd limits due to the lack of consensus in the kernel community requires out-of-tree kernel patches. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
Matthew Mosesohn authored
Admin certs only go to etcd nodes Only generate cert-data for nodes that need sync
-
- Dec 27, 2016
-
-
Matthew Mosesohn authored
-
Bogdan Dobrelya authored
Signed-off-by:
Bogdan Dobrelya <bogdando@mail.ru>
-
- Dec 22, 2016
-
-
Matthew Mosesohn authored
-
Matthew Mosesohn authored
ETCD doesn't need cert/key options set. It only requires peer cert options.
-
Spencer Smith authored
workaround case for etcdctl not yet being installed, only allow for return code of 0 (no error)
-
Matthew Mosesohn authored
Includes hooks for triggering calico, kubelet, and kube-apiserver restarts if etcd certs changed.
-
- Dec 19, 2016
-
-
Matthew Mosesohn authored
-
- Dec 15, 2016
-
-
Matthew Mosesohn authored
-
- Dec 09, 2016
-
-
Bogdan Dobrelya authored
In order to enable offline/intranet installation cases: * Move DNS/resolvconf configuration to preinstall role. Remove skip_dnsmasq_k8s var as not needed anymore. * Preconfigure DNS stack early, which may be the case when downloading artifacts from intranet repositories. Do not configure K8s DNS resolvers for hosts /etc/resolv.conf yet early (as they may be not existing). * Reconfigure K8s DNS resolvers for hosts only after kubedns/dnsmasq was set up and before K8s apps to be created. * Move docker install task to early stage as well and unbind it from the etcd role's specific install path. Fix external flannel dependency on docker role handlers. Also fix the docker restart handlers' steps ordering to match the expected sequence (the socket then the service). * Add default resolver fact, which is the cloud provider specific and remove hardcoded GCE resolver. * Reduce default ndots for hosts /etc/resolv.conf to 2. Multiple search domains combined with high ndots values lead to poor performance of DNS stack and make ansible workers to fail very often with the "Timeout (12s) waiting for privilege escalation prompt:" error. * Update docs. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
Bogdan Dobrelya authored
Add tags to allow more granular tasks filtering. Add generator script for MD formatted tags found. Add docs for tags how-to. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Nov 19, 2016
-
-
Dan Bode authored
in the etcd handler, the reload etcd action was called after ansible waits for etcd to be up, this means that the health checks which are called immediately after fail (resulting in the etcd role always failing and never finishing) This patch changes the order to move the 'wait for etcd up' resource after the 'reload etcd resource', ensuring that the service is up before the health check is called.
-
- Nov 18, 2016
-
-
Spencer Smith authored
-
- Nov 14, 2016
-
-
Matthew Mosesohn authored
-
- Nov 09, 2016
-
-
Matthew Mosesohn authored
-
Matthew Mosesohn authored
-
- Oct 21, 2016
-
-
Matthew Mosesohn authored
-
- Oct 20, 2016
-
-
Chad Swenson authored
Small fix. The shell module won't automatically resolve the path to the etcdctl binary, so i prefixed with {{ bin_dir }}/
-
- Sep 15, 2016
-
-
Bogdan Dobrelya authored
* Add the retry_stagger var to tweak push and retry time strategies. * Add large deployments related docs. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
Bogdan Dobrelya authored
Move version/repo vars to download role. Add container to download params, which overrides url/source_url, if enabled. Fix networking plugins download depending on kube_network_plugin. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Sep 13, 2016
-
-
Bogdan Dobrelya authored
Closes issue: https://github.com/kubespray/kargo/issues/479 Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Aug 29, 2016
-
-
Matthew Mosesohn authored
Fixes #450
-
Matthew Mosesohn authored
Fixes #447
-
- Aug 25, 2016
-
-
Bogdan Dobrelya authored
Shorten deployment time with: - Remove redundand roles if duplicated by a dependency and vice versa - When a member of k8s-cluster, always install docker as a dependency of the etcd role and drop the docker role from cluster.yaml. - Drop etcd and node role dependencies from master role as they are covered by the node role in k8s-cluster group as well. Copy defaults for master from node role. - Decouple master, node, secrets roles handlers and vars to be used w/o cross references. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Aug 15, 2016
-
-
Matthew Mosesohn authored
Fixes Ubuntu 14.04 deployment of etcd.
-
- Aug 02, 2016
-
-
Matthew Mosesohn authored
Creating the unit using default settings early on and then changing it during network_plugin section leads to too many docker restarts and duplicated code. Reversed Wants= dependence on docker.service so it does not restart docker when reloading systemd Consolidated all docker restart handlers.
-
Bogdan Dobrelya authored
* Add for docker system units: ExecReload=/bin/kill -s HUP $MAINPID Delegate=yes KillMode=process. * Add missed DOCKER_OPTIONS for calico/weave docker systemd unit. * Change Requires= to a less strict and non-faily Wants=, add missing Wants= for After=. * Align wants/after in a wat if Wants=foo, After= has foo as well. * Make wants/after docker.service to ask for the docker.socket as well. * Move "docker rm -f" commands from ExecStartPre= to ExecStopPost=. hooks to ensure non-destructive start attempts issued by Wants=. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Jul 29, 2016
-
-
Matthew Mosesohn authored
Changed Wants=docker.service to docker.socket Renamed handlers for reloading systemd to contain role in task name.
-
- Jul 27, 2016
-
-
Matthew Mosesohn authored
Only affects sys V OSes (Ubuntu 14.04) Fixes ##383
-
- Jul 26, 2016
-
-
Matthew Mosesohn authored
etcd facts are generated in kubernetes/preinstall, so etcd nodes need to be evaluated first before the rest of the deployment. Moved several directory facts from kubernetes/node to kubernetes/preinstall because they are not backward dependent.
-
- Jul 20, 2016
-
-
Matthew Mosesohn authored
Improved docker reload command to wait for etcd to be up before proceeding. Switched reload to run restart because it can't reload if it is not guaranteed to be in running state.
-
Bogdan Dobrelya authored
Move set_facts to the preinstall scope, so every role may see it. For example, network plugins to see the etcd_endpoint. Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Jul 19, 2016
-
-
Bogdan Dobrelya authored
* Enforce a etcd-proxy role to a k8s-cluster group members. This provides an HA layout for all of the k8s cluster internal clients. * Proxies to be run on each node in the group as a separate etcd instances with a readwrite proxy mode and listen the given endpoint, which is either the access_ip:2379 or the localhost:2379. * A notion for the 'kube_etcd_multiaccess' is: ignore endpoints and loadbalancers and use the etcd members IPs as a comma-separated list. Otherwise, clients shall use the local endpoint provided by a etcd-proxy instances on each etcd node. A Netwroking plugins always use that access mode. * Fix apiserver's etcd servers args to use the etcd_access_endpoint. * Fix networking plugins flannel/calico to use the etcd_endpoint. * Fix name env var for non masters to be set as well. * Fix etcd_client_url was not used anywhere and other etcd_* facts evaluation was duplicated in a few places. * Define proxy modes only in the env file, if not a master. Del an automatic proxy mode decisions for etcd nodes in init/unit scripts. * Use Wants= instead of Requires= as "This is the recommended way to hook start-up of one unit to the start-up of another unit" * Make apiserver/calico Wants= etcd-proxy to keep it always up Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com> Co-authored-by:
Matthew Mosesohn <mmosesohn@mirantis.com>
-
- Jul 15, 2016
-
-
Bogdan Dobrelya authored
See https://github.com/coreos/etcd/issues/4308 Signed-off-by:
Bogdan Dobrelya <bdobrelia@mirantis.com>
-
- Jul 14, 2016
-
-
Smana authored
-
- Jul 07, 2016
-
-
Matthew Mosesohn authored
Running etcd in Docker reduces the number of individual file downloads and services running on the host. Note: etcd container v3.0.1 moves bindir to /usr/local/bin Fixes: #298
-
- Jul 02, 2016
-
-
Smana authored
-
- Jun 28, 2016
-
-
Smana authored
-
- May 31, 2016
-
-
Evgeny L authored
* Set ETCD_INITIAL_CLUSTER_STATE from `new` to `existing`, because parameter `new` makes sense only on cluster assembly stage. * If cluster exists and current node is not a part of the cluster, add it with command `etcdctl add member name url`. Closes kubespray/kargo/#270
-