How do I get notified when a pod or service or endpoint changes?


Blankman

Is there a way to be notified if I have services, pods, etc. that can be queried using selectors that change their ip addresses?

For example, let's say my application needs a list of Pod's IP addresses or Service's IP addresses. Since a container can be shut down and recreated using kubernetes, is there any way to be notified when a container is shut down and recreated, so I can use the kubernetes API to get the latest value of the ip address?

This is required for things such as master and slave databases.

Does kubernetes have a webhook type feature that I can use to notify my app?

Arghya Sadhu

out of the box. You will have to write a controller that can monitor and get notified about resource changes in the kubernetes cluster's etcD storage. An example is the endpoint controller in kubernetes, as it updates the object whenever Endpointsthe IP of the pod behind the service changes .

Another example is an ingress controller that monitors endpoints for any changes that keep the Pod IP behind the service.

The watch API in the standard kubernetes client library is very efficient and widely used.

Related


How do I get notified when a pod or service or endpoint changes?

Blankman Is there a way to be notified if I have services, pods, etc. that can be queried using selectors that change their ip addresses? For example, let's say my application needs a list of Pod's IP addresses or Service's IP addresses. Since a container can

How do I get notified when a pod or service or endpoint changes?

Blankman Is there a way to be notified if I have services, pods, etc. that can be queried using selectors that change their ip addresses? For example, let's say my application needs a list of Pod's IP addresses or Service's IP addresses. Since a container can

How do I get notified when a pod or service or endpoint changes?

Blankman Is there a way to be notified if I have services, pods, etc. that can be queried using selectors that change their ip addresses? For example, let's say my application needs a list of Pod's IP addresses or Service's IP addresses. Since a container can

How do I get notified when a pod or service or endpoint changes?

Blankman Is there a way to be notified if I have services, pods, etc. that can be queried using selectors that change their ip addresses? For example, let's say my application needs a list of Pod's IP addresses or Service's IP addresses. Since a container can

How do I get notified when a pod or service or endpoint changes?

Blankman Is there a way to be notified if I have services, pods, etc. that can be queried using selectors that change their ip addresses? For example, let's say my application needs a list of Pod's IP addresses or Service's IP addresses. Since a container can

How do I get notified when disk free space changes?

Malus Nebnu I used this code but it doesn't work SHCNE_FREESPACE, if I delete or copy a file in the specified folder, I don't get any notification. I only get notifications when I use other flags. unit Unit1; interface uses Windows, Messages, SysUtils, Var

How do I get notified when disk free space changes?

Malus Nebnu I used this code but it doesn't work SHCNE_FREESPACE, if I delete or copy a file in the specified folder, I don't get any notification. I only get notifications when I use other flags. unit Unit1; interface uses Windows, Messages, SysUtils, Var

How do I get notified when disk free space changes?

Malus Nebnu I used this code but it doesn't work SHCNE_FREESPACE, if I delete or copy a file in the specified folder, I don't get any notification. I only get notifications when I use other flags. unit Unit1; interface uses Windows, Messages, SysUtils, Var

How do I get notified when the HTTP service is down?

Ajay_Ajju We have an iOS app. We use HTTP services to get and publish JSON data. Push notifications are also enabled. If the backend service is down, is there any way to notify the user that the service is down nonsense Have you tried timeouts? Not only does t

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

Get notified when Windows service state changes?

Ray Yago I'm trying to figure out how to get a notification when the state of a windows service changes. First, I tried a timer that uses ServiceControl.State to check the state every view second. I found this "NotifyServiceStatusChange" but no example or anyt

How do I get notified about breaking changes to Azure services?

Mateusz Migała I looked online for this information, but to my surprise, I didn't find any relevant information. We recently had a major crash due to some major changes to one of the Azure services. This information is posted on the service website and I think

How do I get notified about breaking changes to Azure services?

Mateusz Migała I looked online for this information, but to my surprise, I didn't find any relevant information. We recently had a major crash due to some major changes to one of the Azure services. This information is posted on the service website and I think

How do I get notified about breaking changes to Azure services?

Mateusz Migała I looked online for this information, but to my surprise, I didn't find any relevant information. We recently had a major crash due to some major changes to one of the Azure services. This information is posted on the service website and I think

How do I get notified about breaking changes to Azure services?

Mateusz Migała I looked online for this information, but to my surprise, I didn't find any relevant information. We recently had a major crash due to some major changes to one of the Azure services. This information is posted on the service website and I think

How do I get notified about breaking changes to Azure services?

Mateusz Migała I looked online for this information, but to my surprise, I didn't find any relevant information. We recently had a major crash due to some major changes to one of the Azure services. This information is posted on the service website and I think

How do I get notified about breaking changes to Azure services?

Mateusz Migała I looked online for this information, but to my surprise, I didn't find any relevant information. We recently had a major crash due to some major changes to one of the Azure services. This information is posted on the service website and I think

How do I get notified that my service is being uninstalled?

Mr. Lister I would like to know if it is possible to receive a notification that my service is being uninstalled? I can get a notification that my service is stopped. protected override void OnStop() { base.OnStop(); } But how do I know if

How do I get notified when a bot sends a message in Teams?

Pratic Mathur I developed a bot for Microsoft Teams using Microsoft Bot Framework v4 Nodejs SDK (botbuilder-sdk for nodejs). We implemented the bot in such a way that when we receive data from one of our CRMs using a REST API call, the data is published to a c