From ad6cae262d0c7a9c89c8294aa2ec5363fce59c9e Mon Sep 17 00:00:00 2001 From: ebonynon Date: Sat, 10 Oct 2020 06:45:51 +0530 Subject: [PATCH 1/3] file init --- ezexpose.sh | 1 + 1 file changed, 1 insertion(+) create mode 100644 ezexpose.sh diff --git a/ezexpose.sh b/ezexpose.sh new file mode 100644 index 0000000..cc1f786 --- /dev/null +++ b/ezexpose.sh @@ -0,0 +1 @@ +#!/bin/bash \ No newline at end of file From 9a17813e7ff9740ac0cf19cada730e78e03bec01 Mon Sep 17 00:00:00 2001 From: ebonynon Date: Sat, 10 Oct 2020 07:20:28 +0530 Subject: [PATCH 2/3] =?UTF-8?q?script=20=E2=9B=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ezexpose.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) mode change 100644 => 100755 ezexpose.sh diff --git a/ezexpose.sh b/ezexpose.sh old mode 100644 new mode 100755 index cc1f786..27db169 --- a/ezexpose.sh +++ b/ezexpose.sh @@ -1 +1,11 @@ -#!/bin/bash \ No newline at end of file +#!/bin/bash + +printf "\n Welcome To EzExpose, Expose your deployment with EzExpose ezly... \n\n" + +read -p 'Deployment : ' deployment +read -p 'Type: ' type +read -p 'ServiceName: ' servicename + +printf "\n" + +kubectl expose deployment $deployment --type=$type --name=$servicename From 55cd2b3798bd89ea5384d9e125ae40825a7d9301 Mon Sep 17 00:00:00 2001 From: ebonynon Date: Sat, 10 Oct 2020 07:48:41 +0530 Subject: [PATCH 3/3] =?UTF-8?q?readme=20=E2=9B=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d2962fb..a15a5d6 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,27 @@ -# platformer-public-cluster-challenge +# EzExpose -Using socket, port forward a service from cluster through the agent to a pod running in Platformer public cluster, which we can expose through an ingress +## What is this +--- +This is a script that automates expose of deployment by creating service. + +## How To +--- +### Intall + +``` +cd /tmp +git clone https://github.com/platformercloud/platformer-public-cluster-challenge +cd platformer-public-cluster-challenge +mv ezexpose.sh /usr/local/share/ +chmod +x /usr/local/share/ezexpose.sh +``` + +### Run it + +``` +ezexpose +``` + +### References + + - [Use a Service to Access an Application in a Cluster](https://kubernetes.io/docs/tasks/access-application-cluster/service-access-application-cluster/) \ No newline at end of file