Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)
11 changes: 11 additions & 0 deletions ezexpose.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/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