mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-04 18:52:38 +00:00
First commit
This commit is contained in:
30
api/examples/controller-list.json
Normal file
30
api/examples/controller-list.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"id": "testRun",
|
||||
"desiredState": {
|
||||
"replicas": 2,
|
||||
"replicasInSet": {
|
||||
"name": "testRun"
|
||||
},
|
||||
"taskTemplate": {
|
||||
"desiredState": {
|
||||
"image": "dockerfile/nginx",
|
||||
"networkPorts": [
|
||||
{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}
|
||||
]
|
||||
},
|
||||
"labels": {
|
||||
"name": "testRun"
|
||||
}
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"name": "testRun"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
18
api/examples/controller.json
Normal file
18
api/examples/controller.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"id": "nginxController",
|
||||
"desiredState": {
|
||||
"replicas": 2,
|
||||
"replicasInSet": {"name": "nginx"},
|
||||
"taskTemplate": {
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"containers": [{
|
||||
"image": "dockerfile/nginx",
|
||||
"ports": [{"containerPort": 80, "hostPort": 8080}]
|
||||
}]
|
||||
}
|
||||
},
|
||||
"labels": {"name": "nginx"}
|
||||
}},
|
||||
"labels": {"name": "nginx"}
|
||||
}
|
19
api/examples/service-list.json
Normal file
19
api/examples/service-list.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"id": "example1",
|
||||
"port": 8000,
|
||||
"labels": {
|
||||
"name": "nginx"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "example2",
|
||||
"port": 8080,
|
||||
"labels": {
|
||||
"env": "prod",
|
||||
"name": "jetty"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
7
api/examples/service.json
Normal file
7
api/examples/service.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"id": "example2",
|
||||
"port": 8000,
|
||||
"labels": {
|
||||
"name": "nginx"
|
||||
}
|
||||
}
|
46
api/examples/task-list.json
Normal file
46
api/examples/task-list.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"items": [
|
||||
{
|
||||
"id": "my-task-1",
|
||||
"labels": {
|
||||
"name": "testRun",
|
||||
"replicationController": "testRun"
|
||||
},
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"containers": [{
|
||||
"image": "dockerfile/nginx",
|
||||
"ports": [{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
"currentState": {
|
||||
"host": "host-1"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "my-task-2",
|
||||
"labels": {
|
||||
"name": "testRun",
|
||||
"replicationController": "testRun"
|
||||
},
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"containers": [{
|
||||
"image": "dockerfile/nginx",
|
||||
"ports": [{
|
||||
"hostPort": 8080,
|
||||
"containerPort": 80
|
||||
}]
|
||||
}
|
||||
}
|
||||
},
|
||||
"currentState": {
|
||||
"host": "host-2"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
18
api/examples/task.json
Normal file
18
api/examples/task.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"id": "php",
|
||||
"desiredState": {
|
||||
"manifest": {
|
||||
"containers": [{
|
||||
"image": "dockerfile/nginx",
|
||||
"ports": [{
|
||||
"containerPort": 80,
|
||||
"hostPort": 8080
|
||||
}]
|
||||
}]
|
||||
}
|
||||
},
|
||||
"labels": {
|
||||
"name": "foo"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user