kustomize build . | kubectl apply -f -
Start a subscription:
kubectl -n infra exec -ti nats-box -- nats sub -s nats://o7N95haCEk5kmoae@jetstream:4222 test.demo
Publish 5 messages and check whether we could receive them:
kubectl -n infra exec -ti nats-box -- nats pub -s nats://o7N95haCEk5kmoae@jetstream:4222 test.demo "message {{.Count}} @ {{.TimeStamp}}" --count=5