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
bf0622a2
Commit
bf0622a2
authored
Oct 09, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15136 from jijun2/update-1006
Auto commit by PR queue bot
parents
cabe8d93
53fafa85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
38 deletions
+20
-38
README.md
examples/explorer/README.md
+2
-2
pod.json
examples/explorer/pod.json
+0
-36
pod.yaml
examples/explorer/pod.yaml
+18
-0
No files found.
examples/explorer/README.md
View file @
bf0622a2
...
@@ -42,12 +42,12 @@ Currently, you can look at:
...
@@ -42,12 +42,12 @@ Currently, you can look at:
*
The filesystem to make sure the mounted volumes and files are also what you expect.
*
The filesystem to make sure the mounted volumes and files are also what you expect.
*
Perform DNS lookups, to see how DNS works.
*
Perform DNS lookups, to see how DNS works.
`pod.
json
`
is supplied as an example. You can control the port it serves on with the -port flag.
`pod.
yaml
`
is supplied as an example. You can control the port it serves on with the -port flag.
Example from command line (the DNS lookup looks better from a web browser):
Example from command line (the DNS lookup looks better from a web browser):
```
console
```
console
$
kubectl create
-f
examples/explorer/pod.
json
$
kubectl create
-f
examples/explorer/pod.
yaml
$
kubectl proxy &
$
kubectl proxy &
Starting to serve on localhost:8001
Starting to serve on localhost:8001
...
...
examples/explorer/pod.json
deleted
100644 → 0
View file @
cabe8d93
{
"kind"
:
"Pod"
,
"apiVersion"
:
"v1"
,
"metadata"
:
{
"name"
:
"explorer"
},
"spec"
:
{
"containers"
:
[
{
"name"
:
"explorer"
,
"image"
:
"gcr.io/google_containers/explorer:1.0"
,
"args"
:
[
"-port=8080"
],
"ports"
:
[
{
"containerPort"
:
8080
,
"protocol"
:
"TCP"
}
],
"volumeMounts"
:
[
{
"name"
:
"test-volume"
,
"mountPath"
:
"/mount/test-volume"
}
]
}
],
"volumes"
:
[
{
"name"
:
"test-volume"
,
"emptyDir"
:
{}
}
]
}
}
examples/explorer/pod.yaml
0 → 100644
View file @
bf0622a2
apiVersion
:
v1
kind
:
Pod
metadata
:
name
:
explorer
spec
:
containers
:
-
name
:
explorer
image
:
gcr.io/google_containers/explorer:1.0
args
:
[
"
-port=8080"
]
ports
:
-
containerPort
:
8080
protocol
:
TCP
volumeMounts
:
-
mountPath
:
"
/mount/test-volume"
name
:
test-volume
volumes
:
-
name
:
test-volume
emptyDir
:
{}
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