Skip to content

Instantly share code, notes, and snippets.

@saiyam1814
Created April 24, 2024 12:22
Show Gist options
  • Save saiyam1814/21172ac193ad8bd7060a1f3308544d96 to your computer and use it in GitHub Desktop.
Save saiyam1814/21172ac193ad8bd7060a1f3308544d96 to your computer and use it in GitHub Desktop.
WASm on Kubernetes - perfectscale webinar
## Create SPin app
spin new -t http-rust demo --accept-defaults
spin build
spin up
spin registry push ttl.sh/saiyam:10h
spin kube scaffold -f ttl.sh/saiyam:10h > spinapp.yaml
## install Spinkube
Create civo Kubernetes cluster(Talos)
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
helm install spin-operator \
--namespace spin-operator \
--create-namespace \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator
## Deploy application
kubectl apply -f spinapp.yaml
kubectl reverse-proxy saiyam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment