A presentation at BazelCon 2019 in December 2019 in Sunnyvale, CA, USA by Steeve Morin
Bazel & Kubernetes: Develop like it’s production Steeve Morin - @steeve
ZENLY MAKES IT FUN & EASY TO KNOW WHAT YOUR FRIENDS AND FAMILY ARE UP TO
RULES_K8S KUBERNETES DAG DSL REGULAR BAZEL TARGETS ONE DAG TO RULE THEM ALL k8s_object( name = “api.k8s”, template = “deployment.yaml”, ) k8s_objects( name = “api”, objects = [ “:api.k8s”, “:db”, “:queue”, “:svc1”, ], ) k8s_objects( name = “svc1”, objects = [ “:svc1.k8s”, “:db”, “:queue”, “:svc2”, ], )
K3S: 5 LESS THAN K8S LIGHTWEIGHT K8S DISTRO RUNS IN DOCKER 😱 $ bazel run //:k3s RUNS LOCALLY GUI VIA derailed/k9s $ bazel run //:k9s
SOURCE > BUILD > DEPLOY $ bazel run //:api.apply ONE COMMAND BUILD + DEPLOY ALWAYS CORRECT SERVICES INIT WITH CODE DB SCHEMA
TESTING $ bazel test //… TEST BINARY AS K8S JOB SERVICE DAG AWARE SUCCESS / FAILURE 🙂 LOGS 🙂 TEST ARGUMENTS 🙁 FLAKINESS DETECTION 🙁
VPN & REMOTE CLUSTER SAME WORKFLOW DNS FORWARDING OPENVPN + QR CODE
THANK YOU Steeve Morin (@steeve)
View Bazel & Kubernetes: Develop like it’s production on Notist.
Dismiss
Develop like it’s production with Bazel, rules_k8s and k3s.
Run the Kubernetes cluster locally, apply a Bazel-controlled DAG of services, all with a single command line.