Member-only story

Exposing Kubernetes Applications using Services

Nidhi
5 min readDec 12, 2020

--

In this blog, we will explore how we can access the kubernetes applications externally using Services

Prerequisite:

  1. Functional Kubernetes Cluster configured
  2. Kubernetes’ command-line tool, kubectl, which is the command-line interface for running commands against Kubernetes clusters.
  3. Clone this git repo for all the yaml files which we will be using in this blog

Agenda:

  1. Create a Kubernetes Cluster
  2. Firewall Rules Configured
  3. Create a POD
  4. ClusterIp Service
  5. NodePort Service
  6. LoadBalancer Service

Create a Kubernetes cluster

To get more details about how to create, please follow this blog.

Create a VPC

gcloud compute networks create vpc-k8s

Create a firewall rule with tag cluster

gcloud compute firewall-rules create allow-ext1 --allow tcp:22,tcp:6443,icmp --network vpc-k8s  --target-tags=cluster --source-ranges 0.0.0.0/0

--

--

Nidhi
Nidhi

Written by Nidhi

Devops Automation Enginneer

No responses yet