Page MenuHomePhabricator

Train-dev: Ability to deploy to k8s
Closed, ResolvedPublic3 Estimated Story Points

Description

As a release engineer, I need to be able to test the changes I make to our deployment tooling before using them to deploy to production. Due to the migration of Mediawiki to k8s, I need to be able to test deploying to Kubernetes.

Task: Add the ability to build and deploy to kubernetes to the train developer environment.

Acceptance criteria:

  • A production quality mediawiki image can be built in the train developer environment
  • A kubernetes cluster is created/running when starting the train developer environment
  • Helm is installed and can be used to deploy to the kubernetes cluster
  • Helmfile is installed and can be used to deploy to the kubernetes cluster
  • The deployment-charts repo is included in the train development environment

Event Timeline

Change 715290 had a related patch set uploaded (by Jeena Huneidi; author: Jeena Huneidi):

[mediawiki/tools/train-dev@master] WIP Adds kubernetes cluster

https://gerrit.wikimedia.org/r/715290

Change 715290 merged by Jeena Huneidi:

[mediawiki/tools/train-dev@master] Adds kubernetes cluster

https://gerrit.wikimedia.org/r/715290

jeena updated the task description. (Show Details)
jeena changed the task status from Open to In Progress.Sep 15 2021, 10:38 PM

Change 716060 had a related patch set uploaded (by Jeena Huneidi; author: Jeena Huneidi):

[mediawiki/tools/train-dev@master] Build mediawiki image in train-dev

https://gerrit.wikimedia.org/r/716060

Change 722954 had a related patch set uploaded (by Jeena Huneidi; author: Jeena Huneidi):

[mediawiki/tools/train-dev@master] Add helmfile to deploy container

https://gerrit.wikimedia.org/r/722954

Change 722954 merged by Ahmon Dancy:

[mediawiki/tools/train-dev@master] Add helmfile to deploy container

https://gerrit.wikimedia.org/r/722954

Change 716060 merged by Ahmon Dancy:

[mediawiki/tools/train-dev@master] Build mediawiki image in train-dev

https://gerrit.wikimedia.org/r/716060

There is still a bit of work to do here, such as adding the mw-stable helm repo, changing the name of our kubeconfig to match what it's called in production ("mwdebug"), and creating the mwdebug user in minikube to ensure we can use existing helmfile config to deploy to k8s. Alternatively we could create a separate helmfile for our train-dev env.

Change 726025 had a related patch set uploaded (by Jeena Huneidi; author: Jeena Huneidi):

[mediawiki/tools/train-dev@master] WIP: mw is deployable to k8s in traindev

https://gerrit.wikimedia.org/r/726025

Change 726025 merged by jenkins-bot:

[mediawiki/tools/train-dev@master] mw is deployable to k8s in traindev

https://gerrit.wikimedia.org/r/726025

jeena updated the task description. (Show Details)
jeena set Final Story Points to 30.