diff --git a/spring-boot-examples/kubernetes/README.md b/spring-boot-examples/kubernetes/README.md index 4c3fc709d..3bb5da421 100644 --- a/spring-boot-examples/kubernetes/README.md +++ b/spring-boot-examples/kubernetes/README.md @@ -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 < /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 diff --git a/spring-boot-examples/kubernetes/kind-with-registry.sh b/spring-boot-examples/kubernetes/kind-with-registry.sh index 9fe55a821..78a8692a1 100755 --- a/spring-boot-examples/kubernetes/kind-with-registry.sh +++ b/spring-boot-examples/kubernetes/kind-with-registry.sh @@ -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