In my Kubernetes based cluster I have few Java based, dockerized microservices, which are connected with each other, so every one sends and receives some information from each other. I have Kafka/Zookeeper cluster also which again connected to this microservices. I need to have some procedure like when I'm restarting active Kafka pod, another microservices should understand it and restart themselves. How to do this? Please give some example yml.
Kubernetes check if pod fails
426 Views Asked by user37033 At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- I can't create a pod in minikube on windows
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- In rke kube-proxy pod is not present
- problem with edge server registration in Eureka
- Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
- Kubernetes cluster on GCE connection refused error
- Based on my experience, I've outlined the Kubernetes request flow. Could someone please add or highlight any points I might have overlooked?
- how to define StackGres helm chart "restapi" values to use internal LoadBalancer - AWS EKS
- Python3.11 can't open file [Errno 2] No such file or directory
- Cannot find remote pod service - SERVICE_UNAVAILABLE
Related Questions in APACHE-KAFKA
- No method found for class java.lang.String in Kafka
- How to create beans of the same class for multiple template parameters in Spring
- Troubleshoot .readStream function not working in kafka-spark streaming (pyspark in colab notebook)
- Handling and ignore UNKNOWN_TOPIC_OR_PARTITION error in Kafka Streams
- Connect Apache Flink with Apache kudu as sink using Pyflink
- Embedded Kafka Failed to Start After Spring Starter Parent Version 3.1.10
- Producer Batching Service Bus Vs Kafka
- How to create a docker composer environment where containers can communicate each other?
- Springboot Kafka Consumer unable to maintain connect to kafka cluster brokers
- Kafka integration between two micro service which can respond back to the same function initiated the request
- Configuring Apache Spark's MemoryStream to simulate Kafka stream
- Opentelemetry Surpresses Kafka Produce Message Java
- Kafka: java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.core.appender.mom.kafka.KafkaManager
- MassTransit Kafka producers configure to send several events to the same Kafka topic
- NoClassDefFoundError when running JAR file with Apache Kafka dependencies
Related Questions in PING
- How can we make an environment specific Token-based authorization using Ping Token?
- Can't ping to 8.8.8.8 and google.com in beaglebone black
- how calculate: mean, standard deviation , coefficient for each ip ping , traceroute
- How to "make" a variable that contains another variable value?
- How to run automatically a command in the CMD after starting it as a process (using C#)
- Ping from a public EC2 instance
- how to perform a Ping flood attack / ICMP flood attack demonstration?
- Not able to connect to an IP from databricks notebook in azure
- Cannot ping server 1 from pc 1 in packet tracer file by setting default route on all 3 routers connected with serial DTE cables
- ModuleNotFoundError, while running a python script as root user in Ubuntu
- Flutter app unable to resolve hostname for ping operation
- Why does my genymotion emulator show 127.0.0.1:6555 on its top window border, rather than a real IP address?
- OIDC enabled web apps prompting for re-authentication although logged in first application initially
- Python library to send pings that doesn't require elevated permissions?
- Resolving NoneType.__format__ Error in a Python UDP Ping Function
Related Questions in SPRING-CLOUD-ZOOKEEPER
- Create ZNodes without cmd in Zookeeper
- Docker compose for Zookeeper and Spring Cloud - my service does not connect to zoo
- Disabled ZooKeeper in bootstrap.yml, it still runs during testing
- Spring Boot ZooKeeper client
- Zookeeper Service Discovery Znode Deleted after 40s
- How to Config NGINX as api gateway When using Zookeeper registry
- How to implement distributed lock around poller in Spring Integration using ZooKeeper
- How to load balance leader using zookeeper and spring integration
- Kubernetes check if pod fails
- Usage of Spring Cloud Zookeeper instead of Spring Cloud Config Server for Actuator refresh context
- Custom Loadblancer rule in Spring cloud Ribbon Zookeeper
- How to make spring boot microservices consistent while using Eureka for service discovery?
- Zookeeper : java.lang.ClassNotFoundException: org.apache.zookeeper.admin.ZooKeeperAdmin
- Application dependencies (another apps)
- Spring bean is null even though it is beeing populated in another project
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no Kubernetes native way to do your job. But you can make your application to do restart your container.
You can get help from containers' livenessProbe.
Kubernetes provides livenessProbe to detect where your application is live or not. liveness probes will actually attempt to restart a container if it fails.
Now, make your application to return other than 200 when you need to restart.
If you can identify from your microservices that your kafka pods are restarted, then you return other than 200 as status code from
/livehttp call.If you want to call kafka service directly from
livenessprobe, add following underhttpGetNow, your application will call
kafka-svc.svc:8080/liveSecond way:
You can write an application which will watch your Kafka pods with kubernetes watch api, If this finds any restart in Kafka pods, then you can restart all dependent pods as you need.