Created
March 20, 2018 16:39
-
-
Save greggdonovan/8569e8734011273da35f8c7ad5ff3d0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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