Use tiller locally for Auto Devops
What does this MR do?
Rather than installing a long-lived tiller-deploy pod, which will require securing (e.g. with TLS), we can install the tiller binary locally have have the helm client connect to that local tiller.
The local tiller will run with local KUBECONFIG
settings.
Requires Helm 2.11.0 which is the first version to distribute the tiller binary in releases
What are the relevant issue numbers?
https://gitlab.com/gitlab-org/gitlab-ce/issues/51942
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides
Closes #51942 (closed)
Merge request reports
Activity
marked the checklist item Tests added for this feature/bug as completed
marked the checklist item Documentation created/updated as completed
marked the checklist item Changelog entry added, if necessary as completed
marked the checklist item Conforms to the code review guidelines as completed
marked the checklist item Conforms to the merge request performance guidelines as completed
marked the checklist item Conforms to the style guides as completed
marked the checklist item Conforms to the database guides as completed
1 Warning You’ve made some app changes, but didn’t add any tests.
That’s OK as long as you’re refactoring existing code,
but please consider adding any of the ~backstage, ~Documentation, QA labels.Generated by
DangerEdited by 🤖 GitLab Bot 🤖Local tiller works with helm hooks too ! https://gitlab.com/DylanGriffith/rails-auto-devops-migration-test/-/jobs/103560329
The
package-and-qa
job from pipeline https://gitlab.com/gitlab-org/gitlab-ce/pipelines/31730316 triggered https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/31731321 downstream.
Example output for local Tiller
Checking Tiller... 131 Tiller is listening on :44134 Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"} [debug] SERVER: ":44134" Kubernetes: &version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.7-gke.6", GitCommit:"9b635efce81582e1da13b35a7aa539c0ccb32987", GitTreeState:"clean", BuildDate:"2018-08-16T21:33:47Z", GoVersion:"go1.9.3b4", Compiler:"gc", Platform:"linux/amd64"} Server: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"} $ create_secret Create secret... $ deploy Release "production" has been upgraded. Happy Helming! LAST DEPLOYED: Mon Oct 1 23:27:42 2018 NAMESPACE: rails-auto-devops-migration-test-8604848 STATUS: DEPLOYED RESOURCES: ==> v1/PersistentVolumeClaim NAME AGE production-postgres 3d ==> v1/Service production-postgres 3d production-auto-deploy 3d ==> v1beta1/Deployment production-postgres 3d production 3d ==> v1beta1/Ingress production-auto-deploy 3d ==> v1/Pod(related) NAME READY STATUS RESTARTS AGE production-postgres-6b65d7f5b4-84g9p 1/1 Running 0 3d production-697bb9fb44-c8nfx 0/1 Terminating 0 1h production-c99994bc8-lj85k 0/1 Running 0 3s ==> v1/Secret NAME AGE production-postgres 3d NOTES: Application should be accessible at: http://dylangriffith-rails-auto-devops-migration-test.35.239.185.3.nip.io Waiting for rollout to finish: 0 of 1 updated replicas are available... deployment "production" successfully rolled out
@DylanGriffith Want to review before passing this on to a maintainer ?
package-and-qa
passes (exceptce:update
) which means running Auto Devops pipelines still works.Edited by Thong Kuahassigned to @DylanGriffith
mentioned in merge request !22025 (merged)
mentioned in issue #52083 (moved)
The
package-and-qa
job from pipeline https://gitlab.com/gitlab-org/gitlab-ce/pipelines/31739437 triggered https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/31762088 downstream.
assigned to @dzaporozhets
@dzaporozhets would you mind giving this a review and merge if you're happy.
@DylanGriffith makes sense, looks good.
mentioned in commit 49e08372
mentioned in issue #44597 (closed)
mentioned in issue gitlab-org/release/tasks#473 (closed)
mentioned in issue #58112 (moved)
mentioned in issue #58879 (closed)
mentioned in issue #55933 (moved)
added typefeature label
mentioned in issue #39114 (closed)
added devopsconfigure [DEPRECATED] label
added groupconfigure [DEPRECATED] label
added groupenvironments label and removed groupconfigure [DEPRECATED] label