Skip to content

Instantly share code, notes, and snippets.

@parj
Created October 26, 2019 05:27
Show Gist options
  • Save parj/3056a0c129bed3488a15cac550d94f55 to your computer and use it in GitHub Desktop.
Save parj/3056a0c129bed3488a15cac550d94f55 to your computer and use it in GitHub Desktop.
Sample deployment app
local serviceDeployment = import "service-deployment-ingress.jsonnet.template";
local samplespringbootapp() = serviceDeployment + {
serviceName:: "samplespringbootapp",
dockerImage:: "parjanya/samplespringbootapp:1.6-SNAPSHOT",
servicePort:: 9999,
url:: "/hello",
readinessProbe::
{
"httpGet": {
"path": "/hello/actuator/health",
"port": "container-port"
},
"initialDelaySeconds": 8,
"periodSeconds": 10
},
livenessProbe::
{
"httpGet": {
"path": "/hello/commitId",
"port": "container-port"
},
"initialDelaySeconds": 8,
"periodSeconds": 10
},
};
// Export the function as a constructor for shards
{
samplespringbootapp:: samplespringbootapp,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment