Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 7 Materials and Homework.

Registrations still open!


question

carterericam_194048 avatar image
carterericam_194048 asked ·

Installing Grafana datasource in section 4b of week 5 exercises fails with "error: Unexpected args"

~/kubernetes-workshop-online/week5-Cass-in-k8s> kubectl -n cass-operator create -f ./prometheus_grafa   na/grafana/datasource.yaml
error: Unexpected args: [na/grafana/datasource.yaml]
See 'kubectl create -h' for help and examples   
workshop
2 comments
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Section 4b

0 Likes 0 · ·

I ran the code 3 more times and all is well. Ty

0 Likes 0 · ·

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

The error you posted shows that you had spaces in the path to the configuration file:

> kubectl -n cass-operator create -f ./prometheus_grafa   na/grafana/datasource.yaml

Specifically, prometheus_grafa and na/grafana/datasource.yaml. kubectl thinks that prometheus_grafa is the file and na/grafana/datasource.yaml is another command argument it wasn't expecting.

I assume that you figured out that the correct command is:

> kubectl -n cass-operator create -f ./prometheus_grafana/grafana/datasource.yaml

Good to hear that you got it working eventually. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.