update instructions to cover podman (#1274)

Signed-off-by: salaboy <Salaboy@gmail.com>
Co-authored-by: artur-ciocanu <artur.ciocanu@gmail.com>
Co-authored-by: Cassie Coyle <cassie@diagrid.io>
This commit is contained in:
salaboy 2025-03-27 16:17:03 +00:00 committed by GitHub
parent c909d26811
commit f0c35968f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 4 deletions

View File

@ -13,6 +13,17 @@ with a local container registry, so we can push our container images to it. This
./kind-with-registry.sh
```
**Note**: If you are using Podman Desktop, instead of Docker you need to run the following command to enable insecure registries:
```
read -r -d '' registry_conf <<EOF
[[registry]]
location = "localhost:5001"
insecure = true
EOF
podman machine ssh --username=root sh -c 'cat > /etc/containers/registries.conf.d/local.conf' <<<$registry_conf
```
Once you have the cluster up and running you can install Dapr:
```bash
@ -39,10 +50,15 @@ Once we have the container image created, we need to tag and push to the local r
Alternatively, you can push the images to a public registry and update the Kubernetes manifests accordingly.
```bash
docker tag producer-app:0.14.0-SNAPSHOT localhost:5001/sb-producer-app
docker tag producer-app:0.15.0-SNAPSHOT localhost:5001/sb-producer-app
docker push localhost:5001/sb-producer-app
```
**Note**: for Podman you need to run:
```
podman push localhost:5001/sb-producer-app --tls-verify=false
```
From inside the `spring-boot-examples/consumer-app` directory you can run the following command to create a container:
```bash
mvn spring-boot:build-image
@ -52,10 +68,15 @@ Once we have the container image created, we need to tag and push to the local r
Alternatively, you can push the images to a public registry and update the Kubernetes manifests accordingly.
```bash
docker tag consumer-app:0.14.0-SNAPSHOT localhost:5001/sb-consumer-app
docker tag consumer-app:0.15.0-SNAPSHOT localhost:5001/sb-consumer-app
docker push localhost:5001/sb-consumer-app
```
**Note**: for Podman you need to run:
```
podman push localhost:5001/sb-consumer-app --tls-verify=false
```
Now we are ready to install our application into the cluster.
## Installing and interacting with the application

View File

@ -11,8 +11,10 @@ if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true
fi
# 2. Create kind cluster with containerd registry config dir enabled
# TODO: kind will eventually enable this by default and this patch will
# be unnecessary.
#
# NOTE: the containerd config patch is not necessary with images from kind v0.27.0+
# It may enable some older images to work similarly.
# If you're only supporting newer relases, you can just use `kind create cluster` here.
#
# See:
# https://github.com/kubernetes-sigs/kind/issues/2875