Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ee276b26
Commit
ee276b26
authored
Mar 09, 2015
by
Alex Mohr
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5124 from MikeJeffrey/ex3
Deleting old sample JSON; moving those in use; updating references
parents
71da06b9
4da6d413
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
8 additions
and
153 deletions
+8
-153
controller-list.json
api/examples/controller-list.json
+0
-35
external-service.json
api/examples/external-service.json
+0
-13
pod-list.json
api/examples/pod-list.json
+0
-54
service-list.json
api/examples/service-list.json
+0
-28
service.json
api/examples/service.json
+0
-12
controller.json
cmd/integration/controller.json
+0
-0
integration.go
cmd/integration/integration.go
+1
-1
azure.md
docs/getting-started-guides/azure.md
+1
-1
gce.md
docs/getting-started-guides/gce.md
+1
-1
locally.md
docs/getting-started-guides/locally.md
+1
-1
pod.json
docs/getting-started-guides/pod.json
+0
-0
examples_test.go
examples/examples_test.go
+4
-7
No files found.
api/examples/controller-list.json
deleted
100644 → 0
View file @
71da06b9
{
"kind"
:
"ReplicationControllerList"
,
"apiVersion"
:
"v1beta1"
,
"items"
:
[
{
"id"
:
"test-run"
,
"desiredState"
:
{
"replicas"
:
2
,
"replicaSelector"
:
{
"name"
:
"test-run"
},
"podTemplate"
:
{
"desiredState"
:
{
"manifest"
:
{
"version"
:
"v1beta1"
,
"image"
:
"dockerfile/nginx"
,
"networkPorts"
:
[
{
"hostPort"
:
8080
,
"containerPort"
:
80
}
]
}
},
"labels"
:
{
"name"
:
"test-run"
}
}
},
"labels"
:
{
"name"
:
"test-run"
}
}
]
}
api/examples/external-service.json
deleted
100644 → 0
View file @
71da06b9
{
"id"
:
"example"
,
"kind"
:
"Service"
,
"apiVersion"
:
"v1beta1"
,
"port"
:
8000
,
"labels"
:
{
"name"
:
"nginx"
},
"selector"
:
{
"name"
:
"nginx"
},
"createExternalLoadBalancer"
:
true
}
api/examples/pod-list.json
deleted
100644 → 0
View file @
71da06b9
{
"kind"
:
"PodList"
,
"apiVersion"
:
"v1beta1"
,
"items"
:
[
{
"id"
:
"my-pod-1"
,
"labels"
:
{
"name"
:
"test-run"
,
"replicationcontroller"
:
"test-run"
},
"desiredState"
:
{
"manifest"
:
{
"version"
:
"v1beta1"
,
"id"
:
"my-pod-1"
,
"containers"
:
[{
"name"
:
"nginx"
,
"image"
:
"dockerfile/nginx"
,
"ports"
:
[{
"hostPort"
:
8080
,
"containerPort"
:
80
}]
}]
}
},
"currentState"
:
{
"host"
:
"host-1"
}
},
{
"id"
:
"my-pod-2"
,
"labels"
:
{
"name"
:
"test-run"
,
"replicationcontroller"
:
"test-run"
},
"desiredState"
:
{
"manifest"
:
{
"version"
:
"v1beta1"
,
"id"
:
"my-pod-2"
,
"containers"
:
[{
"name"
:
"nginx"
,
"image"
:
"dockerfile/nginx"
,
"ports"
:
[{
"hostPort"
:
8080
,
"containerPort"
:
80
}]
}]
}
},
"currentState"
:
{
"host"
:
"host-2"
}
}
]
}
api/examples/service-list.json
deleted
100644 → 0
View file @
71da06b9
{
"kind"
:
"ServiceList"
,
"apiVersion"
:
"v1beta1"
,
"items"
:
[
{
"id"
:
"example1"
,
"port"
:
8000
,
"labels"
:
{
"name"
:
"nginx"
},
"selector"
:
{
"name"
:
"nginx"
}
},
{
"id"
:
"example2"
,
"port"
:
8080
,
"labels"
:
{
"env"
:
"prod"
,
"name"
:
"jetty"
},
"selector"
:
{
"env"
:
"prod"
,
"name"
:
"jetty"
}
}
]
}
api/examples/service.json
deleted
100644 → 0
View file @
71da06b9
{
"kind"
:
"Service"
,
"apiVersion"
:
"v1beta1"
,
"id"
:
"example"
,
"port"
:
8000
,
"labels"
:
{
"name"
:
"nginx"
},
"selector"
:
{
"name"
:
"nginx"
}
}
api/examples
/controller.json
→
cmd/integration
/controller.json
View file @
ee276b26
File moved
cmd/integration/integration.go
View file @
ee276b26
...
...
@@ -273,7 +273,7 @@ func podExists(c *client.Client, podNamespace string, podID string) wait.Conditi
}
func
runReplicationControllerTest
(
c
*
client
.
Client
)
{
data
,
err
:=
ioutil
.
ReadFile
(
"
api/examples
/controller.json"
)
data
,
err
:=
ioutil
.
ReadFile
(
"
cmd/integration
/controller.json"
)
if
err
!=
nil
{
glog
.
Fatalf
(
"Unexpected error: %v"
,
err
)
}
...
...
docs/getting-started-guides/azure.md
View file @
ee276b26
...
...
@@ -64,7 +64,7 @@ You can create a pod like this:
```
cd kubernetes
cluster/kubectl.sh create -f
api/exampl
es/pod.json
cluster/kubectl.sh create -f
docs/getting-started-guid
es/pod.json
```
Where pod.json contains something like:
...
...
docs/getting-started-guides/gce.md
View file @
ee276b26
...
...
@@ -77,7 +77,7 @@ can create a pod like this:
```
bash
cd
kubernetes
cluster/kubectl.sh create
-f
api/exampl
es/pod.json
cluster/kubectl.sh create
-f
docs/getting-started-guid
es/pod.json
```
Where pod.json contains something like:
...
...
docs/getting-started-guides/locally.md
View file @
ee276b26
...
...
@@ -74,7 +74,7 @@ However you can't view the nginx start page on localhost. To verify that nginx i
You can control the specifications of a pod via a user defined manifest, and reach nginx through your browser on the port specified therein:
```
cluster/kubectl.sh create -f
api/exampl
es/pod.json
cluster/kubectl.sh create -f
docs/getting-started-guid
es/pod.json
```
Congratulations!
...
...
api/exampl
es/pod.json
→
docs/getting-started-guid
es/pod.json
View file @
ee276b26
File moved
examples/examples_test.go
View file @
ee276b26
...
...
@@ -98,14 +98,11 @@ func walkJSONFiles(inDir string, fn func(name, path string, data []byte)) error
func
TestExampleObjectSchemas
(
t
*
testing
.
T
)
{
cases
:=
map
[
string
]
map
[
string
]
runtime
.
Object
{
"../api/examples"
:
{
"controller"
:
&
api
.
ReplicationController
{},
"controller-list"
:
&
api
.
ReplicationControllerList
{},
"../docs/getting-started-guides"
:
{
"pod"
:
&
api
.
Pod
{},
"pod-list"
:
&
api
.
PodList
{},
"service"
:
&
api
.
Service
{},
"external-service"
:
&
api
.
Service
{},
"service-list"
:
&
api
.
ServiceList
{},
},
"../cmd/integration"
:
{
"controller"
:
&
api
.
ReplicationController
{},
},
"../examples/guestbook"
:
{
"frontend-controller"
:
&
api
.
ReplicationController
{},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment