Service type ClusterIP - Controller port forward through CLI (#431)

setting serviceType to ClusterIP as default for fission controller and corresponding changes in fission cli to be able to port-forward the controller pod.
This commit is contained in:
prithviramesh
2018-02-27 08:22:57 -08:00
committed by smruthi2187
parent 1428c64b4f
commit b9a559af2f
20 changed files with 355 additions and 77 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
namespace=$1
if [ -z "$namespace" ]
then
namespace=fission
fi
svc=$2
if [ -z "$svc" ]
then
svc=router
fi
port=$3
if [ -z "$port" ]
then
port=8888
fi
kubectl get pods -l svc=$svc -o name --namespace $namespace | \
sed 's/^.*\///' | \
xargs -I{} kubectl port-forward {} $port:8888 -n $namespace &