You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
Miscweb
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.
Since 2022-01-20 it serves production traffic for static-bugzilla.
Also see: miscweb1002, miscweb2002 for the legacy machines still serving other microsites.
Sites running on miscweb k8s
The first of the sites hosted on miscweb-k8s is static-bugzilla.
Since 2022-01-20 static-bugzilla.wikimedia.org is served from k8s.
The actual switch to the new backend was made here.
Other micro-sites are going to follow this quarter.
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.
Note that all the HTML content files are gzipped to reduce image size. If you want to edit HTML inside it you need to gunzip, edit and gzip, then upload to Gerrit.
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 (eqiad) miscweb.svc.codfw.wmnet has address 10.2.1.58 (codfw)
miscweb.discovery.wmnet has address 10.2.2.58 (DNS/Discovery)
LVS / discovery
https://config-master.wikimedia.org/pybal/eqiad/miscweb
https://config-master.wikimedia.org/pybal/codfw/miscweb
https://config-master.wikimedia.org/discovery/
How this service was made
Here I am trying to compile a table / list of all the changes made to get this service from scratch into WMF production, in chronological order of how they were merged.
# | action | link |
---|---|---|
1 | create phabricator request ticket | Example |
2 | request gerrit repo | Example |
3 | reserve port | Example |