1.7 KiB
1.7 KiB
Example setup
This example shows the bare minimum requirements to deploy applications on wasmCloud.
It relies on the Kubernetes default namespace for simplicity.
Install NATS
helm repo add nats https://nats-io.github.io/k8s/helm/charts/
helm upgrade --install -f nats-values.yaml nats nats/nats
Validate installation with:
# make sure pods are ready
kubectl rollout status deploy,sts -l app.kubernetes.io/instance=nats
Install wasmCloud Application Deployment Manager - wadm
helm install wadm -f wadm-values.yaml oci://ghcr.io/wasmcloud/charts/wadm
Validate installation with:
# make sure pods are ready
kubectl rollout status deploy -l app.kubernetes.io/instance=wadm
Install the operator
kubectl apply -k ../../deploy/base
Validate installation with:
# make sure pods are ready
kubectl rollout status deploy -l app=wasmcloud-operator -n wasmcloud-operator
# apiservice should be available
kubectl get apiservices.apiregistration.k8s.io v1beta1.core.oam.dev
Create wasmcloud cluster
kubectl apply -f wasmcloud-host.yaml
Check wasmCloud host status with:
kubectl describe wasmcloudhostconfig wasmcloud-host
Managing applications using kubectl
Install the rust hello world application:
kubectl apply -f hello-world-application.yaml
Check application status with:
kubectl get applications
Managing applications with wash
Port forward into the NATS cluster. 4222 = NATS Service, 4223 = NATS Websockets
kubectl port-forward svc/nats 4222:4222 4223:4223
In another shell:
wash app list