summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/tasks
AgeCommit message (Collapse)AuthorFilesLines
2022-04-22[ANSIBLE] Do not add kubernetes nodes host keys to known_hosts fileBartek Grzybowski1-8/+0
This operation is redundant and causes a warning on each ssh connection from infra host to any node. As per documentation keys should be set up prior to running installer with setup.yml playbook. If using cicdansible those are also set up automatically there. Change-Id: I4fae07f632b425321e95cff02370e6e7f2b5e66f Issue-ID: OOM-2964 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2021-02-10Fix kubeconfig file permissionsBartek Grzybowski1-1/+1
Kubeconfig file should not be world readable. Helm v3 prints relevant warning to stderr if it's (kubeconfig) mode is incorrect. Change-Id: I9d2b8618cd3e43a49345e96f6ed5169438a29cef Issue-ID: OOM-2665 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
2020-01-08Add static and dynamic kubelet config supportPetr Ospalý1-0/+11
Kubelet can be configured on startup now - just add new key/values in: kubelet-static-config.yml.j2 Also kubelet static (startup) configuration can be overriden later (dynamically) during its runtime - for more info read this: https://kubernetes.io/docs/tasks/administer-cluster/reconfigure-kubelet/ Issue-ID: OOM-2199 Change-Id: Ia4790a4dfc04f0caed695df7bfd343253bd95bc0 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-08-23Add configurable etcd storage featurePetr Ospalý1-0/+9
Plus the option to have etcd on tmpfs (volatile storage) for little bigger (maybe) speed (NOT FOR PRODUCTION DEPLOYMENT!). Issue-ID: OOM-2058 Change-Id: I0bbfc4fbae7f6b46e2fae49656437cd6748efd49 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com>
2019-06-03Add molecule tests for rke roleMichal Zegan2-0/+10
This change adds molecule tests for the rke role, and modifies the rke role itself to be more idempotent/to pass linter. Note that this molecule test case uses a separate role to install docker in containers, that runs docker daemon inside of them instead of using host docker. Issue-ID: OOM-1778 Change-Id: I875f3ff2ab961e5428acee5a02287a8d2d6e9969 Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-20Add kubernetes dashboardPetr Ospalý1-0/+10
Either run kubectl proxy, but you must setup routes or kubectl on some node (only infra has kubectl by default). Another option is connecting onto the node where the dashboard is exposed via NodePort. Instructions are here: https://github.com/kubernetes/dashboard/wiki/Accessing-dashboard (1.7.X and above) Change-Id: I5a28f458c0ae949278b1e6eaf6eb063d09f93fc0 Issue-ID: OOM-1778 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-17Add setup for kubectl and helmMichal Zegan1-0/+12
the kubeconfig is copied from the cluster config directory to ~/.kube/config. Also, the playbook runs kubectl and helm roles to install tools. Change-Id: I29ee98f6502bbb7923b1ae6812dd642ca206dbce Issue-ID: OOM-1778 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
2019-05-17Add support for RKE kubernetes implementationPetr Ospalý4-0/+64
Added a new playbook rke.yml and role rke which uses rancher RKE: https://github.com/rancher/rke It's an implementation of the kubernetes from rancher.com folks and it is an alternative to the official kubernetes tool: kubeadm. NOTE: Rancher has a notion of a 'control plane' which cannot run with etcd on all nodes in a multi-node setup. Control-plane node is the first kubernetes node from the inventory (as of now). Change-Id: I0bf669442a5183efa20d44fb1cac823e7ce54348 Issue-ID: OOM-1778 Signed-off-by: Petr Ospalý <p.ospaly@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>