Questions tagged [fabric8]

fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins which provides Management (with centralized logging and metrics), Continuous Delivery (based on Jenkins, Nexus and Sonarqube with integrated Chat), Integration (Integration Platform as a Service based on Apache ActiveMQ, Camel and CXF) and tools for developers and devops

Filter by
Sorted by
Tagged with
0 votes
2 answers
75 views

How to add a custom serializer/format for Java zoneddatetime with fabric8 maven plugin?

I am using fabric8 maven plugin to autogenerate Java classes for a CRD from it's yaml file. One of the fields is: updated_time: format: date-time type: string It's getting converted to a java....
xerocool's user avatar
  • 113
0 votes
1 answer
61 views

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<MyResource> informer = sharedInformerFactory....
xerocool's user avatar
  • 113
1 vote
1 answer
105 views

how to generate kubernetes yml file with io.fabric8?

I want generate kubernetes manifest files with fabric8. please help me. @EnableKubernetesMockClient public class KubernetesClientTests { KubernetesClient client; @Test public void ...
h.tayebi's user avatar
0 votes
0 answers
56 views

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 ...
alm's user avatar
  • 1
0 votes
0 answers
56 views

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 &...
hankjy's user avatar
  • 61
2 votes
1 answer
201 views

Which RBAC rules and permissions are required for Spring Cloud Kubernetes leader election to work on GKE?

We're using Spring Boot 3.0.5 with leader election from Spring Cloud Kubernetes version 3.0.2 (org.springframework.cloud:spring-cloud-kubernetes-fabric8-leader:3.0.2) that is based on the fabric8's ...
Johan's user avatar
  • 37.7k
0 votes
0 answers
171 views

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 ...
santosh jk's user avatar
0 votes
0 answers
26 views

Does spring.cloud.deployer.kubernetes.readiness-command-probe-command work at all?

I have set the property spring.cloud.deployer.kubernetes.readiness-command-probe-command=echo live and when I check in the pods yaml, I don't see any readiness configuration present. The same applies ...
Ronit Mishra's user avatar
0 votes
0 answers
23 views

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's user avatar
0 votes
2 answers
274 views

Disable spotify docker-maven-plugin in parent pom

I am using a parent POM like below <build> <pluginManagement> <plugins> <plugin> <groupId>com.spotify</...
melontart's user avatar
0 votes
1 answer
56 views

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 ...
santosh jk's user avatar
0 votes
0 answers
161 views

How to attach Kubernetes Service with a running Pod

Here is my problem statement, I started a Kubernetes Service (Svc-1) which then starts Kubernetes Job (Job-1) and that job create a Pod (Pod-1). This service (Svc-1) actually receives job status like ...
Muhammad Tariq's user avatar
2 votes
1 answer
373 views

Java code manually Triggering kubernetes cronjob from the cluster

I'm trying to trigger cronjob manually(not scheduled) using fabric8 library but getting the following error: Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST ...
Ali Taha's user avatar
  • 199
0 votes
1 answer
367 views

fabric8 v6.1.1 Failure at creating Custom Resource with POST call Resulting in Not Found

New to fabric8 K8S client library. Recently was trying to create a custom resource object using fabric8 (v6.1.1) and got Not Found Message at the POST Call internally. Can list on the CRD client on ...
Anupam Panda's user avatar
0 votes
0 answers
143 views

Fabric8 kubernetes client custom resource watch receives old/obsolete data

I'm working on k8s custom resource upgrade. new resource: { spec: {}, status: { extraField: x }} old resource: { spec: {}, status: {}} new resource was deployed in the k8s cluster but due to some ...
Ruwanka De Silva's user avatar
0 votes
1 answer
99 views

Fabric8 Docker Maven Plugin: How to tag just one image? docker:tag

When I use docker:tag of Fabric.io's docker-maven-plugin, it tags all my images: [INFO] --- docker-maven-plugin:0.40.2:tag (tag-latest) @ tracker-service-app --- [INFO] DOCKER> Tagging image ...
Ondra Žižka's user avatar
0 votes
0 answers
23 views

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. ...
Muhammad Tariq's user avatar
0 votes
1 answer
383 views

Kubernetes job creation method showing as deprecated in IntelliJ. I am using Fabric8 Kubernetes Client api

I am using Fabric8 Kubernetes Client library to for Java to create Kubernetes job, but the create method is shown as deprecated. I checked all the available docs and I don't see that its deprecated ...
Muhammad Tariq's user avatar
0 votes
0 answers
473 views

Fabric8 Docker Maven Plugin: docker:tag fails with Cannot invoke "BuildImageConfiguration.cleanupMode()" because "buildConfig" is null

I use FabricIO's Docker Maven Plugin. I'm trying to create a docker tagged image with Docker Maven Pugin. The build goal works, but when trying to tag the image, DMP fails: Execution start of goal io....
Ondra Žižka's user avatar
0 votes
1 answer
866 views

Spring Cloud Kubernetes Leader Election Not Updating When Pod is Killed

I have a Spring Boot web application, packaged as a container that I am deploying in Kubernetes. The application has a scheduled job that must run periodically only on one of the running pods. I'm ...
Mark's user avatar
  • 4,980
0 votes
0 answers
31 views

Pattern for creating a long running k8s custom resource using fabric8.io

How to controller for a Custom Resource relating to an external resource which takes a while to create? I'm working on a creating a custom resource for standing up a CockroachLabs cloud database ...
Micke's user avatar
  • 106
1 vote
1 answer
166 views

How to delete HorizontalPodAutoscaler using Fabric8 k8s java client (version: 6.0.0)

Looks like there is no support to delete HorizontalPodAutoscaler using fabric8's K8S Java client ver:6.0.0. Although It is straightforward to create HorizontalPodAutoscaler using fabric8's K8S Java ...
Vinay's user avatar
  • 81
3 votes
1 answer
2k views

Is Fabric8 for kubernetes client deprecated?

I've seen the fabric8 documentation and it says that fabric8 is already deprecated. I would like to know if is recommendable to use this API or is better to use the official Kubernetes client I ...
rasilvap's user avatar
  • 1,781
1 vote
0 answers
164 views

How to restart DaemonSet using Fabric8 Java client

It is straightforward to restart a deployment or ReplicatSet using fabric8's K8S Java client. E.g. client.apps().deployments().inNamespace("test") .withName("test-deployment") ...
JustWonder's user avatar
  • 2,373
0 votes
3 answers
709 views

Fabric8 KubernetesClient sends volumeName as empty string for PersistentVolumeClaim causing Forbidden: spec is immutable after creation

I want to apply the following yaml multiple times with the fabric8 kubernetes-client apiVersion: v1 kind: PersistentVolumeClaim metadata: name: my-pvc spec: storageClassName: my-storage-class ...
lance-java's user avatar
  • 25.7k
0 votes
1 answer
89 views

Ensure ingress rule creation

My problem: i create ingress rule via kubernetes-client: try (InputStream is = IOUtils.toInputStream(crd, StandardCharsets.UTF_8)) { client.load(is).inNamespace(namespaceName)....
aarexer's user avatar
  • 523
2 votes
0 answers
393 views

How to delete Ingress rules with java synchronously

I am using Kubernetes and Ingress via fabric8 kubeclient. I have namespaces with user content and in each namespace i have an ingress rule. I need to remove the namespaces with user content on request....
dmorar's user avatar
  • 51
0 votes
1 answer
509 views

Fabric8 failed to watch custom resource in the junit test

I am trying to learn how to test custom resource watcher in the Fabric8, I follow the example from this link https://github.com/r0haaaan/kubernetes-mockserver-demo/blob/master/src/test/java/io/fabric8/...
Joe's user avatar
  • 623
1 vote
1 answer
365 views

Create DockerFile using fabric8 that copies shared libraries

I am trying to run DJL(Deep java library) within an application on my Kubernetes Cluster( Debian 11 nodes). I am using fabric8 and maven to dynamically create my DockerFile this is what generated so ...
Jeryl Cook's user avatar
6 votes
1 answer
3k views

Deprecated APIs when trying to migrate cluster to v1.22

I attempted to migrate my cluster and I get the Migrate to updated APIs to upgrade to v1.22. error in GCP Control Panel: GCP Screenshot It list that I have called the following APIs: /apis/networking....
Ilian Tetradev's user avatar
0 votes
0 answers
74 views

Maven execute module pom using profile from parent pom

I want to build docker images using profile in parent pom, which looks like this: ... <build> <pluginManagement> <plugins> <plugin> ...
Kraton's user avatar
  • 1
1 vote
0 answers
167 views

Multiple version of spring-cloud-kubernetes jar

I am really confused in jars present in spring-cloud-kubernetes landscape. This page mentions 2 flavours of each jar, when to use which https://github.com/spring-cloud/spring-cloud-kubernetes#2-...
SauriBabu's user avatar
  • 414
0 votes
1 answer
453 views

Not able to access resource from kubernates operator

I am getting below error when I try to fetch resource(test-associations) which is created by assocOperator(kubernates operator deployed at stage level) in testns2 namespace from test-operator code (...
santosh jk's user avatar
0 votes
0 answers
547 views

How can I refer secrets from custom resource

How can I refer secret value from custom resource ? I am trying some thing like below but its not working configuration: baseUrl: "some url" username: "jack" password: ...
santosh jk's user avatar
1 vote
1 answer
60 views

Sequence kubernates Operators

I have two k8s operators say operatorA and operatorB . I have both custom resources present in microservice(helm/templates). how can I make sure custom resource for operatorB applied only after ...
santosh jk's user avatar
2 votes
0 answers
207 views

Spark 3.2 on Kubernetes keeps throwing okhttp3/okio EOFException

I'm using Spark 3.2.1 image that was built from the official distribution via `docker-image-tool.sh', on Kubernetes 1.18 cluster. Everything works fine, except for this error message every 90 seconds: ...
shay__'s user avatar
  • 3,815
2 votes
1 answer
1k views

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 = "<Kube Master Url>"; Map<String, String> ...
user1188867's user avatar
  • 3,776
0 votes
1 answer
333 views

kubectl get deploy deploymentname -o yaml equivalent in Fabric8 client

I've an existing deployment in my Kubernetes cluster. I want to read its deployment.yaml file from Kubernetes environment using fabric8 client.Functionality similar to this command - kubectl get ...
Sapna Girdhani's user avatar
0 votes
0 answers
398 views

port forwarding kubernetes issue

I am running into a port forwarding issue with my service. The DB starts off via deployment YAML, and when my tomcat that is started manually tries to use it, it gets the connection but after 2 mins ...
Madhuri Devidi's user avatar
0 votes
0 answers
565 views

Break in fabric8 kubernetes client mock server

We were using fabric8 kubernetes client 5.3.x for watcher and it worked fine. Recently when we moved to 5.11.2 there were many changes observed and eventually the JUnit Tests started failing. We use ...
Karthick M's user avatar
1 vote
0 answers
484 views

Mocking of KubernetesClient throws InvalidUseOfMatchersException: Could not evaluate toString()

for my test I need to mock a io.fabric8.kubernetes.client.KubernetesClient. This is what my test looks like: @Mock(answer = Answers.RETURNS_DEEP_STUBS) KubernetesClient kubernetesClient; ....
ledex's user avatar
  • 97
5 votes
1 answer
1k views

Kubernetes Operators: Informers vs. reconcile loop

I recently got started with building a Kubernetes operator. I'm using the Fabric8 Java Kubernetes Client but I think my question is more general and also applies to other programming languages and ...
Sören Henning's user avatar
0 votes
1 answer
432 views

kubernetes-maven-plugin - Dockerfile Build Fails with .git issue

I am testing out some migration in Maven from a Spotify dockerfile plugin with Fabric8 to just using Eclipse's JKube plugin. I have been hitting errors with what I thought would be a simple enough ...
Dennis's user avatar
  • 3,683
1 vote
2 answers
555 views

Fabric8 exec statuscode always 1000

I want to get the status code of my command executed in a container with Fabric8 Java Kubernetes client. Here is the script located in my container: echo Bye Bye exit 1 When I run the script with CLI ...
Geoffrey's user avatar
  • 1,151
0 votes
0 answers
674 views

How do I get the latest pods using for labels using fabric8 kubernetes client after re-creating/replacing the deployment?

I keep getting the older pods while listing pods (pods in older deployment) for a deployment after recreating the deployment (either by replace or delete and create), using this code: List<Pod> ...
lprakashv's user avatar
  • 1,121
1 vote
1 answer
733 views

How do I read a file from deployment's pods using fabric8 kubernetes java client?

How can I read a file from a deployment's pods? More specifically, I want fabric8's kubernetes java client equivalent of the following command: kubectl exec --stdin --tty deployment/otel-collector -n ...
lprakashv's user avatar
  • 1,121
0 votes
1 answer
885 views

Fabric8 customResourceDefinitions test

I am working on Fabric8 unit test, now I am trying to create a CRD against KubernetesServer. import io.fabric8.kubernetes.api.model.apiextensions.v1.CustomResourceDefinition; public class ...
Joe's user avatar
  • 623
0 votes
1 answer
125 views

Mock CustomResouce with Fabric8

I have applied Fabric8 to access CustomResource in the OpenShift, the following is an example code that works. Now I am writing Junit test, I get stuck by mocking, there are a few of things that needs ...
Joe's user avatar
  • 623
2 votes
1 answer
507 views

Retrieve list of openshift resources with fabric8 openshift-client

I am trying to get a list of all possible resources of a given cluster using the fabric8 openshift-client (or kubernetes-client), so trying to obtain same as command oc api-resources. So far I am able ...
alphamikevictor's user avatar
1 vote
1 answer
358 views

Cannot deserialize value of type when getting CertificateRequest

I am working on fabric8 CertificateRequest, I followed https://github.com/rohankanojia-forks/cert-manager-java-extension-demo/blob/main/src/main/java/io/fabric8/demo/CertificateRequestGet.java to try ...
Joe's user avatar
  • 623

1
2 3 4 5
8