Questions tagged [fabric8-maven-plugin]
35 questions
                    
                    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
 
                    3
                    
            votes
                
                1 answer
            
        dynamically or programmatically unmount / detach a persistent volum claim from a kubernetes pod and assign (mount /attach ) it to another pod
I have a pod called mypod0 with two persistent volumes.
mypd0, mypd1 (provided through two persistent volume claims myclaim0, myclaim1) mounted into mypod0 at /dir0, /dir1 as shown in the pod definition below.
apiVersion: v1
kind: Pod
metadata:
 …
        
        Mazen Ezzeddine
        
- 662
 - 1
 - 8
 - 28
 
                    3
                    
            votes
                
                0 answers
            
        Not able to connect to a docker container from windows using io.fabric8
I am running some Integration tests on a Windows 10 machine. I have a Java maven project that uses io.fabric8 docker maven plugin to manage docker images and containers.
I am having issues when my Integration Tests are trying to communicate with…
        
        breaktop
        
- 1,899
 - 4
 - 37
 - 58
 
                    3
                    
            votes
                
                2 answers
            
        fabric8 maven plugin configuration with image running Java > 8
I am using fabric8 maven plugin to deploy a vertx application into Openshift. My application is running with Java 11.
However, by default, the fabric8 maven plugin uses a Java 8 Docker image to create my vertx application image.
How is it possible…
        
        rico
        
- 1,843
 - 2
 - 24
 - 41
 
                    2
                    
            votes
                
                1 answer
            
        fabric8io docker-maven-plugin assembly and external artifact
I am trying to create a docker image from within maven which includes artifacts from a different maven project. But the examples I have copied do not appear to be working.
I think the problem here is I do not really understand how assemblies work…
        
        Sodved
        
- 8,428
 - 2
 - 31
 - 43
 
                    2
                    
            votes
                
                1 answer
            
        deploying spring-cloud-kubernetes kubernetes-hello-world-example fails
I am trying to run the 1.0.1.RELEASE version of the example https://github.com/spring-cloud/spring-cloud-kubernetes/tree/master/spring-cloud-kubernetes-examples/kubernetes-hello-world-example but it fails with this error in both minikube and in…
        
        stephen newman
        
- 533
 - 4
 - 17
 
                    2
                    
            votes
                
                1 answer
            
        Save Multiple docker images into one tar.gz file with maven fabric8 plugin
We are using io.fabric8:docker-maven-plugin:0.27.2 to build docker images.
my maven project consist of 3 modules (module1, module2 and module3). Each module builds a docker image based on the dockerfile present within each module.
Now, when I run…
        
        Dinesh
        
- 1,711
 - 2
 - 20
 - 41
 
                    1
                    
            vote
                
                1 answer
            
        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 client ver:6.0.0.
E.g.
…
        
        Vinay
        
- 81
 - 9
 
                    1
                    
            vote
                
                0 answers
            
        How to access a plugin in a maven child module from the parent module
I have a maven multi-module setup, which includes the fabric8 plugin in a profile defined in a child module to build a Docker image if the profile is active, see below
Root pom
        
            
            
                
                    
    
    
        
    
    
                
            
        
     
        Joseph McCarthy
        
- 897
 - 2
 - 19
 - 41
 
                    1
                    
            vote
                
                1 answer
            
        Maven / Fabric8 - build an OpenShift container image against a remote OpenShift installation
With Docker I need only provide DOCKER_HOST and appropriate credentials in order for the fabric8 plugin to be able to build my container image.  As long as a Docker Registry is available - there is no need to install Docker-related infrastructure on…
        
        Robin Roos
        
- 100
 - 8
 
                    1
                    
            vote
                
                0 answers
            
        How can I specify docker image specification for fabric maven plugin
I am trying to deploy a simple spring-boot application in openshift using maven fabric plugin. I use fabric resource fragments method as explained here. I don't have any XML configuration in the fabric plugin section of my pom.
Now When I run the…
        
        Robin
        
- 109
 - 9
 
                    1
                    
            vote
                
                0 answers
            
        fabric8 docker-maven-plugin: add additional tag on build from command line
how can I add an additioanal tag on demand using the command line? 
It's simular like question 44554857, but I can't use that solution, because I need to pass the tag only in a view cases.
        
        Wookiee
        
- 139
 - 2
 - 12
 
                    1
                    
            vote
                
                1 answer
            
        How do I keep the Eureka server url dynamic in the Eureka Client while using docker?
I am using the fabric8 docker-maven-plugin to build image for my Spring boot microservices.
io.fabric8 
docker-maven-plugin 
The problem is that while running the application in docker containers I have to…
        
        Roshni
        
- 137
 - 1
 - 2
 - 11
 
                    1
                    
            vote
                
                0 answers
            
        Cannot push to an insecure registry using http using docker-maven-plugin
I am trying to push the image using fabric8 docker-maven-plugin
Here is the relevant part of the plugin configuration
  
    
      io.fabric8 
      docker-maven-plugin 
     …   
        
        Sniper
        
- 1,428
 - 1
 - 12
 - 28
 
                    1
                    
            vote
                
                1 answer
            
        Override default jkube deployment name
Is it possible to override the default deployment naming in jkube? I want to do something similar to the docker image naming where I can provide a pattern.
The deployment section in the resources documentation looked promising but those options are…
        
        Bill
        
- 43
 - 4