docs: added _Pushing an image to kind_ (#2076)

This commit is contained in:
Fabrice Flore-Thébault 2023-04-18 15:11:40 +02:00 committed by GitHub
parent 85df81aad0
commit e61252ea33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 57 additions and 1 deletions

2
.gitignore vendored
View file

@ -8,5 +8,5 @@ dist
.vale/styles/RedHat
**/test-resources
**/coverage
kind
# kind
kind.exe

View file

@ -0,0 +1,56 @@
---
sidebar_position: 10
title: Push an image to Kind
description: Pushing an image to your Kind cluster
keywords: [podman desktop, podman, containers, images, migrating, kubernetes]
tags: [migrating-to-kubernetes, images]
---
# Pushing an image to your local Kind-powered Kubernetes cluster
With Podman Desktop, you can push an image to your local Kind-powered Kubernetes cluster.
#### Prerequisites
- Your image is available on the **Images** page: `<my_image>:<my_tag>`.
- [You created a Kind cluster](creating-a-kind-cluster).
#### Procedure
1. Open **Podman Desktop dashboard > Images**.
1. **<icon icon="fa-solid fa-search" size="lg" /> Search images**: `<your_image>:<your_tag>`.
1. Click **<icon icon="fa-solid fa-ellipsis-v" size="lg" /> > <icon icon="fa-solid fa-ellipsis-v" size="lg" /> Push image to Kind cluster**.
1. If you created many Kind clusters, select your Kind cluster from the list.
#### Verification
Kind does not enable you to list loaded images.
Therefore, create a Pod that uses the loaded image.
1. Create a `verify_my_image.yaml` Kubernetes YAML file on your workstation.
Replace the placeholders:
* Pod `name` and container `name` value must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
* Container `image` value is the image you pushed.
```yaml
apiVersion: v1
kind: Pod
metadata:
name: <verify-my-image>
spec:
containers:
- name: <my-image>
image: <my_image>:<my_tag>
imagePullPolicy: Never
```
1. Open **Pods > Play Kubernetes YAML**.
1. **Kubernetes YAML file**: select your `verify_my_image.yaml` file.
1. **Select Runtime**: **Using a Kubernetes cluster**.
1. Click **Play**.
1. Clik **Done**
1. Open **Pods**.
1. **<icon icon="fa-solid fa-search" size="lg" /> Search pods**: `<verify-my-image>`.
1. The pod **Status** is **Running**.