Page MenuHomePhabricator

Migrate the airflow platform-engineering instance webserver to dse-k8s
Closed, ResolvedPublic

Description

After the migration of the airflow-analytics-test instance webserver to kubernetes, we are ready to begin the migration of the remaining airflow instance webservers to kubernetes following the guide on https://wikitech.wikimedia.org/wiki/Data_Platform/Systems/Airflow/Kubernetes#Migrating_an_existing_instance

This tracks the migration of the airflow platform-eng instance to dse-k8s

  • Create the k8s namespaces
  • Create the k8s user kubeconfigs
  • Create the wikimedia.org public subdomains
  • Create the OIDC/CAS configuration
  • add the secret key already found in /etc/helmfile-defaults/private/dse-k8s_services/airflow-analytics-test/dse-k8s-eqiad.yaml on the deployment secret to /srv/git/private/hieradata
  • add keytab to the puppet private repo
  • create aiflow-platform-engineering-ops ldap group
  • create admin_ng relevant config
  • deploy admin_ng
  • Defining the webserver configuration
  • Deploy the application
  • Enable ATS traffic redirection and caching

Event Timeline

BTullis renamed this task from Migrate the airflow platform-engineering instance to dse-k8s to Migrate the airflow platform-engineering instance webserver to dse-k8s.Nov 8 2024, 10:03 AM
BTullis updated the task description. (Show Details)
Gehel triaged this task as High priority.Nov 8 2024, 2:23 PM

Change #1091697 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] airflow-platform-eng: define kube namespace

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

Change #1091694 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] airflow-platform-eng: create user kubeconfigs

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

Change #1091698 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] airflow-platform-eng: register kube namespace in ceph csi / cloudnative pg tenants

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

Change #1091695 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] airflow-platform-eng: create OIDC config

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

Change #1091699 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/deployment-charts@master] airflow-platform-eng: define helmfile and values

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

Change #1091696 had a related patch set uploaded (by Brouberol; author: Brouberol):

[operations/puppet@production] airflow-platform-eng: create ATS mapping and caching config

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

brouberol@krb1001:~$ sudo kadmin.local addprinc -randkey analytics-platform-eng/airflow-platform-eng.discovery.wmnet@WIKIMEDIA
brouberol@krb1001:~$ sudo kadmin.local addprinc -randkey airflow/airflow-platform-eng.discovery.wmnet@WIKIMEDIA
brouberol@krb1001:~$ sudo kadmin.local addprinc -randkey HTTP/airflow-platform-eng.discovery.wmnet@WIKIMEDIA
brouberol@krb1001:~$ sudo kadmin.local ktadd -norandkey -k analytics-platform-eng.keytab analytics-platform-eng/airflow-platform-eng.discovery.wmnet airflow/airflow-platform-eng.discovery.wmnet@WIKIMEDIA HTTP/airflow-platform-eng.discovery.wmnet@WIKIMEDIA
Entry for principal analytics-platform-eng/airflow-platform-eng.discovery.wmnet with kvno 1, encryption type aes256-cts-hmac-sha1-96 added to keytab WRFILE:analytics-platform-eng.keytab.
Entry for principal airflow/airflow-platform-eng.discovery.wmnet@WIKIMEDIA with kvno 1, encryption type aes256-cts-hmac-sha1-96 added to keytab WRFILE:analytics-platform-eng.keytab.
Entry for principal HTTP/airflow-platform-eng.discovery.wmnet@WIKIMEDIA with kvno 1, encryption type aes256-cts-hmac-sha1-96 added to keytab WRFILE:analytics-platform-eng.keytab.

Change #1091694 merged by Brouberol:

[operations/puppet@production] airflow-platform-eng: create user kubeconfigs

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

Change #1091695 merged by Brouberol:

[operations/puppet@production] airflow-platform-eng: create OIDC config

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

Change #1091697 merged by jenkins-bot:

[operations/deployment-charts@master] airflow-platform-eng: define kube namespace

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

Change #1091698 merged by jenkins-bot:

[operations/deployment-charts@master] airflow-platform-eng: register kube namespace in ceph csi / cloudnative pg tenants

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

Change #1091699 merged by jenkins-bot:

[operations/deployment-charts@master] airflow-platform-eng: define helmfile and values

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

Change #1091696 merged by Brouberol:

[operations/puppet@production] airflow-platform-eng: create ATS mapping and caching config

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

Change #1092197 had a related patch set uploaded (by Stevemunene; author: Stevemunene):

[operations/deployment-charts@master] airflow-analytics-product: define namespace

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

Change #1092197 merged by jenkins-bot:

[operations/deployment-charts@master] airflow-analytics-product: define namespace

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

Change #1092785 had a related patch set uploaded (by Muehlenhoff; author: Muehlenhoff):

[labs/private@master] airflow_platform_eng: Add missing stub secret

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

Change #1092785 merged by Muehlenhoff:

[labs/private@master] airflow_platform_eng: Add missing stub secret

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