I deployed my microservice hello-k8s in a pod and another pod as postgre-server, I have successfully connected to localhost using port-forward and try to create a table in the deployed database. But when I deploy hello-k8s it return error due to database connection attempt failed. Disclaimer: kube-dns is working fine, I already try nslookup to the postgre-svc and it works
Tag: kubernetes
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 some-pod-name-jnfen3 is a name of a pod which finished execution and visible if I execute kubectl get pods. https://localhost:32780/ is a kubernetes API host which I get from kubectl config view -o jsonpath=”{.clusters[?(@.name==”minikube”)].cluster.server}”. minikube has only 1
CRD creation with java-client for Kubernetes
IS it possible to create custom resource definition by reading the data from yaml file and using Java client for Kubernetes? I am using the version of library 3.0.0 in sbt and with Scala. But I was not able to find any kind of methods for custom resources creation in the main library repository while there are similar methods for
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: When we build the application locally (mvn package then docker build) and run the application inside k8s it works well. However, when we build the image in our CI/CD pipeline
GKE & Stackdriver: Java logback logging format?
I have a project running Java in a docker image on Kubernetes. Logs are automatically ingested by the fluentd agent and end up in Stackdriver. However, the format of the logs is wrong: Multiline logs get put into separate log lines in Stackdriver, and all logs have “INFO” log level, even though they are really warning, or error. I have
Full example of container deployment with fabric8 api
I am looking for a complete example that explains the deployment of application container using the fabric8 java API. What should be the execution order of the following concepts? Service Replication Controller Pod Docker container And how to configure them together? Answer Please read the kubernetes user-guide for the basic concepts in kubernetes, and tutorials for examples and common usage