Kubernetes Service & Endpoints

kubernetes service

KUBERNETES SERVICE TYPE:

ClusterIP :

NodePort :

LoadBalancer :

Kubernetes-LoadBalancer
Cloud-Controller Manager.

Ingress :

Sample Service Definition:

# Create a service — expose POD
kubectl expose pod nginx --name ngx-service — port=80 --target-port=80
#Create a service- Expose Deployment
kubectl expose deployment nginx --name ngx-dep-service --port=80 — target-port=9080
# Create a NodePort Service
kubectl expose deployment nginx --name Nod-port-service --port=80 --target-port=9080 --type=NodePort
kind: Service
apiVersion: v1
metadata:
name: service1
spec:
selector:
app: App1
ports:
- protocol: TCP
port: 80
targetPort: 9336

ENDPOINTS

kubernetes endpoint

--

--

--

Stay hungry; Stay Foolish!!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Advent of Code 2020: Day 5

EZmakefile: One makefile to rule them all

10 Factors to Consider When Evaluating Speech-To-Text Engines

The Beginner Programmer’s Curse: Why learning to code is frustrating

3 Cautionary Tales of App Development

Classes In OOP (Easy-Explain)

AWS Series: #1 Cloud Deployment Models (public, private, poly & multi-cloud)- Part 2

Replace/renew your SSL certificate in ConnectWise OnPrem

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Khemnath chauhan

Khemnath chauhan

Stay hungry; Stay Foolish!!

More from Medium

Kubernetes

Kubernetes

Jenkins Shared Libraries