Skip to content

Change first usage example #2433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,24 @@ Inspect the new available alpha commands by calling the `--help` option:
kyma alpha --help
```

### Import Image Into Kyma's Internal Docker Registry

> [!NOTE]
> To use the following `image-import` command, you must [install the Docker Registry module](https://github.com/kyma-project/docker-registry?tab=readme-ov-file#install) on your Kyma runtime
Run a simple app from the image on Kyma by calling:

```sh
docker pull kennethreitz/httpbin
kyma alpha app push --name my-first-kyma-app --image kennethreitz/httpbin --expose --container-port 80

kyma alpha registry image-import kennethreitz/httpbin:latest
```

Run a Pod from a locally hosted image
Creating deployment default/my-first-kyma-app

```sh
kubectl run my-pod --image=localhost:32137/kennethreitz/httpbin:latest --overrides='{ "spec": { "imagePullSecrets": [ { "name": "dockerregistry-config" } ] } }'
Creating service default/my-first-kyma-app

Creating API Rule default/my-first-kyma-app

The `my-first-kyma-app` application is available under the https://my-first-kyma-app.{CLUSTER_DOMAIN}/ address
```

For more usage scenarios, see [user documentation](./docs/user/README.md).


## Development

To build a Kyma CLI binary, run:
Expand Down
16 changes: 16 additions & 0 deletions docs/user/tutorials/01-30-image-import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Import Image Into Kyma's Internal Docker Registry

> [!NOTE]
> To use the following `image-import` command, you must [install the Docker Registry module](https://github.com/kyma-project/docker-registry?tab=readme-ov-file#install) on your Kyma runtime

```sh
docker pull kennethreitz/httpbin

kyma alpha registry image-import kennethreitz/httpbin:latest
```

Run a Pod from a locally hosted image

```sh
kubectl run my-pod --image=localhost:32137/kennethreitz/httpbin:latest --overrides='{ "spec": { "imagePullSecrets": [ { "name": "dockerregistry-config" } ] } }'
```
Loading