Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Commit

Permalink
Add deployment spec
Browse files Browse the repository at this point in the history
  • Loading branch information
cdupuis committed Jun 20, 2018
1 parent 409d1d2 commit da13296
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .atomist/kubernetes/deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"spec": {
"template": {
"spec": {
"containers": [
{
"env": [
{
"name": "NODE_ENV",
"valueFrom": {
"fieldRef": {
"fieldPath": "metadata.namespace"
}
}
},
{
"name": "ATOMIST_CONFIG",
"valueFrom": {
"secretKeyRef": {
"name": "atm-global",
"key": "config"
}
}
},
{
"name": "ATOMIST_CONFIG_PATH",
"value": "/opt/atm/atomist-config.json"
}
],
"livenessProbe": {
"httpGet": {
"path": "/health",
"port": "http",
"scheme": "HTTP"
},
"initialDelaySeconds": 20,
"timeoutSeconds": 3,
"periodSeconds": 20,
"successThreshold": 1,
"failureThreshold": 3
},
"readinessProbe": {
"httpGet": {
"path": "/health",
"port": "http",
"scheme": "HTTP"
},
"initialDelaySeconds": 20,
"timeoutSeconds": 3,
"periodSeconds": 20,
"successThreshold": 1,
"failureThreshold": 3
},
"resources": {
"limits": {
"cpu": "500m",
"memory": "512Mi"
},
"requests": {
"cpu": "100m",
"memory": "384Mi"
}
},
"volumeMounts": [
{
"name": "automation",
"mountPath": "/opt/atm",
"readOnly": true
}
]
}
],
"volumes": [
{
"name": "automation",
"secret": {
"secretName": "automation"
}
}
]
}
}
}
}

0 comments on commit da13296

Please sign in to comment.