~/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
GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.
~/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
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!
5 People are following this question.
Where can I find details of the homework for week 1 of the workshop?
I had registered myself for the workshop series no communication received
"nodetool status" for the week 5 exercises gives "Failed to connect" errors
Getting error get "'connection' is not defined" - week3 workshop
Getting error running "npm run start" for week 4 Python coding
DataStax Enterprise is powered by the best distribution of Apache Cassandra ™
© 2022 DataStax, Titan, and TitanDB are registered trademarks of DataStax, Inc. and its subsidiaries in the United States and/or other countries.
Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries.
Privacy Policy Terms of Use