Skip to content

Commit

Permalink
Set openssl conf path on metallb (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsakalozos authored Aug 19, 2020
1 parent cda7c17 commit 500e5f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion microk8s-resources/actions/enable.metallb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -e

source $SNAP/actions/common/utils.sh

export OPENSSL_CONF="/snap/microk8s/current/etc/ssl/openssl.cnf"

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

if $KUBECTL get ns metallb-system >/dev/null 2>&1
Expand Down Expand Up @@ -53,4 +55,4 @@ done
echo "Applying Metallb manifest"

cat $SNAP/actions/metallb.yaml | $SNAP/bin/sed "s@{{member_list}}@$MEMBERLIST_SECRET@g" | $SNAP/bin/sed "s@{{allow_escalation}}@$ALLOWESCALATION@g" | $SNAP/bin/sed "s@{{addresses}}@$ip_range_str@g" | $KUBECTL apply -f -
echo "MetalLB is enabled"
echo "MetalLB is enabled"

0 comments on commit 500e5f4

Please sign in to comment.