Skip to content

Commit

Permalink
fix(k8s): move under deploy folder
Browse files Browse the repository at this point in the history
- simplify curl script
- move under deploy folder to co-locate more deploy
  methodologies (like baremetal next to k8s dir)

Signed-off-by: Bailey Hayes <behayes2@gmail.com>
  • Loading branch information
ricochet committed Aug 13, 2024
1 parent afc2a42 commit c6d6056
Show file tree
Hide file tree
Showing 92 changed files with 9 additions and 11 deletions.
File renamed without changes.
20 changes: 9 additions & 11 deletions k8s/kustomize/README.md → deploy/k8s/kustomize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,24 @@ This script runs through the following steps:

### How to curl without an Ingress setup

Steps to call the component within the wasmCloud host container where the app and `httpserver` provider are running:
Call the component (without an Ingress) by port-forwarding the
wasmCloud host pod where the HTTP Server provider is listening on port 8080.

```bash
WASMCLOUD_HOST_POD=$(kubectl get pods -o jsonpath="{.items[*].metadata.name}" -l app.kubernetes.io/instance=wasmcloud-host)

kubectl exec -it pod/$WASMCLOUD_HOST_POD -c wasmcloud-host -- bash

# install curl
apt-get update && apt-get install -y curl lsof procps

curl http://localhost:8080
kubectl port-forward pods/$WASMCLOUD_HOST_POD 8080
```

### Test out the deployment
Call the component:

```bash
curl localhost/rust
curl http://localhost:8080
```

### Using wash locally

In order to run wash locally, we need a connection to NATS.

```bash
kubectl port-forward svc/nats 4222:4222 4223:4223
```
Expand All @@ -69,7 +66,8 @@ wash get inventory
hostcore.arch aarch64
kubernetes true

No components found
Component ID Name Max count
rust_hello_world-http_component http-hello-world 1

Provider ID Name
path_based_routing-httpserver http-server-provider
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit c6d6056

Please sign in to comment.