Upgrade the helm charts to Arvados 2.1.0.
[arvados-k8s.git] / charts / arvados / minikube-external-ip.sh
1 #!/bin/bash
2
3 # Copyright (C) The Arvados Authors. All rights reserved.
4 #
5 # SPDX-License-Identifier: Apache-2.0
6
7 EXTERNAL_IP=$1
8
9 if [[ -z "$EXTERNAL_IP" ]]; then
10   EXTERNAL_IP=`minikube ip`
11 fi
12
13 if [[ -z "$EXTERNAL_IP" ]]; then
14   echo "Syntax: $0 <external_ip>"
15   echo "I tried running `minikube ip` but that failed"
16   exit 1
17 fi
18
19 kubectl patch service arvados-api-server -p "{\"spec\": {\"type\": \"LoadBalancer\", \"externalIPs\":[\"$EXTERNAL_IP\"]}}"
20 kubectl patch service arvados-keep-proxy -p "{\"spec\": {\"type\": \"LoadBalancer\", \"externalIPs\":[\"$EXTERNAL_IP\"]}}"
21 kubectl patch service arvados-keep-web -p "{\"spec\": {\"type\": \"LoadBalancer\", \"externalIPs\":[\"$EXTERNAL_IP\"]}}"
22 kubectl patch service arvados-workbench -p "{\"spec\": {\"type\": \"LoadBalancer\", \"externalIPs\":[\"$EXTERNAL_IP\"]}}"
23 kubectl patch service arvados-ws -p "{\"spec\": {\"type\": \"LoadBalancer\", \"externalIPs\":[\"$EXTERNAL_IP\"]}}"
24