Given on February 22, 2018 at the Downtown San Jose DevOps Meetup
View Slide
private final Meter requests = metrics.meter("requests");public void handleRequest(Request request, Response response) {requests.mark();// etc}
spec:containers:- name: livenessimage: k8s.gcr.io/busyboxargs:- /bin/sh- -c- touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600livenessProbe:exec:command:- cat- /tmp/healthyinitialDelaySeconds: 5periodSeconds: 5