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
ccc8bc82
Commit
ccc8bc82
authored
Nov 15, 2014
by
Johan Euphrosine
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1960 from jhadvig/podex_readme
update Podex README
parents
eafdc684
e0c8d53b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
4 deletions
+16
-4
README.md
contrib/podex/README.md
+15
-3
podex
contrib/podex/podex
+0
-0
podex.go
contrib/podex/podex.go
+1
-1
No files found.
contrib/podex/README.md
View file @
ccc8bc82
...
@@ -8,9 +8,21 @@ Manifests can then be edited by a human to match deployment needs.
...
@@ -8,9 +8,21 @@ Manifests can then be edited by a human to match deployment needs.
## Usage
## Usage
```
```
$ docker pull google/nodejs-hello
$ podex [-json|-yaml] [-id PODNAME] IMAGES...
$ podex -yaml google/nodejs-hello > pod.yaml
$ podex -json google/nodejs-hello > pod.json
$ podex -json [-id PODNAME] IMAGES... > pod.json
$ podex -yaml [-id PODNAME] IMAGES... > pod.yaml
```
### Options
-
`id`
: set the pod name (required with multiple images, optional with single image: default to image base name)
-
`json`
: puts the container manifest into JSON format
-
`yaml`
: puts the container manifest into YAML format
### Examples
```
$ podex -json google/nodejs-hello > pod.yaml
$ podex -yaml -id nodejs-nginx google/nodejs-hello nginx > pod.yaml
```
```
## TODOs
## TODOs
...
...
contrib/podex/podex
0 → 100755
View file @
ccc8bc82
File added
contrib/podex/podex.go
View file @
ccc8bc82
...
@@ -40,7 +40,7 @@ import (
...
@@ -40,7 +40,7 @@ import (
"gopkg.in/v1/yaml"
"gopkg.in/v1/yaml"
)
)
const
usage
=
"usage: podex [-json|-yaml]
-id=ID username/image1 ... username/imageN
"
const
usage
=
"usage: podex [-json|-yaml]
[-id PODNAME] IMAGES
"
var
generateJSON
=
flag
.
Bool
(
"json"
,
false
,
"generate json manifest"
)
var
generateJSON
=
flag
.
Bool
(
"json"
,
false
,
"generate json manifest"
)
var
generateYAML
=
flag
.
Bool
(
"yaml"
,
false
,
"generate yaml manifest"
)
var
generateYAML
=
flag
.
Bool
(
"yaml"
,
false
,
"generate yaml manifest"
)
...
...
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