Jack Moore

Email: jack(at)jmoore53.com
Project Updates

Kubernetes knative Eventing with Custom Consumers!

24 Feb 2022 » kubernetes, golang, programming, software

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."}'
© Jack Moore - This site was last built Fri 30 Aug 2024 12:31:24 PM EDT