Uninstalling CloudBees CI from Kubernetes

To remove CloudBees CI from Kubernetes:

  1. Delete all masters from Operations Center.

  2. Stop Operations Center.

    kubectl scale statefulsets/cjoc --replicas=0
  3. Delete CloudBees CI.

    kubectl delete -f cloudbees-core.yml
  4. Delete remaining pods and data.

    kubectl delete pod,statefulset,pvc,ingress,service -l com.cloudbees.cje.tenant
  5. Delete services, pods, persistent volume claims, etc.

    kubectl delete svc --all
    kubectl delete statefulset --all
    kubectl delete pod --all
    kubectl delete ingress --all
    kubectl delete pvc --all