{"id":15992741,"url":"https://github.com/manics/kubernetes-runner-helm-test","last_synced_at":"2026-01-02T16:35:21.262Z","repository":{"id":146023238,"uuid":"127741898","full_name":"manics/kubernetes-runner-helm-test","owner":"manics","description":"TEMPORARY: Investigating gitlab continuous deployment","archived":false,"fork":false,"pushed_at":"2018-06-22T15:49:50.000Z","size":230,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T00:46:47.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smarty","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/manics.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":"2018-04-02T10:32:35.000Z","updated_at":"2022-02-06T16:06:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a350fce-d5e4-41fc-8f5b-9f92686fde3f","html_url":"https://github.com/manics/kubernetes-runner-helm-test","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/manics%2Fkubernetes-runner-helm-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fkubernetes-runner-helm-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fkubernetes-runner-helm-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fkubernetes-runner-helm-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manics","download_url":"https://codeload.github.com/manics/kubernetes-runner-helm-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713415,"owners_count":20335567,"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-08T06:40:46.510Z","updated_at":"2026-01-02T16:35:21.218Z","avatar_url":"https://github.com/manics.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test GitLab continuous deployment\n\nThis is a temporary repository for testing GitLab continuous deployment with GitHub.\n\n\n## Create a `CI/CD for external repo` project on GitLab\n\nhttps://docs.gitlab.com/ee/ci/ci_cd_for_external_repos/github_integration.html\n\nAll configuration and code changes should be done in the GitHub repository.\nThe GitLab repository is purely a mirror for integration with CI/CD.\n\n\n## Create a namespace, role, account and additional token for the Gitlab runner\n\nhttps://kubernetes.io/docs/admin/service-accounts-admin/\n\n    kubectl apply -f ./k8s-clusterrole/\n\nThis will give the GitLab runner almost full administrative access to the cluster.\n\n[`k8s-role`](./k8s-role/) contains a role to restrict access to just the `gitlab` namespace, but this will not work for deployment in this repository since they require multiple namespaces.\n\n\n## Install GitLab runner\n\nhttps://docs.gitlab.com/ee/install/kubernetes/gitlab_runner_chart.html#installing-gitlab-runner-using-the-helm-chart\n\nGo to the `Runners settings` tab under https://gitlab.com/USERNAME/REPOSITORY/settings/ci_cd.\nGet the Runner registration token from and set `runnerRegistrationToken` in gitlab-runner/helm-config.yaml to this value.\nThe gitlab runner requires additional configuration that is not supported by the chart so at present you must [checkout a fork/PR](https://gitlab.com/charts/charts.gitlab.io/merge_requests/120):\n\n    git clone --branch runner-environment https://gitlab.com/manics/charts.gitlab.io.git\n    helm install --namespace gitlab --name gitlab-runner charts.gitlab.io/charts/gitlab-runner/ -f gitlab-runner/helm-config.yaml\n\nIf the upstream chart is updated and released installation will be simpler:\n\n    helm repo add gitlab https://charts.gitlab.io\n    helm install --namespace gitlab --name gitlab-runner gitlab/gitlab-runner -f gitlab-runner/helm-config.yaml\n\nEnsure you `Disable shared Runners`.\nThis repo is used for deployments so shared GitLab runners cannot be used.\n\n**WARNING**: GitLab allows you to share runners across multiple projects.\nEnsure it is disabled since this runner has administrative permissions to manage the deployments so only fully trusted scripts should be run.\n\n\n## Configure secret variables for the deployment\n\nSetup Secret variables referenced in [`.gitlab-ci.yml`](.gitlab-ci.yml):\n- `SECRET_JUPYTERHUB_PROXY_TOKEN`\n- `SECRET_IDR_PASSWORD`\n- `SECRET_GITHUB_CLIENTID` (production-vae only)\n- `SECRET_GITHUB_CLIENTSECRET` (production-vae only)\n\n![GitLab secret variables](docs/gitlab-secret-variables.png)\n\n## Additional notes\n\nYou can add details of the Kubernetes cluster to Gitlab to get additional integration: https://gitlab.com/help/user/project/clusters/index#adding-an-existing-kubernetes-cluster.\nHowever this didn't work for me.\n\n## Known errors\n\nIf you see an error along the lines of\n\nError: UPGRADE FAILED: render error in \"jupyterhub/templates/proxy/deployment.yaml\": template: jupyterhub/templates/proxy/deployment.yaml:17:32: executing \"jupyterhub/templates/proxy/deployment.yaml\" at \u003cinclude (print $.Tem...\u003e: error calling include: template: jupyterhub/templates/hub/secret.yaml:7:19: executing \"jupyterhub/templates/hub/secret.yaml\" at \u003crequired \"Proxy toke...\u003e: error calling required: Proxy token must be a 32 byte random string generated with `openssl rand -hex 32`!\nerr: exit status 1\nERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1\n\nThis may be a race condition in Helm. Retry the job.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanics%2Fkubernetes-runner-helm-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanics%2Fkubernetes-runner-helm-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanics%2Fkubernetes-runner-helm-test/lists"}