Skip to content

Commit

Permalink
Update image references in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
navidshaikh committed May 28, 2020
1 parent 2858dcb commit 35071b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/cmd/kn_service_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ kn service create NAME --image IMAGE [flags]
kn service create s3 --image knativesamples/helloworld --annotation sidecar.istio.io/inject=false
# Create a private service (that is a service with no external endpoint)
kn service create s1 --image dev.local/ns/image:v3 --cluster-local
kn service create s1 --image knativesamples/helloworld --cluster-local
# Create a service with 250MB memory, 200m CPU requests and a GPU resource limit
# [https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/]
# [https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/]
kn service create gpusvc --image dev.local/ns/image:gpu --requests memory=250Mi,cpu=200m --limits nvidia.com/gpu=1
kn service create gpusvc --image mvinkler/hellocuda-go --requests memory=250Mi,cpu=200m --limits nvidia.com/gpu=1
```

### Options
Expand Down
4 changes: 2 additions & 2 deletions pkg/kn/commands/service/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ var create_example = `
kn service create s3 --image knativesamples/helloworld --annotation sidecar.istio.io/inject=false
# Create a private service (that is a service with no external endpoint)
kn service create s1 --image dev.local/ns/image:v3 --cluster-local
kn service create s1 --image knativesamples/helloworld --cluster-local
# Create a service with 250MB memory, 200m CPU requests and a GPU resource limit
# [https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/]
# [https://kubernetes.io/docs/tasks/manage-gpus/scheduling-gpus/]
kn service create gpusvc --image dev.local/ns/image:gpu --requests memory=250Mi,cpu=200m --limits nvidia.com/gpu=1`
kn service create gpusvc --image mvinkler/hellocuda-go --requests memory=250Mi,cpu=200m --limits nvidia.com/gpu=1`

func NewServiceCreateCommand(p *commands.KnParams) *cobra.Command {
var editFlags ConfigurationEditFlags
Expand Down

0 comments on commit 35071b9

Please sign in to comment.