Skip to content

Instantly share code, notes, and snippets.

@rwngwn
Created November 21, 2024 14:32
Show Gist options
  • Save rwngwn/6bff752b7b73328b3a464a28bd2f2fee to your computer and use it in GitHub Desktop.
Save rwngwn/6bff752b7b73328b3a464a28bd2f2fee to your computer and use it in GitHub Desktop.

Knative Quickstart Guide

This guide will help you set up Knative using kind (Kubernetes IN Docker) and get you started with Knative quickstarts.

Prerequisites

  • Docker
  • kind (Kubernetes IN Docker)
  • kubectl
  • kn (Knative CLI)

Install kind

Follow the instructions to install kind from the official documentation.

Install kubectl

Follow the instructions to install kubectl from the official documentation.

Install kn (Knative CLI)

Follow the instructions to install kn from the official documentation.

brew install knative/client/kn
brew install knative-extensions/kn-plugins/quickstart

Setup knative cluset with quicstarts

Install Knative using quickstart

kn quickstart

Verify the Installation

kubectl get pods -n knative-serving
kubectl get pods -n kourier-system

Deploy a Sample Application

kn service create hello --image gcr.io/knative-samples/helloworld-go --port 8080

Access the Service

kubectl get ksvc hello

Follow the URL provided in the output to access your service.

Conclusion

You have successfully set up Knative with kind and deployed a sample application. For more advanced usage and features, refer to the Knative documentation.

Clean Up

To delete the Knative service and the Kubernetes cluster, run the following commands:

kn service delete hello
kind delete cluster --name knative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment