3 Commits
Author SHA1 Message Date
zramsay 218f9f5fd6 Update README.md 2026-01-05 20:15:13 +00:00
zramsay 8405e0964b Update README.md 2026-01-05 20:14:24 +00:00
prathamesh 6322ebd30f Pass k8s cluster IP when deploying webapps (#25)
Part of https://www.notion.so/Support-custom-domains-in-deploy-laconic-com-18aa6b22d4728067a44ae27090c02ce5 and cerc-io/snowballtools-base#47
Requires cerc-io/stack-orchestrator#963

Reviewed-on: #25
Reviewed-by: ashwin <ashwin@noreply.git.vdb.to>
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2025-02-04 13:27:17 +00:00
3 changed files with 14 additions and 4 deletions

No files matched your search

+2 -1
View File
@@ -9,4 +9,5 @@ CLEAN_CONTAINERS=false
SYSTEM_PRUNE=false
WEBAPP_IMAGE_PRUNE=true
CHECK_INTERVAL=5
FQDN_POLICY="allow"
FQDN_POLICY="allow"
DEPLOYMENT_IP="k8s.cluster.ip.address"
+6 -3
View File
@@ -1,7 +1,8 @@
# webapp-deployment-status-api
# Webapp Deployer
This API provides status information about webapp deployment requests and a mechanism for upload encrypted configuration
files used by those requests.
This service is run by Laconic Network Service Providers and listens for ApplicationDeploymentRequests on the Laconic Registry. When a valid Request is published onchain, this service will build and host the application on the Service Providers' Kubernetes cluster.
For setup, see [here](https://git.vdb.to/cerc-io/testnet-ops/src/branch/main/service-provider-setup$0)
## Build and Run
@@ -138,4 +139,6 @@ CHECK_INTERVAL=15
AUCTION_CHECK_INTERVAL=10
HANDLE_AUCTION_REQUESTS=true
AUCTION_BID_AMOUNT=50000
DEPLOYER_GITHUB_TOKEN="optional, set for deploying private repos"
```
+6
View File
@@ -25,6 +25,11 @@ if [ -z "$DEPLOYMENT_RECORD_NAMESPACE" ]; then
exit 2
fi
if [ "$FQDN_POLICY" = "allow" ] && [ -z "$DEPLOYMENT_IP" ]; then
echo "DEPLOYMENT_IP is required with 'allow' FQDN_POLICY"
exit 2
fi
if [ -z "$IMAGE_REGISTRY" ]; then
echo "IMAGE_REGISTRY is required."
exit 2
@@ -160,6 +165,7 @@ while true; do
--include-tags "$INCLUDE_TAGS" \
--exclude-tags "$EXCLUDE_TAGS" \
--fqdn-policy "${FQDN_POLICY:-prohibit}" \
--ip "${DEPLOYMENT_IP}" \
--lrn "$LRN" \
--min-required-payment ${MIN_REQUIRED_PAYMENT:-0} \
--config-upload-dir "$UPLOAD_DIRECTORY" \