Page MenuHomePhabricator

Migrate airflow-wmde instance webserver to kubernetes
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
allow ingress traffic to the airflow instances coming from the DSE_KUBEPODS subnet

  • Create the k8s namespaces
  • Create the k8s user kubeconfigs
  • Create the wikimedia.org public subdomains
  • Create the OIDC/CAS configuration
  • create aiflow-wmde-ops ldap group
  • create admin_ng relevant config (in progress)
  • deploy admin_ng
  • Defining the webserver configuration (in progress)
  • Deploy the application
    • modify modules/profile/manifests/airflow.pp to support an optional secret secret_key and populate the webserver.secret_key config with it if found
    • 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
  • Enable ATS traffic redirection and caching

Event Timeline

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

[operations/puppet@production] airflow: add wmde namespace

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

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

[operations/deployment-charts@master] airflow: add airflow-wmde files

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

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

[operations/puppet@production] idp:Add aiflow-wmde to idp

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

Change #1088407 merged by Stevemunene:

[operations/puppet@production] idp:Add airflow-wmde to idp

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

BTullis renamed this task from Migrate airflow-wmde instance to kubernetes to Migrate airflow-wmde instance webserver to kubernetes.Nov 8 2024, 10:01 AM
BTullis updated the task description. (Show Details)

Change #1088404 merged by Stevemunene:

[operations/puppet@production] airflow: add wmde namespace

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

Adding the airflow-wmde-ops group as per https://phabricator.wikimedia.org/T375729#10228506

stevemunene@seaborgium:~$ ldapadd -f airflow-wmde-ops.ldif -D "cn=admin,dc=wikimedia,dc=org" -x -W -H "ldap://ldap-rw.eqiad.wikimedia.org:389"
Enter LDAP Password: 
adding new entry "cn=airflow-wmde-ops,ou=groups,dc=wikimedia,dc=org"

stevemunene@seaborgium:~$ ldapsearch -x cn=airflow-wmde-ops
# extended LDIF
#
# LDAPv3
# base <dc=wikimedia,dc=org> (default) with scope subtree
# filter: cn=airflow-wmde-ops
# requesting: ALL
#

# airflow-wmde-ops, groups, wikimedia.org
dn: cn=airflow-wmde-ops,ou=groups,dc=wikimedia,dc=org
cn: airflow-wmde-ops
objectClass: groupOfNames
member: uid=lucaswerkmeister-wmde,ou=people,dc=wikimedia,dc=org
member: uid=conniecc1,ou=people,dc=wikimedia,dc=org
member: uid=tarrow,ou=people,dc=wikimedia,dc=org
member: uid=itamar,ou=people,dc=wikimedia,dc=org
member: uid=awight,ou=people,dc=wikimedia,dc=org
member: uid=wmde-fisch,ou=people,dc=wikimedia,dc=org
member: uid=wmde-leszek,ou=people,dc=wikimedia,dc=org
member: uid=jakob,ou=people,dc=wikimedia,dc=org
member: uid=sihe,ou=people,dc=wikimedia,dc=org
member: uid=ollieshotton,ou=people,dc=wikimedia,dc=org
member: uid=muja,ou=people,dc=wikimedia,dc=org
member: uid=andrewtavis-wmde,ou=people,dc=wikimedia,dc=org
member: uid=kpayne,ou=people,dc=wikimedia,dc=org

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Change #1088405 merged by jenkins-bot:

[operations/deployment-charts@master] airflow: add airflow-wmde files

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

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

[operations/puppet@production] ATS: add mapping for airflow-wmde

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

Change #1090794 merged by Stevemunene:

[operations/puppet@production] ATS: add mapping for airflow-wmde

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

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

[operations/deployment-charts@master] fix values symlink and ops group

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

Change #1090838 merged by jenkins-bot:

[operations/deployment-charts@master] fix values symlink and ops group

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

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

[operations/deployment-charts@master] airflow-wmde: fix network policy

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

Change #1090840 merged by jenkins-bot:

[operations/deployment-charts@master] airflow-wmde: fix network policy

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