Skip to content

Helm chart for deploying a knative-eventing ApiServerSource

License

Notifications You must be signed in to change notification settings

skoved/kn-api-server-source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kn-api-server-source

A helm chart that installs knative-eventing and deploys an ApiServerSource follwing the Creating an ApiServerSource Object guide from knative-eventing. The ApiServerSource is deployed in the api-server-source namespace by default. By default the ApiServerSource is listening for events in the test namespace.

To deploy and have ApiServerSource send cloud events to a Channel use the channel branch of this repo.

To deploy and have ApiServerSource send cloud events to a Broker use the broker branch of this repo.

Requirements

  • Helm must be installed. Installation instructions for helm can be found here
  • Follow the instructions for verifying image signatures for knative-eventing here
  • On linux make sure that you have kvm virtualization installed and running. On fedora/rhel run
sudo dnf install @virtualization
sudo systemctl enable --now libvirtd
sudo usermod -aG libvirt $USER
newgrp libvirt
  • Be logged into a kubernetes cluster. If you don't have a cluster, installation instructions for minikube can be found here
  • If using minikube on linux, docker or podman must be installed. On fedora/rhel run
sudo dnf install (podman|docker)
  • If podman installed add the following alias to your .bashrc
alias docker=podman
  • If docker installed run the following commands
sudo usermod -aG docker $usermod
newgrp docker
  • Start minikube
minikube start --driver=kvm2
  • Apply knative CRDs (Helm doesn't do a good job managing CRDs)
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.13.3/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.13.3/eventing-core.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.13.3/in-memory-channel.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.13.3/mt-channel-broker.yaml

Use the Chart

To deploy

helm install -g .

To see deployments from helm

helm ls

To remove the deployment

helm ls -q | awk '{print $1}' | xargs -I {} helm uninstall {}

This command assumes that the install of this chart is the first one listed by helm ls. If that is not the case change awk command to

awk '{print $<position number>}'

About

Helm chart for deploying a knative-eventing ApiServerSource

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published