...
1{
2 "kind":"Service",
3 "apiVersion":"v1",
4 "metadata":{
5 "name":"mock",
6 "labels":{
7 "app":"mock"
8 }
9 },
10 "spec":{
11 "ports": [{
12 "protocol": "TCP",
13 "port": 99,
14 "targetPort": 9949
15 }],
16 "selector":{
17 "app":"mock"
18 }
19 }
20}
21{
22 "kind":"ReplicationController",
23 "apiVersion":"v1",
24 "metadata":{
25 "name":"mock",
26 "labels":{
27 "app":"mock"
28 }
29 },
30 "spec":{
31 "replicas":1,
32 "selector":{
33 "app":"mock"
34 },
35 "template":{
36 "metadata":{
37 "labels":{
38 "app":"mock"
39 }
40 },
41 "spec":{
42 "containers":[{
43 "name": "mock-container",
44 "image": "registry.k8s.io/pause:3.9",
45 "ports":[{
46 "containerPort":9949,
47 "protocol":"TCP"
48 }]
49 }]
50 }
51 }
52 }
53}
View as plain text