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:
committed by
smruthi2187
parent
1428c64b4f
commit
b9a559af2f
Executable
+24
@@ -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 &
|
||||
Reference in New Issue
Block a user