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)kubectl
kn
(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/quickstart
kn quickstart
kubectl get pods -n knative-serving
kubectl get pods -n kourier-system
kn service create hello --image gcr.io/knative-samples/helloworld-go --port 8080
kubectl get ksvc hello
Follow 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