Page MenuHomePhabricator

Move k8s master to k8s-master.tools.wmflabs.org
Closed, ResolvedPublic

Description

Right now it is tools-k8s-master-01.tools.eqiad.wmflabs, which causes a bunch of problems:

  1. SPOF, hard to failover
  2. It uses the puppetmaster CA to sign certificates, which means anything communicating with it over SSL needs to be on tools-puppetmaster-01 (another SPOF!)

Steps to switch:

  1. Create a public IP + assign DNS for the k8s master
  2. Set up SSL certificates using *.tools.wmflabs.org so that the k8s master works properly
  3. Set hiera variable and hand-run puppet to make sure that all the kubelets and kube-proxies switch over properly
  4. Do a find + sed on all .kube/config files

Event Timeline

Restricted Application added subscribers: Zppix, Aklapper. · View Herald Transcript

Mentioned in SAL [2016-07-06T13:09:13Z] <yuvipanda> associated a floating IP with tools-k8s-master-01 for T139461

Change 297591 had a related patch set uploaded (by Yuvipanda):
tools: Provision star.tools.wmflabs.org cert for k8s master

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

Change 297595 had a related patch set uploaded (by Yuvipanda):
tools: Use provisioned cert instead of puppet cert

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

Change 297600 had a related patch set uploaded (by Yuvipanda):
tools: Don't specify CA explicitly for client config

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

Change 297611 had a related patch set uploaded (by Yuvipanda):
tools: Don't set CA explicitly for kube2proxy

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

Change 297591 merged by Yuvipanda:
tools: Provision star.tools.wmflabs.org cert for k8s master

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

Change 297600 merged by Yuvipanda:
tools: Don't specify CA explicitly for client config

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

Change 297595 merged by Yuvipanda:
tools: Use provisioned cert instead of puppet cert

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

Change 297611 merged by Yuvipanda:
tools: Don't set CA explicitly for kube2proxy

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