You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Miscweb: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Dzahn
imported>Dzahn
(It was requested in {{phab|T281538}})
Line 1: Line 1:
This page will be about the new service miscweb on [[kubernetes]]. It will replace the legacy service miscweb running on [[Ganeti]] VMs in production.
This page is about the new service miscweb on [[kubernetes]].
 
It was requested in {{phab|T281538}} to replace the legacy service miscweb running on [[Ganeti]] VMs in production.


Also see: [[miscweb1002]], [[miscweb2002]]
Also see: [[miscweb1002]], [[miscweb2002]]


The first of the sites hosted on it that is moving over is bugzilla-static.
The first of the sites hosted on it that is moving over is [[Microsites#Bugzilla_Archive|static-bugzilla]].


----
----


== Where does the code live? ==
== Where does the code live? ==
The docker image is is built by the [[Deployment Pipeline]]/[[CI]] from the repo [https://gerrit.wikimedia.org/r/q/project:operations/container/miscweb operations/container/miscweb]. This is also where the actual content and webserver config can be found.
The [[helm]] charts for [[kubernetes]] are together with the other services in [https://gerrit.wikimedia.org/r/q/project:operations/deployment-charts operations/deployment-charts].


== How to deploy changes ==
== How to deploy changes ==


=== Staging ===
=== Staging ===
* ssh deploy1002.eqiad.wmnet
* [deploy1002:~] $ kube_env miscweb staging
* [deploy1002:~] $ helmfile -e staging diff
* [deploy1002:~] $ helmfile -e staging -i apply
And wait.. either it works after a little while or it will automatically revert after 5 minutes.


=== Production ===
=== Production ===
* ssh deploy1002.eqiad.wmnet
* [deploy1002:~] $ kube_env miscweb codfw
* [deploy1002:~] $ helmfile -e codfw diff
* [deploy1002:~] $ helmfile -e codfw -i apply
And wait.. either it works after a little while or it will automatically revert after 5 minutes.
* [deploy1002:~] $ kube_env miscweb eqiad
* [deploy1002:~] $ helmfile -e eqiad diff
* [deploy1002:~] $ helmfile -e eqiad -i apply
And wait.. either it works after a little while or it will automatically revert after 5 minutes.


== Service names ==
== Service names ==
Line 20: Line 43:


  miscweb.svc.codfw.wmnet has address 10.2.1.58
  miscweb.svc.codfw.wmnet has address 10.2.1.58
[[Category:Services]]

Revision as of 22:17, 29 October 2021

This page is about the new service miscweb on kubernetes.

It was requested in task T281538 to replace the legacy service miscweb running on Ganeti VMs in production.

Also see: miscweb1002, miscweb2002

The first of the sites hosted on it that is moving over is static-bugzilla.


Where does the code live?

The docker image is is built by the Deployment Pipeline/CI from the repo operations/container/miscweb. This is also where the actual content and webserver config can be found.

The helm charts for kubernetes are together with the other services in operations/deployment-charts.

How to deploy changes

Staging

  • ssh deploy1002.eqiad.wmnet
  • [deploy1002:~] $ kube_env miscweb staging
  • [deploy1002:~] $ helmfile -e staging diff
  • [deploy1002:~] $ helmfile -e staging -i apply

And wait.. either it works after a little while or it will automatically revert after 5 minutes.

Production

  • ssh deploy1002.eqiad.wmnet
  • [deploy1002:~] $ kube_env miscweb codfw
  • [deploy1002:~] $ helmfile -e codfw diff
  • [deploy1002:~] $ helmfile -e codfw -i apply

And wait.. either it works after a little while or it will automatically revert after 5 minutes.

  • [deploy1002:~] $ kube_env miscweb eqiad
  • [deploy1002:~] $ helmfile -e eqiad diff
  • [deploy1002:~] $ helmfile -e eqiad -i apply

And wait.. either it works after a little while or it will automatically revert after 5 minutes.

Service names

miscweb.svc.eqiad.wmnet has address 10.2.2.58
miscweb.svc.codfw.wmnet has address 10.2.1.58