Skip to content

Instantly share code, notes, and snippets.

@smarterclayton
Created November 14, 2014 19:59
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 smarterclayton/0862906d4aea8c8466e6 to your computer and use it in GitHub Desktop.
Save smarterclayton/0862906d4aea8c8466e6 to your computer and use it in GitHub Desktop.
A replication controller created by a deployment config
// ReplicationController[I'm Deployment 1 of mydeployment created when mydeployment was at index 50]
{
"metadata": {
"labels": {
"deployment": "1"
},
"annotations": {
"description": "This is deployment 1 of mydeployment: we are going to roll this sucker out",
"deployment.version": "1",
"deployment.config": "mydeployment",
"deployment.config.version": "etcd_index_50",
"deployment.strategy": "recreate",
"deployment.strategy.params": "{parameters}",
"deployment.details": "{details as serialized}",
"deployment.desiredreplicas": 10,
"deployment.state": "initial",
"controlled.by": "[autoscaler|deployment]",
"autoscaler.min": 1,
"autoscaler.max": 10,
"autoscaler.original": 5,
},
},
"spec": {
"replicas": 0, // current scale
"selector": {},
"template": {},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment