Skip to content

Commit f75e028

Browse files
Update deployment instructions for connecting components
1 parent e40d007 commit f75e028

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

docs/tutorials/e2e/connect/deployComponents.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,38 @@ For the most bare-bones installation of the dataspace, execute the following com
3939
```shell
4040
# get the tutorial including the config file for the cluster by cloning the repository locally
4141
git clone https://github.com/eclipse-tractusx/tutorial-resources.git
42+
```
43+
```shell
4244
# will install the mxd directory under <current working directory>/tutorial-resources/mxd
4345
# the directory should contain the config file for kind: kind.config.yaml
4446
cd <path/of/mxd>
47+
```
48+
49+
```shell
4550
kind create cluster -n mxd --config kind.config.yaml
51+
```
52+
53+
```shell
4654
#
4755
# Now we activate ingress for the later port forwarding ?
4856
# the next step is specific to KinD and will be different for other Kubernetes runtimes!
4957
kubectl apply -f \
5058
https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
59+
```
60+
61+
```shell
5162
# wait until the ingress controller is ready
5263
kubectl wait --namespace ingress-nginx \
5364
--for=condition=ready pod \
5465
--selector=app.kubernetes.io/component=controller \
5566
--timeout=90s
67+
```
68+
69+
```shell
5670
terraform init
71+
```
72+
73+
```shell
5774
terraform apply
5875
# type "yes" and press enter when prompted to do so
5976
```
@@ -114,6 +131,9 @@ of simplicity we will use a plain Kubernetes port-forwarding:
114131
```shell
115132
# find out about the names of your pods
116133
kubectl get pods
134+
```
135+
136+
```shell
117137
# you should see a list like:
118138
NAME READY STATUS RESTARTS AGE
119139
alice-tractusx-connector-controlplane-6f7555bcb7-mhxh6 1/1 Running 0 4m
@@ -125,10 +145,13 @@ bob-vault-0 1/1 Running 0
125145
keycloak-6bdf4d7689-8mwfd 1/1 Running 0 4m58s
126146
miw-574bf87bc-c4n6c 1/1 Running 0 4m58s
127147
postgres-66677b8665-lxxp2 1/1 Running 0 5m14s
148+
```
149+
150+
```shell
128151
#
129152
# We will use the last entry for ingress for our port-forwarding, the name of the postgres pod will be slightly differnt in your local cluster.
130153
# now we activtae the kuberntes port-forwarding:
131-
kubectl port-forward postgres-66677b8665-lxxp2 5432:5423
154+
kubectl port-forward postgres-66677b8665-lxxp2 5432:5432
132155
```
133156

134157
> Note that the actual pod name will be slightly different in your local cluster.

0 commit comments

Comments
 (0)