Skip to content

Instantly share code, notes, and snippets.

@abdollahpour
Last active September 16, 2024 19:21
Show Gist options
  • Save abdollahpour/3f72ce2b32628062dea4b22b7326b428 to your computer and use it in GitHub Desktop.
Save abdollahpour/3f72ce2b32628062dea4b22b7326b428 to your computer and use it in GitHub Desktop.
Install Knative on K3S

Install multipass

https://multipass.run/

Create virtual machine

multipass launch --mem 10G --cpus 6 --disk 20G --name knative
multipass shell knative

Install K3S

curl -sfL https://get.k3s.io | sh -s - --disable traefik --write-kubeconfig-mode 644

Install knative 1.1

kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.5.0/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.5.0/serving-core.yaml
kubectl apply -f https://github.com/knative/net-contour/releases/download/knative-v1.5.0/contour.yaml
kubectl apply -f https://github.com/knative/net-contour/releases/download/knative-v1.5.0/net-contour.yaml
kubectl patch configmap/config-network \
  --namespace knative-serving \
  --type merge \
  --patch '{"data":{"ingress-class":"contour.ingress.networking.knative.dev"}}'
kubectl --namespace contour-external get service envoy

Verify!

kubectl get pods -n knative-serving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment