Questions tagged [kubernetes-java-client]
8 questions
2
votes
0 answers
Micronaut: k8s operator for all namespaces
I'm trying to create a Kubernetes Operator in Micronaut using micronaut-kubernetes-operator that listens to Pod events in all namespaces on my cluster.
However I can't get my code to work for any / all namespaces.
Listening to a defined namespace…

Michael
- 1,347
- 1
- 13
- 27
2
votes
1 answer
How to connect to remote kubernetes cluster using k8s java api instead of fabric8 api
Iam able to connect to Kubernetes cluster using Fabric8 api with the following code :
String masterUrl = "";
Map certFileNamesMap = getCertificates();
Config config = new…

user1188867
- 3,726
- 5
- 43
- 69
1
vote
1 answer
How to pass AWS credentials to Kubernetes Javascript client?
I have inherited some Javascript code that creates a client and then does a namespace query on an EKS cluster:
//Get API client for k8s
let k8sApplicationAPI = this.kubeConfig.makeApiClient(k8s.AppsV1Api);
//Get deployments
…

Tennis Smith
- 451
- 6
- 14
0
votes
0 answers
Socket timeout exception reading logs using kubernetes java client API
SO I was just trying out kubernetes java client API :
String kubeConfigPath = System.getenv("HOME") + "/.kube/config";
ApiClient client =
ClientBuilder.kubeconfig(KubeConfig.loadKubeConfig(new…

arunken
- 415
- 3
- 15
0
votes
0 answers
Getting files in a directory using java API from Kubernetes pod
I am trying to get the list of files in a pod directory using this code this
Code I tried:
import io.kubernetes.client.Exec;
..........
Exec exec = new Exec();
boolean tty = System.console() != null;
…

gechu
- 217
- 3
- 11
0
votes
0 answers
Updating helmfile state in the cluster without a helmfile apply
is there a way to directly edit the helm state in a cluster without a helmfile apply?
We're in a situation where we need to update resources (argo rollouts) managed by helmfile from outside, i.e., using either the Java APIs or directly editing them…

imreallydumb
- 1
- 1
0
votes
0 answers
How to implement isWatchClose() in Watch Options using Fabric8
I want my code to wait until the job is finished and then proceed further.
I saw that I can use isWatchClose() method, but which object this method belongs to ? I couldn't get help regarding this. Here is the screenshot from the doc
Please guide.

Muhammad Tariq
- 3,318
- 5
- 38
- 42
0
votes
0 answers
Java Kube client patch doesn't update configmap
Using Java client - "io.kubernetes:client-java:11.0.0"
I am trying to use patch utils with JSON as
"{ "op": "replace", "path": "/data/stream.properties", "value": "abcd.topic[com.test.xyz.poc.basicauditbatch1]=avro_test1 " }";
CoreV1Api api = new…

tarunkumar
- 861
- 2
- 15
- 30