Skip to content

Helpful SRE Information on CodeFlare Stack

James Busche edited this page Aug 3, 2023 · 28 revisions

Table of Contents

Replacing Images in MCAD operator or InstaScale operators

Method to replace existing MCAD or InstaScale images. (NOTE: Even though this replaces the images, that doesn't mean the newer or older images work or are tested with the installed CodeFlare stack...)

kubectl edit mcads mcad

or

kubectl edit instascales instascale

and under spec: add something like this for MCAD:

spec:
  controllerImage: quay.io/project-codeflare/mcad-controller:main-v1.30.0

or for InstaScale:

spec:
  controllerImage: quay.io/project-codeflare/instascale-controller:v0.0.4

Changing resources for MCAD operator or InstaScale operator - NOTE, ODH 2.0.0+ only!

Edit the CR for either mcads or instascale like this:

kubectl edit mcads mcad

or

kubectl edit instascales instascale

And then add this under the spec section:

  controllerResources:
    limits:
      cpu: "1"
      memory: 1G
    requests:
      cpu: "1"
      memory: 1G

CodeFlare Cleanup steps

To completely clean up all the CodeFlare components after an install, follow these steps:

  1. No appwrappers should be left running:

    kubectl get appwrappers -A

    If any are left, you'd want to delete them

  2. Remove the notebook and notebook pvc:

    kubectl delete notebook jupyter-nb-kube-3aadmin -n opendatahub
    kubectl delete pvc jupyterhub-nb-kube-3aadmin-pvc -n opendatahub
  3. Remove the codeflare-stack kfdef

    kubectl delete kfdef codeflare-stack -n opendatahub
  4. Remove the CodeFlare Operator csv and subscription:

    kubectl delete sub codeflare-operator -n openshift-operators
    kubectl delete csv codeflare-operator.v0.0.6 -n openshift-operators
  5. Remove the CodeFlare CRDs

    kubectl delete crd instascales.codeflare.codeflare.dev mcads.codeflare.codeflare.dev schedulingspecs.mcad.ibm.com queuejobs.mcad.ibm.com