Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
A mysql replication controller example
{
"apiVersion" : "v1beta3",
"kind" : "ReplicationController",
"metadata" : {
"labels" : {
"name" : "mysql"
},
"name" : "mysql"
},
"spec" : {
"replicas" : 1,
"selector" : {
"name" : "mysql"
},
"template" : {
"metadata" : {
"labels" : {
"name" : "mysql"
}
},
"spec" : {
"containers" : [ {
"image" : "mysql",
"imagePullPolicy" : "IfNotPresent",
"name" : "mysql",
"ports" : [ {
"containerPort" : 3306,
"name" : "mysql"
} ]
}]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment