Skip to content

20180503_talk_5

20180503_talk_5

Clusters as cattle

Provision k8s clusters

Example: Ansible + Kubeadm

Apps migration

Stack desc

Can not pin apps to specifuc lsuters for ever…

Stack
* Routing cluster (Countour + Envoy as daemonsets)
* Clusters 1 and 2 for App workloads

Demo

Prepare Migration
* Use tool ark: ark backup create NAME ...
* Spin-up a new cluster
* Apply backup with kubectl apply -f BACKUP_DIR/

Add cluster 2 to the Router backend:

ns: demo
name: app1
annotations:
- weight.app1-cluster1: 100
- weight.app1-cluster2: 0
- weighted_cluster: True
...

OR : https://github.com/heptio/gimbal