Private Registry and CNI Configuration
On the registry server:
docker run -d -p 5000:5000 --name registry registry:2
None of the nodes were configured with container d properly so I had to run the following to populate the config.toml
file:
containerd config default | sudo tee /etc/containerd/config.toml
Configuring /etc/containerd/config.toml
to use custom registry:
[plugins."io.containerd.grpc.v1.cri".registry]
config_path = ""
[plugins."io.containerd.grpc.v1.cri".registry.auths]
[plugins."io.containerd.grpc.v1.cri".registry.configs]
[plugins."io.containerd.grpc.v1.cri".registry.headers]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = ["https://registry-1.docker.io"]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."hlvmg1.jmoore53.com:5000"]
endpoint = ["http://hlvmg1.jmoore53.com:5000"]
Testing out Knative Eventing
kubectl -n knative-samples run curl --image=radial/busyboxplus:curl -it
# From within the curl pod
curl -v "http://10.0.1.244/default" -X POST -H "Ce-Id: 536808d3-88be-4077-9d7a-a3f162705f79" -H "Ce-Specversion: 1.0" -H "Ce-Type: dev.knative.samples.helloworld" -
H "Ce-Source: dev.knative.samples/helloworldsource" -H "Content-Type: application/json" -d '{"msg":"Hello World from the curl pod."}'
Links
- Code Samples - Eventing - Hello World
- cloudevents
- Containerd Operations
- Knative - Eventing
- Knative - Eventing Code Samples
- Configuring Brokers
- Go SDK for CloudEvents
- CloudEvents
- CloudEvents Spec
- Eventing - Writing Event Source the Easy Way
- Wikipedia - Event Driven Architecture
- Knative - Creating a Broker
- Github Issue - Knative Eventing - Unable to get basic broker working
- Knative - Installing Eventing with YAML
- Knatvie - Getting Started with Eventing