Latest Questions tagged Kubernetes

Browse all latest questions tagged Kubernetes

56
Votes
Published 25 Jun, 2022
Reactjs - basename and homepage not working as expected to serve /static/ files in development

Not sure if this is a Kubernetes, ingress-nginx, or ReactJS (create-react-app) issue... Project Structure new-app/ client/ src/ App.js index.js Test.js package.json k8s...

103
Votes
Published 06 Sep, 2022
Java - Kubernetes Pod memory usage does not fall when jvm runs garbage collection

I'm struggling to understand why my Java application is slowly consuming all memory available to the pod causing Kubernetes to mark the pod as out of memory. The JVM (OpenJDK 8) is started with the fo...

20
Votes
Published 08 Sep, 2022
Java - Can't connect to kubernetes API from inside the cluster

I'm trying to use the fabric8io/kubernetes-client in a simple example on my local minikube cluster where I get an IP of a pod import io.fabric8.kubernetes.client.Config; import io.fabric8.kubernetes...

31
Votes
Published 18 Sep, 2022
Java - Spring Boot app not working on Kubernetes cluster

I'm developing an application with microservice architecture using jhipster. I can run my services in dev mode even though i get this warning but when I run it on kubernetes cluster after i get this w...

14
Votes
Published 10 Sep, 2022
Java - kubernetes pod memory - java gc logs

On the kubernetes dashboard, there's a pod wherein the Memory Usage (bytes) is displayed as 904.38Mi. This pod holds the java app that was ran with -Xms512m -Xmx1024m, and on kubernetes deployment fi...

13
Votes
Published 12 Aug, 2022
Python - Printing not being logged by Kubernetes

I have simple python 2.7 program running in container off Kubernetes (AKS) which is printing debug information to standard output response = requests.post(uri,data=body, headers=headers) if (response...

72
Votes
Published 08 Sep, 2022
Java - Adding SSL certificate when using Google Jib and Kubernetes

So I'm trying to add an ssl certificate for my project, on my local machine I was able to add it by simply following a keytool command and then it worked. But when I try to do the same on the machine...

7
Votes
Published 11 Aug, 2022
Java - Kubernetes and JVM memory settings

In a Kubernetes cluster with numerous microservices, one of them is used exclusively for a Java Virtual Machine (JVM) that runs a Java 1.8 data processing application. Up to recently, jobs running in...

85
Votes
Published 06 Sep, 2022
Java - Docker and Java - FontConfiguration issue

We've got a Java application that generates word documents using a 3rd party (Asposee but I don't think it matters here). The app is built from a simple Docker file: FROM openjdk:10-jdk-slim COPY tar...

5
Votes
Published 06 Sep, 2022
Java - How do I elegantly and safely maximize the amount of heap space allocated to a Java application in Kubernetes?

I have a Kubernetes deployment that deploys a Java application based on the anapsix/alpine-java image. There is nothing else running in the container expect for the Java application and the container...

50
Votes
Published 05 Sep, 2022
Java - Best way for inter-cluster communication between microservices on Kubernetes?

I am new to microservices and want to understand what is the best way I can implement below behaviour in microservices deployed on Kubernetes : There are 2 different K8s clusters. Microservice B is d...

40
Votes
Published 04 Sep, 2022
Java - Disable Spring Cloud Kubernetes in local

Small question on how to disable Spring Cloud Kubernetes in local mode please. The project is a simple SpringBoot + SpringCloud project deployed in Kubernetes. Hence, there is this dependency in the c...

44
Votes
Published 04 Sep, 2022
Java - How to gracefully shutdown servelts in tomcat in docker container?

What I found out so far: A "docker stop" sends a SIGTERM to process ID 1 in the container. The process ID 1 in the container is the java process running tomcat.*) Yes, tomcat itself shuts d...

12
Votes
Published 25 Jun, 2022
Reactjs - How do you get subpaths to work for create-react-app in minikube?

Figured this would be straight forward, but apparently this is not the case. I have two CRA microservices running at: / /admin minikube ip is 192.168.64.5, so the full routes should be 192.168.64.5/...

42
Votes
Published 28 Aug, 2022
Python - Is there a specific way to install python packages on pods?

Some background: I have set up Airflow on Kubernetes (on AWS). I am able to run DAGs that query a database, send emails or do anything that doesn't require a package that isn't already a part of Airfl...