Skip to content

Exposes an nginx server running in your private Kubernetes cluster (e.g using Docker Desktop in your local laptop) to Google Cloud Platform using inlets.dev

Notifications You must be signed in to change notification settings

felipecruz91/inlets-demo-gcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

inlets-demo-gcp

Exposes an nginx server running in your private Kubernetes cluster (e.g using Docker Desktop in your local laptop) to Google Cloud Platform using inlets.dev

Getting started

Getting arkade:

curl -sSL https://dl.get-arkade.dev | sudo sh

On the Kubernetes host install inlets-pro and inletsctl

curl -sLSf https://inletsctl.inlets.dev | sudo sh

sudo inletsctl download --pro

Configure the required permissions in your Google Cloud project:

./setup-gcp.sh

Provision a VM in Google Cloud Platform using inlestctl:

inletsctl create \
  --project-id $PROJECTID \
  --provider gce \
  --access-token-file key.json

gcp-exit-node

Install the inlets-operator and specify the path for the GCP access token:

arkade install inlets-operator \
    --provider gce \
    --project-id $PROJECTID \
    --zone us-central1-a \
    --token-file key.json \
    --license $(cat ./inlets-pro-license.txt)

Deploy the nginx workload to your private Kubernetes cluster:

kubectl apply -f \
 https://raw.githubusercontent.com/inlets/inlets-operator/master/contrib/nginx-sample-deployment.yaml

Finally, expose it with a LoadBalancer from Google Cloud Platform:

kubectl expose deployment nginx-1 --port=80 --type=LoadBalancer

k9s

Clean up

Remove the VM that was created with inletsctl:

inletsctl delete --provider gce \
    --id "<exit-node-name>|us-central1-a|<project-id>" \
    --access-token-file key.json

References:

About

Exposes an nginx server running in your private Kubernetes cluster (e.g using Docker Desktop in your local laptop) to Google Cloud Platform using inlets.dev

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages