Skip to content

Instantly share code, notes, and snippets.

@dangtrinhnt
Created May 2, 2020 16:48
Show Gist options
  • Select an option

  • Save dangtrinhnt/67385787b6bb827bb895fc1ab2d4c454 to your computer and use it in GitHub Desktop.

Select an option

Save dangtrinhnt/67385787b6bb827bb895fc1ab2d4c454 to your computer and use it in GitHub Desktop.

Revisions

  1. dangtrinhnt created this gist May 2, 2020.
    13 changes: 13 additions & 0 deletions disable.metallb.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #!/usr/bin/env bash

    set -e

    source $SNAP/actions/common/utils.sh

    echo "Disabling MetalLB"

    KUBECTL="$SNAP/kubectl --kubeconfig=${SNAP_DATA}/credentials/client.config"

    $KUBECTL delete namespaces metallb-system

    echo "MetalLB is terminating"