chaos-testing-examples icon indicating copy to clipboard operation
chaos-testing-examples copied to clipboard

Error when Deploying the App

Open ks0ng opened this issue 3 years ago • 1 comments

Hi, I am trying to replicate the demo for chaos testing with enovy+cilium+ebpf. I managed to checkout the repo and create the minikube cluster, but not able to deploy the app. Here was the error that I got:

$ kubectl apply -f deathstar.yaml
service/deathstar created
error: resource mapping not found for name: "deathstar" namespace: "" from "deathstar.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
ensure CRDs are installed first

Is the yaml file outdated? As I am new to kubernetes, I am not sure if small adjustment is sufficient, or we need to rewrite the yaml file.

ks0ng avatar Jun 10 '22 04:06 ks0ng

Changing the apiVersion (line14) of the deployment from extensions/v1beta1 to apps/v1 actually fixed the above issue. However, it looks like cilium was not able to successfully install with kubectl apply -f cilium-minikube.yaml. I tried to use the cilium CLI, cilium install and it worked, but after I apply the fault injection policy, the curl command just hang. I assume the cilium-minikube.yaml file will further install the fault injection related enovy proxies and filters. However, maybe the yaml file is outdated, cilium is not able to get started.

$ kubectl get pods -A
NAMESPACE     NAME                               READY   STATUS              RESTARTS      AGE
kube-system   cilium-bnqwc                       0/1     Error               2 (26s ago)   88s
kube-system   coredns-64897985d-6wgkl            0/1     ContainerCreating   0             88s

ks0ng avatar Jun 10 '22 21:06 ks0ng