I have springboot application and I am trying to load additional configuration from a volume mounted location /tmp/secret-config.yaml and getting below error: java.lang.IllegalStateException: Unable to load config data from ‘/tmp/secret-config.yaml’ I do not want to use configmap or secrets for this. It’s a simple json file which I am trying to load. I am trying to pass it like this
Tag: kubernetes
Local Mongo DB Container Access with Kubernetes Service Endpoint in K3s is not working
Earlier I used earlier kubeadm to create an endpoint from my local MongoDB which is running in a Docker container, now we have switched from kubeadm to k3s because it is a lot of easier to use. Now we are not able to use the MongoDB endpoints, it is reachable inside the Kubernetes cluster. I will share the necessary information
Set Xmx and Xms for java application running on k8s
I’ve an application running on k8s and would like to updated the java heapsize . I’ve updated the JAVA_OPTS environnement variable and set it in the deployment file as below but when i run the below command it looks like my changes does not takes effect I’m i wrong can someone help me and explain how to set hose values
How to edit configmap configuration in spring boot kubernetes application during runtime
We have application with huge configuration (this is just a part): I follow this example to bind configmap with spring boot configuration but there is still some problem for example how to solve null in yaml which spring yaml postprocessor resolve as empty string: issue second problem is how to handle this configmap. I know I can edit and then
How to manage memory using Spring Boot Maven Plugin with Kubernetes
I’m using spring boot 2.5.6 and I’m generating the docker image with the spring boot maven plugin. I’m deploying the application using AWS EKS with nodes managed by fargate. The plugin configuration is the following The command I use to execute it is the following When the application is deployed on AWS EKS, the application print the following data If
Kubernetes Java API (Model) Deep Copy
I am trying to deep copy items from the official Kubernetes Java V1 API models but there aren’t any copy constructors, Cloneable, nor Serializable interface implementations in any of the model objects. Does anyone have any ideas on how one may go about achieving this? Edit: Given the confusion of @RoddyoftheFrozenPeas I would like to clarify the situation for those
Should we set -Xmx (max java heap size) in a kubernetes container
TLDR; Why bother settings -Xmx and -Xms in a kubernetes app? We’ve inherited a kubernetes app that is having out of memory errors. It looks like the initial devs set kubernetes resource limits (.95 CPU core and 4Gb memory) as shown below. However, they also set the max heap size in JAVA_OPTS -Xmx to 800mb. I’ve found lots of good
How to pass the runtime arguments in kubectl while creating/running the pods?
I have a Spring batch application with few jobs and it is being executed as highlighted below I have defined my docker file like mentioned below I want to deploy/run this dockerized application on Azure Kubernetes. I have defined my POD.YAML as mentioned below How do I deploy the POD with the required cmd args – like “-jar /appl/myapp/my-bat-spr-jobs-.jar  updtTablJob”
K8s Spring Application cannot connect to Mysql DB
I wanted to try and deploy my spring boot application on kubernetes. I setted up a test environment with microk8s (dns,storage,ingress enabled) which consists of a pod running the application itself and a pod with the MySQL database. Each pod has its own service and is running on the same default namespace. The yaml files can be seen bellow: Application
503 service unavailable- Is there any issue with my ingress.yaml file?
Please bear with me. I may sound silly. But, I am very new to K8s and don’t know much about writing its yaml files. I have deployed one Spring Boot application as a pod to k8s cluster via its helm chart. When I access any URL of the application from pod’s terminal using curl, I get a success response. but,