kubectl apply -f https://raw.githubusercontent.com/oumkale/k8sOperator/main/config/crd/bases/crd.demo.com_podtatoheads.yaml
kubectl apply -f https://raw.githubusercontent.com/oumkale/k8sOperator/main/config/operator/deployment.yaml
kubectl apply -f https://raw.githubusercontent.com/oumkale/k8sOperator/main/config/CRmanifests/podtatohead.yaml
kubectl get po -n operator
- Run Operator locally :
Run
make generate
andmake manifests
commands to run on every change inapi/v1alpha1
in root directory - Apply crd :
kubectl apply -f config/crd/bases
- Run Operator :
make run
kubectl apply -f config/manifests/podtatohead.yaml -n oumk