{"id":17329822,"url":"https://github.com/fgimenez/kubana","last_synced_at":"2025-06-15T05:35:55.545Z","repository":{"id":151240190,"uuid":"77680455","full_name":"fgimenez/kubana","owner":"fgimenez","description":"Deploy k8s on openstack havana","archived":false,"fork":false,"pushed_at":"2017-01-11T09:47:00.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T05:43:35.850Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fgimenez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-12-30T10:46:59.000Z","updated_at":"2016-12-30T10:47:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"24473f7d-771e-4282-8ab5-037802b02345","html_url":"https://github.com/fgimenez/kubana","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fgimenez/kubana","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimenez%2Fkubana","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimenez%2Fkubana/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimenez%2Fkubana/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimenez%2Fkubana/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgimenez","download_url":"https://codeload.github.com/fgimenez/kubana/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgimenez%2Fkubana/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259927088,"owners_count":22933147,"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-10-15T14:49:32.097Z","updated_at":"2025-06-15T05:35:55.521Z","avatar_url":"https://github.com/fgimenez.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"kubana lets you deploy easily a kubernetes cluster over an openstack installation without neutron enabled (tested on the havana release). It is based on https://github.com/openstack/osops-tools-contrib. [terraform](https://www.terraform.io/) takes care of the infrastructure setup and [kubeadm](http://kubernetes.io/docs/getting-started-guides/kubeadm/) of the installation of the k8s services.\n\nFirst of all, a base image must be available on the openstack side to be used by the k8s nodes. Given the usual openstack access environment variables are present you can create it using [packer](https://www.packer.io/) from the `images` directory, executing:\n\n    $ packer build -var 'source_image_name=\u003cmy_source_image_name\u003e' k8s_base.json\n\nbeing `my_source_image_name` an image available on your openstack installation and suitable to be used with k8s (tested with ubuntu 16.04).\n\nFor the actual deplyment kubana uses a container with a prebuilt terraform version patched to play well with old openstack api responses. You should create a `terraform.tfvars` file with variables customized to your environment, for example:\n\n    floatingip_pool = \"my_floating_ip_pool\"\n    compute_count = 6\n    whitelist_network = \"aa.bb.cc.dd/ee\"\n\nWith that in place you can spin up the cluster with:\n\n    $ sudo docker run --rm -v ${PWD}:/app \\\n    -e OS_USERNAME=${OS_USERNAME} \\\n    -e OS_PASSWORD=${OS_PASSWORD} \\\n    -e OS_TENANT_NAME=${OS_TENANT_NAME} \\\n    -e OS_AUTH_URL=${OS_AUTH_URL} \\\n    -e OS_REGION_NAME=${OS_REGION_NAME} \\\n    fgimenez/terraform-kubana apply\n\nThe output from the execution let's you know how to access the controller node, something like:\n\n    kubernetes-controller = $ ssh -i ./dummy_keypair/cloud.key ubuntu@xx.xx.xx.xx\n\nFrom there you can copy the `/etc/kubernetes/admin.conf` file to your host on `~/.kube/config` to access the cluster with the `kubectl` cli tool.\n\nYou can teardown the cluster with:\n\n    $ sudo docker run --rm -v ${PWD}:/app \\\n    -e OS_USERNAME=${OS_USERNAME} \\\n    -e OS_PASSWORD=${OS_PASSWORD} \\\n    -e OS_TENANT_NAME=${OS_TENANT_NAME} \\\n    -e OS_AUTH_URL=${OS_AUTH_URL} \\\n    -e OS_REGION_NAME=${OS_REGION_NAME} \\\n    fgimenez/terraform-kubana destroy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgimenez%2Fkubana","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgimenez%2Fkubana","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgimenez%2Fkubana/lists"}