chaostoolkit-incubator / community-playground

Contains the Chaos Toolkit Community Playground Project
Apache License 2.0
54 stars 17 forks source link

kubectl apply -f ./before not deploying #42

Open maulwurf87 opened 4 years ago

maulwurf87 commented 4 years ago

Hi, I am working through the book Chaos Engineering and run into trouble with deploying the before state in chapter 6. When I run: sudo kubectl apply -f ./before

I get the error:

error: error reading [./before]: recognized file extensions are [.json .yaml .yml]

I don't know if this is a change in kubernetes or I did not catch something to do. Was a bit frustrating to want to learn from the book and surprisingly finding myself having to setup a kubernetes cluster without basically any documentation.

calam1 commented 3 years ago

just ran into this myself, so a little late for you probably. If you are using k8, you need to run the following sudo kubectl appy -f ./before/k8s