Тёмный

Kubernetes Services and Service Discovery | ClusterIP, NodePort, LoadBalancer, ExternalName 

Vivek Singh
Подписаться 8 тыс.
Просмотров 7 тыс.
50% 1

In this video we actually took a deeper look into what are Kubernetes Services and once we have created Kubernetes Services how do we actually access them or discover them from client pods.
We also looked into the Services without selectors and their use case and discussed about all the types of services, ClusterIP, NodePort, LoadBalancer and ExternalName, but actually creating them and exposing a workload
using those services.
I have also added the end screens of the videos where we started talking about Kubernetes and other one where we actually wrote a go REST API application and deployed that on Kubernetes.
Web:
viveksingh.dev/
00:00 Introduction
00:43 What are Kubernetes Services
02:00 Why we can not use Pod's IP to connect to it
02:52 Services again :)
04:46 Defining Kubernetes Services
11:07 What Endpoints Resources, details about them and Service Controller
16:00 Named ports and how are they helpful
18:08 Services without Selectors
23:30 An use case of Services without selectors
25:55 Kubernetes Service Discovery, two ways of Service discovery
26:36 Environment Variable way of discovering the services
29:42 DNS Way of discovering the services
32:21 Demo of Environment Variable way of discovering the services
33:03 Messed up, doing above demo
33:06 Resolved above issue
35:45 Different types of Kubernetes Services and their use cases
39:11 NodePort type of service and demo on DigitalOcean cluster
44:07 LoadBalancer type of service and demo on DigitalOcean cluster
52:20 External Name type of service
57:25 Summarize the types
58:15 Like and Subscribe

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@GauravKumar-zp7bl
@GauravKumar-zp7bl 11 месяцев назад
Vivek, Your content is really really awesome Bro, really amazed, Thanks :)
@viveksinghggits
@viveksinghggits 10 месяцев назад
Thank you
@anilmahaptara
@anilmahaptara 2 года назад
Giving just one like is not sufficient for this video. Thanks a lot for making such videos, will be waiting eagerly for your videos on kubeproxy and kubernetes networking
@viveksinghggits
@viveksinghggits 2 года назад
Thank you Anil.
@utkarshsrivastava2107
@utkarshsrivastava2107 3 года назад
This was great!
@viveksinghggits
@viveksinghggits 3 года назад
Hey 👋, thanks Utkarsh.
@saltperfect
@saltperfect 2 года назад
Again an amazing video
@viveksinghggits
@viveksinghggits 2 года назад
Thank Rupank.
@heenasejwal6953
@heenasejwal6953 3 года назад
Good work vivek. Thanks a lot for the videos
@viveksinghggits
@viveksinghggits 3 года назад
Hey 👋, Thank you.
@pradeeplakshminarasimha8332
Very exhaustive explanation of K8s services.
@viveksinghggits
@viveksinghggits Год назад
Thank you.
@soumilkhandelwal4388
@soumilkhandelwal4388 2 года назад
Get content !! Knowledge heavy and lots of hands-on, that's a perfect way of learning. Thanks, Vivek. Also, I have a request, need your guidance on some of the things which confuse me a lot. for eg: SSL certificates ( Cert manager, issuers, different types of certs DNS, HTTP, Acme challenges, DNS mappings, wildcard domains, nameservers, and some DNS fundamentals, certs renewal, certbot, proxies). I have researched through all these and know about them but still feel like I do not have a solid understanding, strongly feel the need to connect all these dots. It would be really helpful if you could create a detailed video on this.
@viveksinghggits
@viveksinghggits 2 года назад
Thank you Soumil. I appreciate the great inputs that you have provided. I can't commit working on all the topics but I am planning to make some videos on TLS and k8s networking.
@soumilkhandelwal4388
@soumilkhandelwal4388 2 года назад
@@viveksinghggits thanks !!! Eagerly waiting for it.
@shashiranjanprakash8716
@shashiranjanprakash8716 3 года назад
Your video are very helpful in getting a deep insight in how kubernetes work. Do you have any book recommendation for programing custom controllers in K8s.
@viveksinghggits
@viveksinghggits 3 года назад
Hey 👋 Shashi, Thank you, I really appreciate it. Programming kubernetes is pretty good to understand api server is details as well as how the the transformation works from Go type to k8s object. It has some great chapters on writing controllers and operators as well.
@shashiranjanprakash8716
@shashiranjanprakash8716 3 года назад
@@viveksinghggits Thanks for suggestion.
@mayukh_
@mayukh_ 3 года назад
Hi Vivek..Nice video. One question. Can we create a LoadBalancer service in KiND cluster?
@viveksinghggits
@viveksinghggits 3 года назад
Hi Mayukh, I think there are solutions to do that, for example metallb, I am not sure though. I have not explored that.
@matthewigbinehi1610
@matthewigbinehi1610 Год назад
Do you have a link to a registry where I can pull the docker image you used to create the pods
@viveksinghggits
@viveksinghggits Год назад
Can you please remind me which image you are talking about. If registry wasnt mentioned explicitly, the image is in docker hub and can be used with below command docker pull image-name:tag
@user-fe5ik7st9j
@user-fe5ik7st9j 11 месяцев назад
Hi Vivek, Type: Externalname would't require any compute resources right? Since its only a DNS resolution
@viveksinghggits
@viveksinghggits 10 месяцев назад
I think so, it wouldn’t require any compute resources.
@yogithakakarla1716
@yogithakakarla1716 2 года назад
Wrt external name service, we can use route53 as well right ?
@viveksinghggits
@viveksinghggits 2 года назад
Hey, Can you please explain what are you trying to achieve?
@Amarjeet-fb3lk
@Amarjeet-fb3lk 3 года назад
Hi, when I am using a nodeport service on my cluster, and running commnad, kubectl get nodes - o wide, its not giving me external IP , only internal IP
@viveksinghggits
@viveksinghggits 3 года назад
How are you settling the kubernetes cluster?
@Amarjeet-fb3lk
@Amarjeet-fb3lk 3 года назад
@@viveksinghggits I am using lab environment setup of acloudguru, 1 master and 1 worker node,. Its setup is done using kubeadm and CoreDNS for DNS
@viveksinghggits
@viveksinghggits 3 года назад
To make sure nodeport services work, it's actually necessary for nodes to be accessible publicly and have external port. You will have to setup your cluster in that way.
@Amarjeet-fb3lk
@Amarjeet-fb3lk 3 года назад
@@viveksinghggits ok, let me setup a Kubernetes cluster locally, and then try it out
@viveksinghggits
@viveksinghggits 3 года назад
How are you gonna setup cluster locally. If you are using kind or minikube, you are gonna encounter same problem.
@swamyraju3642
@swamyraju3642 Год назад
Hi bro if we create a loadbalancer in AWS and attach that loadbalancer in kubernetes cluster not on eks
@swamyraju3642
@swamyraju3642 Год назад
Can we attach loadbalancer which is created in AWS and attach loadbalancer normal ec2 cluster
@viveksinghggits
@viveksinghggits Год назад
Answered the question in other video.
@matinpathan5186
@matinpathan5186 Год назад
Hi vivek ur voice is very low in every video, As the low voice is depreciated.. so for next videos u will create please check the volume also. thank you
@viveksinghggits
@viveksinghggits Год назад
Hi Matin, Thank you. I am planning to make the setup better.
@akhil_sai
@akhil_sai 2 года назад
Doubt1 : 29:00 Service details automatically set as env variable when a pod is created ? ( Info 42:10 see the IP address of node ) Doubt 2: I have a single node cluster (not minikube or cloud), how can I access a web rest api running in my host machine ( localhost:someport) from pod ?
@viveksinghggits
@viveksinghggits 2 года назад
To answer your first question, yes service details are set as env vars in the pods if the pods is created after the service. I didn't understand what are you trying to sa by second statement.
@akhil_sai
@akhil_sai 2 года назад
@@viveksinghggits hi Vivek, I have added a question too, second timestamp is for my reference. Can u please answer the second doubt ? I can define an endpoint and what IP should I give to access my host machine rest api ? That's my doubt..
@viveksinghggits
@viveksinghggits 2 года назад
Why do you want to do that. That isn't how people deploy applications on Kubernetes.
@akhil_sai
@akhil_sai 2 года назад
@@viveksinghggits suppose I'm in Dev environment, some of my legacy rest api are running in localhost, I need to call this using localhost from pod, but when I call from pod it is not getting to host localhost. That's the issue, how can I resolve host machines localhost IP from pods.?
@viveksinghggits
@viveksinghggits 2 года назад
Hey Akhil, I am not sure how we can do that.
Далее
What are Kubectl Plugins | How to create them | Krew
22:38
▼ЧЁРНАЯ МАГИЯ 🔮
31:15
Просмотров 324 тыс.
🎙️ПЕСНИ ВЖИВУЮ от КВАШЕНОЙ💖
3:23:13
Kubernetes NodePort vs LoadBalancer vs Ingress
6:27
Просмотров 59 тыс.
Kubernetes kube-proxy Modes: iptables and ipvs, Deep Dive
1:00:14
External DNS for Kubernetes
26:50
Просмотров 10 тыс.
kubernetes ClusterIP Service.
13:17
Просмотров 277
▼ЧЁРНАЯ МАГИЯ 🔮
31:15
Просмотров 324 тыс.