Skip to content

Instantly share code, notes, and snippets.

@greggdonovan
Created March 20, 2018 16:39
Show Gist options
  • Select an option

  • Save greggdonovan/8569e8734011273da35f8c7ad5ff3d0c to your computer and use it in GitHub Desktop.

Select an option

Save greggdonovan/8569e8734011273da35f8c7ad5ff3d0c to your computer and use it in GitHub Desktop.
// Desired output:
// livenessProbe:
// httpGet:
// path: /
// port: http
// initialDelaySeconds: 10
local k = import 'k.libsonnet';
local container = k.extensions.v1beta1.deployment.mixin.spec.template.spec.containersType;
container.mixin.livenessProbe.withInitialDelaySeconds(10) +
container.mixin.livenessProbe.httpGet.withPath('/')
{
livenessProbe+: {
httpGet+: {
port+: 80,
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment