Skip to content

Instantly share code, notes, and snippets.

@johanot
Last active October 26, 2018 15:00
Show Gist options
  • Select an option

  • Save johanot/77bfc45366d5648b6a920aaf5ab64a80 to your computer and use it in GitHub Desktop.

Select an option

Save johanot/77bfc45366d5648b6a920aaf5ab64a80 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }: {
deployment.healthChecks = {
cmd = ["${pkgs.kubectl}/bin/kubectl" "apply" "-f" "${pkgs.writeText "test-pod.yaml" (builtins.toJSON (testPod fqdn))}"];
description = "Run test pod on node: ${fqdn}.";
};
services.foo.enable = true;
# whatevs else
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment