2018-01-09 18:57:14 +00:00
|
|
|
{
|
|
|
|
"kind":"Service",
|
|
|
|
"apiVersion":"v1",
|
|
|
|
"metadata":{
|
|
|
|
"name":"mock",
|
|
|
|
"labels":{
|
|
|
|
"app":"mock"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"spec":{
|
|
|
|
"ports": [{
|
|
|
|
"protocol": "TCP",
|
|
|
|
"port": 99,
|
|
|
|
"targetPort": 9949
|
|
|
|
}],
|
|
|
|
"selector":{
|
|
|
|
"app":"mock"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"kind":"ReplicationController",
|
|
|
|
"apiVersion":"v1",
|
|
|
|
"metadata":{
|
|
|
|
"name":"mock",
|
|
|
|
"labels":{
|
|
|
|
"app":"mock"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"spec":{
|
|
|
|
"replicas":1,
|
|
|
|
"selector":{
|
|
|
|
"app":"mock"
|
|
|
|
},
|
|
|
|
"template":{
|
|
|
|
"metadata":{
|
|
|
|
"labels":{
|
|
|
|
"app":"mock"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"spec":{
|
|
|
|
"containers":[{
|
|
|
|
"name": "mock-container",
|
2018-03-06 22:33:18 +00:00
|
|
|
"image": "k8s.gcr.io/pause:2.0",
|
2018-01-09 18:57:14 +00:00
|
|
|
"ports":[{
|
|
|
|
"containerPort":9949,
|
|
|
|
"protocol":"TCP"
|
|
|
|
}]
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|