Questions tagged [fabric8-kubernetes-client]

19 questions
3
votes
1 answer

Kubernetes Node Status While it is being created

Getting the Kubernetes nodes information. var client = MinikubeTests.CreateClient(); var node = client.CoreV1.ListNode().Items.First(); var nodeName = node.Metadata.Name; Getting the node conditions as: foreach(var nodeStatus in…
Billy
  • 825
  • 6
  • 21
  • 36
1
vote
0 answers

Create Config-Map from my properties file, using k8s client

I am trying to create a config-map form a file, using k8s client. content of application.properties, I have this file as File java object. propertyOne="Something_One" propertyTwo="Something_Two" now I have no clue, how I should create a…
1
vote
0 answers

Java fabric8 kubernetes client to get the name of the deployed kubernetes pod's cluster

I want to use fabric8 kubernetes client (java) inside a pod to obtain the cluster it is deployed on. Currently, I can obtain the context using: KubernetesClient client = new DefaultKubernetesClient(); return client.getConfiguration(); When running…
0
votes
1 answer

How to filter events from fabric8 sharedIndexInformer by labels?

I am on fabric8 kubernetes client v6.8.0 and initializing a sharedIndexInformer for a CRD like this: SharedIndexInformer informer = sharedInformerFactory.sharedIndexInformerFor(MyResource.class, 30 *…
xerocool
  • 113
  • 2
  • 10
0
votes
0 answers

Websocket connection issues encountered when using fabric8 kubernetes-client 6.7.2 with IPv6?

We are attempting to utilize the Kubernetes watch functionality using fabric8 kubernetes-client 6.7.2. While it successfully establishes a websocket connection in IPv4, but the websocket connection is not opening in IPv6. Have anyone encountered…
ran
  • 1
0
votes
0 answers

fabric8 kubernetes client cannot connect to cluster: unexpected end of stream

I am having trouble running a simple request (get pods) via fabric8 kubernetes client (latest version). The same get pods request works fine with kubectl get pods. Something is misconfigured but I cannot figure out what it is. The setup: there is a…
winitzki
  • 3,179
  • 24
  • 32
0
votes
0 answers

Read persistentVolumeClaims "Used" section from OCP with OpenShiftClient

I am using OpenShiftClient to read values from OCP. So far I was able to read the Name, Status and Capacity values from persistentVolumeClaims Page without any issues. But, when im reading all the values, im unable to find the values which appear in…
0
votes
0 answers

multi line using K8s java client

I want to use the k8s java client to create the below spec. The |- is causing a problem spec: containers: - args: - |- trap 'touch /usr/share/pod/done' EXIT a/run.sh | tee /b/log/job.log This is the code I currently…
CSUNNY
  • 414
  • 1
  • 7
  • 23
0
votes
0 answers

use fabric8 kubernetes java lient delete resource with delete option not work

Boolean delete = apiClient.apps().statefulSets().inNamespace(namespace).withName(name) .withPropagationPolicy(DeletionPropagation.ORPHAN) .delete(); if (delete != null && delete) { log.info("Delete sts {}/{}",…
hankjy
  • 51
  • 5
0
votes
2 answers

fabric8 KubernetesClient equivalent of 'kubectl apply -f'

I am running automation tests which apply kubernetes yamls to a kubernetes cluster using the fabric8 kubernetes client. One of the features I like about kubectl apply -f is that if I attempt to apply the same yaml twice then the environment simply…
lance-java
  • 25,497
  • 4
  • 59
  • 101
0
votes
0 answers

Exception when updating config map using kubernates client

UseCase : When updating configmap with new entries along with existing entries. Issue : We are seeing below exception and I am not able to reproduce below issue frequently. I went through decompiled version but couldn't find cause of this issue .…
0
votes
0 answers

Create SecretProviderClass via fabric8 kubernetes client

I create from my Java code a bigger Yaml file with the fabric8 kubernetes client and it works fine like e.g. creating a PVC with the PersistentVolumeClaimBuilder and then using Serialization.asYaml(object) to get the Yaml String. But there is no…
FrankS77
  • 271
  • 4
  • 17
0
votes
0 answers

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing

I am trying to install cloudflow 2.0.25 version in the eks cluster using helm. But the pod goes to CrashLoopBackOff status with below error: ERROR [ActorSystemImpl] - Unexpected error starting cloudflow operator,…
0
votes
0 answers

Deploy all using fabric io

We have a helm chart and we templatize it. After this, we get n number of yml files. We deploy them one at a time using KubernetesClient. Any idea how to deploy them all together? Thanks, Swaraj
Swaraj Shekhar
  • 187
  • 1
  • 7
  • 28
0
votes
1 answer

Pod size returned zero post kubernetes job creation

We are creating kubernates job using java kubernates client api (V:5.12.2) like below. I am struck with two places . Could some one please help on this ? podList.getItems().size() in below code snippet is some times returning zero even though I see…
santosh jk
  • 111
  • 1
  • 11
1
2