Checkcrd in Helm to check k8s crd whether if it's working.
- pod ( deployment, statefulset, controller pod )
- configmap
- service
- job
- secret
- pv / pvc
- crd ( nedd binding clusterRole ServiceAccount )
➜ helm plugin install https://github.com/codeandcode0x/helm-checkcrds
Installed plugin: checkcrd
➜ helm checkcrd [OPTIONS]
Options:
--crd crd type (pod,configmap,crd,pv,pvc,secret)
--name crd name
when crd is pod, the name is k,v , eq label selector
- cli
➜ helm checkcrd --crd pod --name app=mysql
➜ helm checkcrd --crd configmap --name nginx-config
➜ helm checkcrd --crd secret --name db-token
...
- shell script
infra.sh
#!/usr/bin/env sh
helm upgrade --install mariadb
helm upgrade --install nginx
app.sh
#!/usr/bin/env sh
helm checkcrd --crd pod --name app=mariadb
helm checkcrd --crd pod --name app=nginx
helm upgrade --install myapp
run.sh
./infra.sh &
./app.sh &