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

Fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins which provides

see fabric8 on github

381 questions
25
votes
2 answers

Programmatically get the name of the pod that a container belongs to in Kubernetes?

Is there a way to programmatically get the name of the pod that a container belongs to in Kubernetes? If so how? I'm using fabric8's java client but curl or something similar will be fine as well. Note that I don't want to find the pod using a…
Johan
  • 37,479
  • 32
  • 149
  • 237
15
votes
4 answers

Forbidden: updates to statefulset spec for fields other than 'replicas', 'template', and 'updateStrategy' are forbidden

I use io.fabric8.kubernetes-client, version 3.1.8 to do RollingUpdate of kubernetes resource. It is fine for Deployment. But I meet an exception for StatefulSet. But it is also fine if I use 'kubectl apply -f ***.yaml' for the StatefulSet. Code to…
Cain
  • 585
  • 1
  • 9
  • 25
15
votes
2 answers

What is CrashLoopBackOff status for openshift pods?

There is more than one example where I have seen this status from a pod running in openshift origin. In this case it was the quickstart for the cdi camel example. I was able to successfully build and run it locally (non - openshift) but when I try…
ZeroGraviti
  • 1,047
  • 2
  • 12
  • 28
12
votes
2 answers

Kubernetes too old resource version

I'm working on a operator which create watch for different k8s resources. Every now and then I can see below exception in the logs and application just stop. What is causing this issue and how can I fix this…
BobCoder
  • 743
  • 2
  • 10
  • 27
12
votes
2 answers

Pods stuck in pending state

I am using the Kubernetes-client java client to create Deployments on a Kubernetes cluster. THis is the code Deployment deployment = new DeploymentBuilder() .withNewMetadata() .withName("first-deployment") .endMetadata() …
user_mda
  • 18,148
  • 27
  • 82
  • 145
10
votes
2 answers

Deploy a .war into a Docker image by fabric8io docker-maven-plugin

I am very new to Docker and the fabric8io docker-maven-plugin. I am having some hard times to deploy a .war into my image derived by the jboss/wildfly one. I can succesful build my image shipped with .war by command line but I can't do the same by…
Francesco
  • 1,742
  • 5
  • 44
  • 78
7
votes
2 answers

Does Fabric8io K8s java client support patch() or rollingupdate() using YAML snippets?

I am trying to program the patching/rolling upgrade of k8s apps by taking deployment snippets as input. I use patch() method to apply the snippet onto an existing deployment as part of rollingupdate using fabric8io's k8s client APIS.. Fabric8.io…
A.R.K.S
  • 1,692
  • 5
  • 18
  • 40
7
votes
1 answer

Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring

when i run this code public class test2 { public static void main(String[] args) { // TODO Auto-generated method stub String podName = "xrdpprocan"; String namespace = "default"; String master = "https://my_ip_adress"; …
yasmine
  • 81
  • 1
  • 2
  • 3
6
votes
1 answer

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…
6
votes
2 answers

How can I specify the spring.profiles.active param with a value from an environment variable using fabric8 maven plugin?

I have a K8s config map that defines an ENVIRONMENT parameter. That value is mounted as an environment variable on the deployment yaml using an excerpt in src/fabric8/deployment.yml: spec: template: spec: containers: - env: …
codependent
  • 23,193
  • 31
  • 166
  • 308
6
votes
4 answers

Cannot create docker access object

I would like have spring integration test with the plugin of fabric8, but when I try to run the test I got the next error: Cannot create docker access object I have ubuntu and I think that I have well configurated dockers, I haven't had any…
nole
  • 1,422
  • 4
  • 20
  • 32
5
votes
1 answer

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 libraries. When reading through blog posts,…
5
votes
1 answer

Fabric8 docker-maven-plugin unable set labels to an image

Using the following plugin io.fabric8 docker-maven-plugin 0.33
Sniper
  • 1,428
  • 1
  • 12
  • 28
5
votes
1 answer

How to load properties from kubernetes configMap based on activated spring profiles

Using helm I am setting the SPRING_PROFILES_ACTIVE as a dev or prod based on the environment. But now I want to load properties from kubernetes configMap based on the activated profile. Below is the sample configMap apiVersion: v1 data: …
ravi
  • 51
  • 3
5
votes
1 answer

How to get kubernetes secret data from java

By following link https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/ it is described how to add secret (encripted) data. How to get that key-value s with from java client?
emanuel07
  • 738
  • 12
  • 27
1
2 3
25 26