@@ -39,21 +39,39 @@ For the most bare-bones installation of the dataspace, execute the following com
39
39
` ` ` shell
40
40
# get the tutorial including the config file for the cluster by cloning the repository locally
41
41
git clone https://github.com/eclipse-tractusx/tutorial-resources.git
42
+ ```
43
+
44
+ ``` shell
42
45
# will install the mxd directory under <current working directory>/tutorial-resources/mxd
43
46
# the directory should contain the config file for kind: kind.config.yaml
44
47
cd < path/of/mxd>
48
+ ```
49
+
50
+ ``` shell
45
51
kind create cluster -n mxd --config kind.config.yaml
52
+ ```
53
+
54
+ ``` shell
46
55
#
47
56
# Now we activate ingress for the later port forwarding ?
48
57
# the next step is specific to KinD and will be different for other Kubernetes runtimes!
49
58
kubectl apply -f \
50
59
https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
60
+ ```
61
+
62
+ ``` shell
51
63
# wait until the ingress controller is ready
52
64
kubectl wait --namespace ingress-nginx \
53
65
--for=condition=ready pod \
54
66
--selector=app.kubernetes.io/component=controller \
55
67
--timeout=90s
68
+ ```
69
+
70
+ ``` shell
56
71
terraform init
72
+ ```
73
+
74
+ ``` shell
57
75
terraform apply
58
76
# type "yes" and press enter when prompted to do so
59
77
```
@@ -114,6 +132,9 @@ of simplicity we will use a plain Kubernetes port-forwarding:
114
132
``` shell
115
133
# find out about the names of your pods
116
134
kubectl get pods
135
+ ```
136
+
137
+ ``` shell
117
138
# you should see a list like:
118
139
NAME READY STATUS RESTARTS AGE
119
140
alice-tractusx-connector-controlplane-6f7555bcb7-mhxh6 1/1 Running 0 4m
@@ -125,10 +146,13 @@ bob-vault-0 1/1 Running 0
125
146
keycloak-6bdf4d7689-8mwfd 1/1 Running 0 4m58s
126
147
miw-574bf87bc-c4n6c 1/1 Running 0 4m58s
127
148
postgres-66677b8665-lxxp2 1/1 Running 0 5m14s
149
+ ```
150
+
151
+ ``` shell
128
152
#
129
153
# 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.
130
154
# now we activtae the kuberntes port-forwarding:
131
- kubectl port-forward postgres-66677b8665-lxxp2 5432:5423
155
+ kubectl port-forward postgres-66677b8665-lxxp2 5432:5432
132
156
```
133
157
134
158
> Note that the actual pod name will be slightly different in your local cluster.
@@ -148,8 +172,11 @@ assets, policies and contract definitions.
148
172
In order to check that the connectors were deployed successfully, please execute the following commands in a shell:
149
173
150
174
``` shell
151
- curl -X GET http://localhost/bob/health/api/check/liveness
152
- curl -X GET http://localhost/alice/health/api/check/liveness
175
+ curl -X GET http://localhost/bob/health/api/check/liveness | jq
176
+ ```
177
+
178
+ ``` shell
179
+ curl -X GET http://localhost/alice/health/api/check/liveness | jq
153
180
```
154
181
155
182
which should return something similar to this, the important part being the ` isSystemHealthy: true ` bit:
@@ -175,7 +202,7 @@ which should return something similar to this, the important part being the `isS
175
202
Once we've established the basic readiness of our connectors, we can move on to inspect a few data items:
176
203
177
204
``` shell
178
- curl -X POST http://localhost/bob/management/v3/assets/request -H " x-api-key: password" -H " content-type: application/json"
205
+ curl -X POST http://localhost/bob/management/v3/assets/request -H " x-api-key: password" -H " content-type: application/json" | jq
179
206
```
180
207
181
208
This queries the ` /assets ` endpoint returning the entire list of assets that ` bob ` currently maintains. You should see
@@ -236,9 +263,12 @@ Note: the same thing can be done to inspect policies and contract definitions. T
236
263
237
264
``` shell
238
265
# policies:
239
- curl -X POST http://localhost/bob/management/v2/policydefinitions/request -H " x-api-key: password" -H " content-type: application/json"
266
+ curl -X POST http://localhost/bob/management/v2/policydefinitions/request -H " x-api-key: password" -H " content-type: application/json" | jq
267
+ ```
268
+
269
+ ``` shell
240
270
# contract defs:
241
- curl -X POST http://localhost/bob/management/v2/contractdefinitions/request -H " x-api-key: password" -H " content-type: application/json"
271
+ curl -X POST http://localhost/bob/management/v2/contractdefinitions/request -H " x-api-key: password" -H " content-type: application/json" | jq
242
272
```
243
273
244
274
Alternatively, please check out the [ Postman collections here] ( ./postman )
0 commit comments