How do you shut down all models for a deployment?

Follow

Comments

3 comments

  • Jaclyn Patterson

    Answer from my colleague John:

    kubectl get deploy | grep model |awk '{print $1}'| xargs -I{} kubectl delete deploy {}

    Submitted by: katie.shakman

    0
    Comment actions Permalink
  • Jaclyn Patterson
    Nice one @katie

    You can use the Code format to make this an easier copy and paste thing:
    kubectl get deploy | grep model | awk '{print $1}'| xargs -I{} kubectl delete deploy {}
    Thanks
    Petter

    Submitted by: petter.olsson

    0
    Comment actions Permalink
  • Jaclyn Patterson
    Thanks for the nice formatting @dominopetter, much better!

    Submitted by: katie.shakman

    0
    Comment actions Permalink

Please sign in to leave a comment.