Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Applying deployment/kafka-pubsub.yaml with a specification validation error #12

Open
tpiperatgod opened this issue Jun 4, 2021 · 1 comment

Comments

@tpiperatgod
Copy link

Hi, I'm experimenting with the autoscaling-on-queue example and I got the following error when I got to step Deployment

~# kubectl apply -f deployment/kafka-pubsub.yaml

error: error validating "deployment/kafka-pubsub.yaml": error validating data: ValidationError(Component.spec): missing required field "version" in io.dapr.v1alpha1.Component.spec; if you choose to ignore these errors, turn validation off with --validate=false

Should it be changed to this?

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: autoscaling-pubsub
spec:
  version: v1
  type: pubsub.kafka
  metadata:
    - name: brokers
      value: kafka-cp-kafka.kafka.svc.cluster.local:9092
    - name: authRequired
      value: "false"
    - name: allowedTopics
      value: metric
    - name: consumerID
      value: autoscaling-subscriber

thk.

@tpiperatgod
Copy link
Author

To add, I am currently using:

  • Dapr, v1.1.2
  • Kubernetes, v1.20.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant