This guide will help you set up Knative using kind (Kubernetes IN Docker) and get you started with Knative quickstarts.
- Docker
kind(Kubernetes IN Docker)kubectlkn(Knative CLI)
Follow the instructions to install kind from the official documentation.
Follow the instructions to install kubectl from the official documentation.
Follow the instructions to install kn from the official documentation.
brew install knative/client/kn
brew install knative-extensions/kn-plugins/quickstartkn quickstartkubectl get pods -n knative-serving
kubectl get pods -n kourier-systemkn service create hello --image gcr.io/knative-samples/helloworld-go --port 8080kubectl get ksvc helloFollow the URL provided in the output to access your service.
You have successfully set up Knative with kind and deployed a sample application. For more advanced usage and features, refer to the Knative documentation.
To delete the Knative service and the Kubernetes cluster, run the following commands:
kn service delete hello
kind delete cluster --name knative