Skip to content

Instantly share code, notes, and snippets.

@mjudeikis
Created September 18, 2016 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjudeikis/79dbf69995102b674fc77851feea4ba5 to your computer and use it in GitHub Desktop.
Save mjudeikis/79dbf69995102b674fc77851feea4ba5 to your computer and use it in GitHub Desktop.
DC example
{
"kind":"DeploymentConfig",
"apiVersion":"v1",
"metadata":{
"name":"gotest",
"creationTimestamp":null
},
"spec":{
"strategy":{
"type":"Rolling",
"rollingParams":{
"updatePeriodSeconds":1,
"intervalSeconds":1,
"timeoutSeconds":120
},
"resources":{
}
},
"replicas":1,
"selector":{
"name":"gotest"
},
"template":{
"metadata":{
"creationTimestamp":null,
"labels":{
"name":"gotest"
}
},
"spec":{
"containers":[
{
"name":"gotest",
"image":"gotest:latest",
"ports":[
{
"containerPort":8080,
"protocol":"TCP"
}
],
"resources":{
},
"terminationMessagePath":"/dev/termination-log",
"imagePullPolicy":"IfNotPresent",
"securityContext":{
"capabilities":{
},
"privileged":false
}
}
],
"restartPolicy":"Always",
"dnsPolicy":"ClusterFirst"
}
}
},
"status":{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment