{"id":21258507,"url":"https://github.com/ubc/kubernetes-deploy","last_synced_at":"2025-10-19T18:23:42.768Z","repository":{"id":54524294,"uuid":"109895956","full_name":"ubc/kubernetes-deploy","owner":"ubc","description":"Docker image to be used for deploying on kubernetes in Gitlab","archived":false,"fork":false,"pushed_at":"2021-09-04T19:33:10.000Z","size":64,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-21T21:44:40.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/ubc.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}},"created_at":"2017-11-07T21:59:57.000Z","updated_at":"2021-09-04T19:27:13.000Z","dependencies_parsed_at":"2022-08-13T18:40:16.051Z","dependency_job_id":null,"html_url":"https://github.com/ubc/kubernetes-deploy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fkubernetes-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fkubernetes-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fkubernetes-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubc%2Fkubernetes-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubc","download_url":"https://codeload.github.com/ubc/kubernetes-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243695421,"owners_count":20332621,"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-21T04:09:11.124Z","updated_at":"2025-10-19T18:23:42.696Z","avatar_url":"https://github.com/ubc.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Kubernetes auto-deployments (EXPERIMENTAL)\n\nThis is repository that builds Docker Image with all scripts needed to\ndeploy to Kubernetes from GitLab CI.\n\nIt basically consist of two stages:\n1. Build stage where a Docker Image is built,\n2. Deploy stage where a previously built Docker Image is run on Kubernetes and\n   exposed on hostname.\n\n### Build stage\n\nThe build script does:\n1. Check if the repository has `Dockerfile`,\n2. If yes, use `docker build` to build Docker Image,\n3. If no, use [herokuish](https://github.com/gliderlabs/herokuish) to build\n   and package a buildpack based application,\n4. Login to GitLab Container Registry,\n5. Push build image to GitLab Container Registry.\n\n### Deploy stage\n\nThe deploy script does:\n1. Create a new namespace if does not exist already,\n2. Deploy an application with most recent Docker Image,\n3. Create or update ingress to expose the application under hostname.\n\n### Requirements\n\n1. GitLab Runner using Docker or Kubernetes executor with privileged mode enabled,\n2. Service account for existing Kubernetes cluster,\n3. DNS wildcard domain to host deployed applications.\n\n### Limitations\n\n1. Only public docker images can be deployed,\n2. There is no ability to pass environment variables to deployed application,\n3. Currently we do not have a way to watch for deployment status and make sure\n   that deployment did succeed,\n4. Currently we do not have a way to expose `mysql`, `postgres` or other database\n   services.\n\n### Examples\n\nYou can see existing working examples:\n1. [Ruby](https://gitlab.com/gitlab-examples/ruby-openshift-example/)\n\n### How to contribute?\n\nSimply fork this repository. As soon as you push your changes,\nthe new docker image with all scripts will be build.\nYou can then start using your own docker image hosted on your Container Registry.\n\n### How to use it?\n\nBasically, configure Kubernetes Service in your project settings and\ncopy-paste [this `.gitlab-ci.yml`](https://gitlab.com/gitlab-org/gitlab-ci-yml/blob/master/autodeploy/Kubernetes.gitlab-ci.yml).\n\n### License\n\nMIT, GitLab, 2016\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubc%2Fkubernetes-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubc%2Fkubernetes-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubc%2Fkubernetes-deploy/lists"}