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

--

--

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