Skip to content

Commit f0c3596

Browse files
salaboyartur-ciocanucicoyle
authored
update instructions to cover podman (#1274)
Signed-off-by: salaboy <[email protected]> Co-authored-by: artur-ciocanu <[email protected]> Co-authored-by: Cassie Coyle <[email protected]>
1 parent c909d26 commit f0c3596

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

spring-boot-examples/kubernetes/README.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ with a local container registry, so we can push our container images to it. This
1313
./kind-with-registry.sh
1414
```
1515

16+
**Note**: If you are using Podman Desktop, instead of Docker you need to run the following command to enable insecure registries:
17+
18+
```
19+
read -r -d '' registry_conf <<EOF
20+
[[registry]]
21+
location = "localhost:5001"
22+
insecure = true
23+
EOF
24+
podman machine ssh --username=root sh -c 'cat > /etc/containers/registries.conf.d/local.conf' <<<$registry_conf
25+
```
26+
1627
Once you have the cluster up and running you can install Dapr:
1728

1829
```bash
@@ -39,10 +50,15 @@ Once we have the container image created, we need to tag and push to the local r
3950
Alternatively, you can push the images to a public registry and update the Kubernetes manifests accordingly.
4051

4152
```bash
42-
docker tag producer-app:0.14.0-SNAPSHOT localhost:5001/sb-producer-app
53+
docker tag producer-app:0.15.0-SNAPSHOT localhost:5001/sb-producer-app
4354
docker push localhost:5001/sb-producer-app
4455
```
4556

57+
**Note**: for Podman you need to run:
58+
```
59+
podman push localhost:5001/sb-producer-app --tls-verify=false
60+
```
61+
4662
From inside the `spring-boot-examples/consumer-app` directory you can run the following command to create a container:
4763
```bash
4864
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
5268
Alternatively, you can push the images to a public registry and update the Kubernetes manifests accordingly.
5369

5470
```bash
55-
docker tag consumer-app:0.14.0-SNAPSHOT localhost:5001/sb-consumer-app
71+
docker tag consumer-app:0.15.0-SNAPSHOT localhost:5001/sb-consumer-app
5672
docker push localhost:5001/sb-consumer-app
5773
```
5874

75+
**Note**: for Podman you need to run:
76+
```
77+
podman push localhost:5001/sb-consumer-app --tls-verify=false
78+
```
79+
5980
Now we are ready to install our application into the cluster.
6081

6182
## Installing and interacting with the application

spring-boot-examples/kubernetes/kind-with-registry.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true
1111
fi
1212

1313
# 2. Create kind cluster with containerd registry config dir enabled
14-
# TODO: kind will eventually enable this by default and this patch will
15-
# be unnecessary.
14+
#
15+
# NOTE: the containerd config patch is not necessary with images from kind v0.27.0+
16+
# It may enable some older images to work similarly.
17+
# If you're only supporting newer relases, you can just use `kind create cluster` here.
1618
#
1719
# See:
1820
# https://github.com/kubernetes-sigs/kind/issues/2875

0 commit comments

Comments
 (0)