Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka-source-dispatcher pods are not running, they are getting deleted after 1 minute once the statefulset object is first created #4169

Open
raswinraaj opened this issue Nov 21, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@raswinraaj
Copy link

Describe the bug
kafka-source-dispatcher statefulset object is not able to spin up the new pods. It gets deleted immediately after it is first provisioned. Here is the result of kubectl describe kafka-source-dispatcher -n knative-eveting.
image

Expected behavior
kafka-source-dispatcher pods are not spinning up. Here below is the steps that I have done to install knative and knative-extensions.

To Reproduce
Write-Host "Installing serving-crds"
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.16.2/serving-crds.yaml
Write-Host "Installing serving-core"
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.16.2/serving-core.yaml
Write-Host "Patching namespace and hpa for serving deployments"
kubectl label namespace knative-serving istio.io/rev=prod-stable --overwrite
kubectl patch hpa activator -n knative-serving -p '{"spec":{"minReplicas": 2}}'
kubectl patch hpa webhook -n knative-serving -p '{"spec":{"minReplicas": 2}}'
Write-Host "Installing eventing-crds"
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.16.2/eventing-crds.yaml
Write-Host "Installing eventing-core"
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.16.2/eventing-core.yaml
Write-Host "Patching namespace and hpa for eventing deployments"
kubectl label namespace knative-eventing istio.io/rev=prod-stable --overwrite
kubectl patch hpa eventing-webhook -n knative-eventing -p '{"spec":{"minReplicas": 2}}'
Write-Host "Installing net-istio"
kubectl apply -f https://github.com/knative/net-istio/releases/download/knative-v1.16.0/net-istio.yaml
Write-Host "Installing eventing-kafka-controller"
kubectl apply -f https://github.com/knative-extensions/eventing-kafka-broker/releases/download/knative-v1.16.1/eventing-kafka-controller.yaml
Write-Host "Installing eventing-kafka-channel"
kubectl apply -f https://github.com/knative-extensions/eventing-kafka-broker/releases/download/knative-v1.16.1/eventing-kafka-channel.yaml
Write-Host "Installing mt-channel-broker"
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.16.2/mt-channel-broker.yaml
Write-Host "Installing eventing-kafka-broker"
kubectl apply -f https://github.com/knative-extensions/eventing-kafka-broker/releases/download/knative-v1.16.1/eventing-kafka-broker.yaml
Write-Host "Installing eventing-kafka-source and sink"
kubectl apply -f https://github.com/knative-extensions/eventing-kafka-broker/releases/download/knative-v1.16.1/eventing-kafka-source.yaml
kubectl apply -f https://github.com/knative-extensions/eventing-kafka-broker/releases/download/knative-v1.16.1/eventing-kafka-sink.yaml

Knative release version
1.16,2
Additional context
Add any other context about the problem here such as proposed priority
kafka-channel-dispatcher and kafka-broker-dispatcher pods are not coming up. We are getting the error as below:
create Pod kafka-channel-dispatcher-0 in StatefulSet kafka-channel-dispatcher failed error: Pod "kafka-channel-dispatcher-0" is invalid: spec.containers[0].volumeMounts[1].name: Not found: "contract-resources"

Please let me know how to deploy this. I have been blocked with this for a week now.

@raswinraaj raswinraaj added the kind/bug Categorizes issue or PR as related to a bug. label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant