Page MenuHomePhabricator

move micro site bienvenida.wikimedia.org to kubernetes
Closed, ResolvedPublic

Description

Tracking task for migration of https://bienvenida.wikimedia.org from Ganeti VMs to Kubernetes

Migration checklist (see complete steps here):

  • Copy repo to GitLab: https://gitlab.wikimedia.org/repos/sre/miscweb/bienvenida
  • Setup GitLab CI pipeline:
  • Deploy service to Kubernetes
  • switch traffic
  • move blackbox checks to profile::microsites::monitoring
  • move httpbb tests to test_miscweb-k8s.yaml
  • cleanup service in legacy systems
  • archive old repositories

Event Timeline

Jelto triaged this task as Medium priority.
Jelto moved this task from Incoming to Work in Progress on the Collaboration-Services board.
Dzahn renamed this task from move micro site bienvenida.wikipedia.org to kubernetes to move micro site bienvenida.wikimedia.org to kubernetes.May 19 2023, 4:44 PM
Dzahn awarded a token.
Dzahn updated the task description. (Show Details)

minor correction, it's in wikimedia.org, not wikipedia.org. edited ticket title/description

minor correction, it's in wikimedia.org, not wikipedia.org. edited ticket title/description

good catch! Thanks for that :)

Change 924898 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/deployment-charts@master] miscweb: add bienvenida release to miscweb staging

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

Change 924898 merged by jenkins-bot:

[operations/deployment-charts@master] miscweb: add bienvenida release to miscweb staging

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

Service bienvenida deployed to staging wikikube and curl looks good:

curl -I --resolve bienvenida.wikimedia.org:30443:$(dig +short k8s-ingress-staging.discovery.wmnet) https://bienvenida.wikimedia.org:30443 
HTTP/2 200 
date: Thu, 01 Jun 2023 08:43:28 GMT
server: istio-envoy
last-modified: Sun, 21 May 2023 09:02:50 GMT
accept-ranges: bytes
content-length: 4604
content-type: text/html

I'll proceed with deploying the service also to eqiad and codfw wikikube cluster.

Change 925682 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/deployment-charts@master] miscweb: add bienvenida release to eqiad and codfw

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

Change 923655 had a related patch set uploaded (by Jelto; author: Dzahn):

[operations/puppet@production] microsites: remove bienvenida.wikimedia.org, migrated to k8s

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

Change 925727 had a related patch set uploaded (by Jelto; author: Jelto):

[operations/puppet@production] trafficserver: switch bienvenida.wikimedia.org backend

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

Change 925682 merged by jenkins-bot:

[operations/deployment-charts@master] miscweb: add bienvenida release to eqiad and codfw

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

Service bienvenida deployed to codfw and eqiad wikikube and curl looks good:

curl -I --resolve bienvenida.wikimedia.org:30443:$(dig +short k8s-ingress-wikikube.svc.eqiad.wmnet) https://bienvenida.wikimedia.org:30443
HTTP/2 200 
date: Thu, 01 Jun 2023 12:54:58 GMT
server: istio-envoy
last-modified: Sun, 21 May 2023 09:02:50 GMT
accept-ranges: bytes
content-length: 4604
content-type: text/html

We can continue to switch the traffic.

Change 925727 merged by Dzahn:

[operations/puppet@production] trafficserver: switch bienvenida.wikimedia.org backend

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

Switched traffic! All looks good to me for https://bienvenida.wikimedia.org. Thanks for your work on this!

Do we need checkboxes for "move tests" and "adjust monitoring" ?

We can continue to switch the traffic.

done. I followed apache logs on miscweb1003. Before deploy I saw my hits for bienvenida, after deploy to cp4* they stopped there but site is up.

And this looks fine too:

[deploy1002:~] $ curl -I --resolve bienvenida.wikimedia.org:30443:$(dig +short k8s-ingress-wikikube.svc.eqiad.wmnet) https://bienvenida.wikimedia.org:30443
HTTP/2 200

Change 923655 merged by Jelto:

[operations/puppet@production] microsites: remove bienvenida.wikimedia.org, migrated to k8s

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

Jelto updated the task description. (Show Details)

Switched traffic! All looks good to me for https://bienvenida.wikimedia.org. Thanks for your work on this!

Do we need checkboxes for "move tests" and "adjust monitoring" ?

Thanks for switching the traffic! I've done the puppet code cleanup and added checkboxes for moving the httpbb tests and monitoring.

The last part is archive the gerrit project https://gerrit.wikimedia.org/r/plugins/gitiles/wikimedia/campaigns/eswiki-2018/. (Setting it read-only and put a [ARCHIVED], moved to https://gitlab.wikimedia.org/repos/sre/miscweb/bienvenida/ in the project description).

The last part is archive the gerrit project https://gerrit.wikimedia.org/r/plugins/gitiles/wikimedia/campaigns/eswiki-2018/. (Setting it read-only and put a [ARCHIVED], moved to https://gitlab.wikimedia.org/repos/sre/miscweb/bienvenida/ in the project description).

DONE!

Dzahn updated the task description. (Show Details)

Mentioned in SAL (#wikimedia-operations) [2023-06-21T18:08:20Z] <mutante> miscweb1003/miscweb2003 - rm -rf /srv/org/wikimedia/bienvenida T337047