-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Checkpoint on `_run/kube` dev environment. * `_run/lite`: update readme * `_run/lite`: increase lease price * `_run/kube`: update readme * `_run/kube`: configure, use `kind` to deploy apps * `provider/service`: fix NPE. fixes #695 fixes #620
- Loading branch information
Showing
9 changed files
with
286 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,37 @@ | ||
include ../common.mk | ||
include ../common-commands.mk | ||
include kind.mk | ||
|
||
GATEWAY_HOST ?= localhost:8080 | ||
GATEWAY_ENDPOINT ?= http://$(GATEWAY_HOST) | ||
|
||
.PHONY: provider-run | ||
provider-run: | ||
$(AKASHCTL) $(KEY_OPTS) provider run \ | ||
--from "$(PROVIDER_KEY_NAME)" \ | ||
--cluster-k8s | ||
AKASH_DEPLOYMENT_INGRESS_STATIC_HOSTS="false" \ | ||
$(AKASHCTL) $(KEY_OPTS) provider run \ | ||
--from "$(PROVIDER_KEY_NAME)" \ | ||
--cluster-k8s \ | ||
--gateway-listen-address "$(GATEWAY_HOST)" | ||
|
||
.PHONY: provider-status | ||
provider-status: | ||
curl -s http://localhost:8080/status | jq | ||
curl -s "$(GATEWAY_ENDPOINT)/status" | jq | ||
|
||
.PHONY: provider-send-manifest | ||
provider-send-manifest: | ||
$(AKASHCTL) provider send-manifest "$(SDL_PATH)" \ | ||
--owner "$(KEY_ADDRESS)" \ | ||
--dseq "$(DSEQ)" \ | ||
--gseq "$(GSEQ)" \ | ||
--oseq "$(OSEQ)" \ | ||
--provider "$(PROVIDER_ADDRESS)" | ||
|
||
.PHONY: provider-lease-status | ||
provider-lease-status: | ||
curl -s \ | ||
"$(GATEWAY_ENDPOINT)/lease/$(KEY_ADDRESS)/$(DSEQ)/$(GSEQ)/$(OSEQ)/$(PROVIDER_ADDRESS)/status" | \ | ||
jq | ||
|
||
send-to-main: | ||
$(akashctl) tx send $(OTHR_ADDR) $(MAIN_ADDR) 117akash $(KEY_OPTS) $(CHAIN_OPTS) --memo "send monies to main" -y --fees 10akash --trace | ||
.PHONY: provider-lease-ping | ||
provider-lease-ping: | ||
curl -sIH "Host: hello.localhost" localhost:8081 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
kind: Cluster | ||
apiVersion: kind.x-k8s.io/v1alpha4 | ||
nodes: | ||
- role: control-plane | ||
kubeadmConfigPatches: | ||
- | | ||
kind: InitConfiguration | ||
nodeRegistration: | ||
kubeletExtraArgs: | ||
node-labels: "ingress-ready=true" | ||
extraPortMappings: | ||
- containerPort: 80 | ||
# todo: comment below | ||
hostPort: 8081 | ||
protocol: TCP | ||
# - containerPort: 443 | ||
# todo: comment below | ||
# hostPort: 443 | ||
# protocol: TCP |
Oops, something went wrong.