{"id":18825329,"url":"https://github.com/grycap/ansible-role-kubernetes","last_synced_at":"2026-01-20T23:30:17.996Z","repository":{"id":19272150,"uuid":"79361987","full_name":"grycap/ansible-role-kubernetes","owner":"grycap","description":"Ansible role to install a Kubernetes cluster","archived":false,"fork":false,"pushed_at":"2025-02-03T08:27:44.000Z","size":964,"stargazers_count":42,"open_issues_count":8,"forks_count":38,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-02-03T09:33:58.725Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grycap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-18T16:52:46.000Z","updated_at":"2025-01-14T08:03:32.000Z","dependencies_parsed_at":"2023-12-19T11:58:37.611Z","dependency_job_id":"9231fe29-39f5-4dbc-8c1b-9b2352bebb5c","html_url":"https://github.com/grycap/ansible-role-kubernetes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grycap%2Fansible-role-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grycap","download_url":"https://codeload.github.com/grycap/ansible-role-kubernetes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239763665,"owners_count":19692800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T00:59:07.592Z","updated_at":"2026-01-20T23:30:17.924Z","avatar_url":"https://github.com/grycap.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nKubernetes Role\n=======================\n\nThis ansible role installs a [Kubernetes](https://kubernetes.io/) cluster.\n\nThis work is co-funded by the [EOSC-hub project](http://eosc-hub.eu/) (Horizon 2020) under Grant number 777536.\n\u003cimg src=\"https://wiki.eosc-hub.eu/download/attachments/1867786/eu%20logo.jpeg?version=1\u0026modificationDate=1459256840098\u0026api=v2\" height=\"24\"\u003e\n\u003cimg src=\"https://wiki.eosc-hub.eu/download/attachments/18973612/eosc-hub-web.png?version=1\u0026modificationDate=1516099993132\u0026api=v2\" height=\"24\"\u003e\n\nRole Variables\n----------------\n\nThe variables that can be passed to this role and a brief description about them are as follows.\n\n    # Version to install or latest (1.24 or higher)\n    kube_version: 1.24.17\n\t# Type of node front or wn\n\tkube_type_of_node: front\n\t# IP address or name of the Kube front node\n\tkube_server: \"{{ ansible_default_ipv4.address }}\"\n\t# Security Token\n\tkube_token: \"kube01.{{ lookup('password', '/tmp/tokenpass chars=ascii_lowercase,digits length=16') }}\"\n\t# Token TTL duration (0 do not expire)\n\tkube_token_ttl: 0\n\t# POD network cidr\n\tkube_pod_network_cidr: 10.244.0.0/16\n\t# Type of network to install: currently supported: flannel, kube-router, calico, weave\n\tkube_network: flannel\n\t# Kubelet extra args\n\tkubelet_extra_args: ''\n\t# Kube API server options\n\tkube_apiserver_options: []\n\t# Flag to set HELM to be installed\n\tkube_install_helm: true\n\t# Helm version\n\tkube_install_helm_version: \"v2.11.0\"\n\t# Deploy the Dashboard\n\tkube_deploy_dashboard: false\n\t# value to pass to the kubeadm init --apiserver-advertise-address option\n\tkube_api_server: 0.0.0.0\n\t# A set of git repos and paths to be applied in the cluster. Following this format:\n\t# kube_apply_repos: [{repo: \"https://github.com/kubernetes-incubator/metrics-server\", version: \"master\", path: \"deploy/1.8+/\"}]\n\tkube_apply_repos: []\n\t# Flag to set Metrics-Server to be installed\n\tkube_install_metrics: false\n\t# Flag to set the nginx ingress controller to be installed\n\tkube_install_ingress: false\n\t# Flag to set the kubeapps UI to be installed\n\tkube_install_kubeapps: false\n\t# KubeApps chart version to install (or latest)\n\tkube_kubeapps_chart_version: \"7.3.2\"\n\t# Extra options for the flannel plugin\n\tkube_flanneld_extra_args: [] \n\t# Enable to install and manage Certificates with Cert-manager\n\tkube_cert_manager: false\n\t# Public IP to use by the cert-manager (not needed if kube_public_dns_name is set)\n\tkube_cert_public_ip: \"{{ ansible_default_ipv4.address }}\"\n\t# Public DNS name to use in the dashboard tls certificate\n\tkube_public_dns_name: \"\"\n\t# Email to be used in the Let's Encrypt issuer\n\tkube_cert_user_email: jhondoe@server.com\n\t# Override default docker version\n\tkube_docker_version: \"\"\n\t# Options to add in the docker.json file\n\tkube_docker_options: {}\n\t# Install docker with pip\n\tkube_install_docker_pip\n\t# Command flags to use for launching k3s in the systemd service\n\tkube_k3_exec: \"\"\n\t# How to install K8s: kubeadm or k3s\n\tkube_install_method: kubeadm\n\t# Servers to install and configure ntp. If [] ntp will not be configured\n\tkube_ntp_servers: [ntp.upv.es, ntp.uv.es]\n\nExample Playbook\n----------------\n\nThis an example of how to install this role in the front-end node:\n\n    - hosts: server\n      roles:\n      - { role: 'grycap.kubernetes', kube_apiserver_options: [{option: \"--insecure-port\", value: \"8080\"}] }\n\nAnd in the WNs:\n\n    - hosts: wn\n      roles:\n      - { role: 'grycap.kubernetes', kube_type_of_node: 'wn', kube_server: '10.0.0.1' }\n\nContributing to the role\n========================\nIn order to keep the code clean, pushing changes to the master branch has been disabled.\nIf you want to contribute, you have to create a branch, upload your changes and then create a pull request.\nThanks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrycap%2Fansible-role-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrycap%2Fansible-role-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrycap%2Fansible-role-kubernetes/lists"}