Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 582 Bytes
{ kind, appImage, config, pkgs }:
pkgs.writeScriptBin "deploy-to-kind"
''
#! ${pkgs.runtimeShell}
set -euo pipefail
${kind}/bin/kind delete cluster || true
${kind}/bin/kind create cluster
echo "Loading the ${pkgs.docker}/bin/docker image inside the kind docker container ..."
export KUBECONFIG=$(${kind}/bin/kind get kubeconfig-path --name="kind")
kind load image-archive ${appImage}
echo "Applying the configuration ..."
cat ${config} | ${pkgs.jq}/bin/jq "."
cat ${config} | ${pkgs.kubectl}/bin/kubectl apply -f -
''
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.