Created
October 26, 2019 05:27
-
-
Save parj/3056a0c129bed3488a15cac550d94f55 to your computer and use it in GitHub Desktop.
Sample deployment app
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
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