Skip to content

Commit 847aae3

Browse files
committed
fixup! feat(exapp_development): add Kubernetes setup instructions
Signed-off-by: Edward Ly <contact@edward.ly>
1 parent aec0743 commit 847aae3

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

developer_manual/exapp_development/scaling/AppAPIEmulation.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ Prerequisites
4040

4141
.. note::
4242

43-
You can also hit the agent directly on
44-
``http://127.0.0.1:8200/...`` for debugging, but that bypasses the
45-
HAProxy/AppAPI path and may skip shared-key enforcement depending
46-
on your routing. Moreover, the port is only accessible from within the HaRP container
47-
(as it is the internal SPOE control API).
43+
HaRP also has an internal HTTP control API on ``127.0.0.1:8200``
44+
that handles ExApp lifecycle operations (create, start, stop, remove, expose).
45+
You could ``docker exec`` into the HaRP container and ``curl`` it directly for low-level debugging,
46+
but this bypasses HAProxy's shared-key authentication and is not reachable from outside the container.
4847

4948
1. Check if ExApp is present (k8s deployment exists)
5049
----------------------------------------------------

developer_manual/exapp_development/scaling/KEDASetup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ Expected:
317317
318318
.. code:: json
319319
320-
{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"scheduled":0,"running":0}}}
320+
{"ocs":{"meta":{"status":"ok","statuscode":200,"message":"OK"},"data":{"scheduled_count":0,"running_count":0}}}
321321
322322
4. Create k8s secret
323323
--------------------
@@ -390,7 +390,7 @@ Apply
390390
- type: metrics-api
391391
metadata:
392392
url: "https://nextcloud.local/ocs/v2.php/taskprocessing/queue_stats?format=json&taskTypeId=core:text2text,core:text2text:chat,core:text2text:summary"
393-
valueLocation: "ocs.data.scheduled"
393+
valueLocation: "ocs.data.scheduled_count"
394394
targetValue: "5"
395395
authMode: "basic"
396396
unsafeSsl: "true"

developer_manual/exapp_development/scaling/KubernetesSetup.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The script will:
185185

186186
1. Auto-detect the k8s API server URL
187187
2. Generate a fresh bearer token
188-
3. Connect the Nextcloud network to the cluster network
188+
3. Connect the kind node to the ``master_default`` Docker network
189189
4. Build the HaRP Docker image
190190
5. Start HaRP with k8s backend enabled on host network
191191

0 commit comments

Comments
 (0)