Comments (16)
Currently this is hard coded, but ideally we would expect the application.properties
for and the spring boot dependencies for the targetPort
.
The service port is also hard coded to be == targetPort
, but I agree that probably doesnt make much sense. Guess we can go for 80 (or make some simple heuristic mappings like '8080' --> '80', '8443' --> '443' etc.).
from fabric8-maven-plugin.
agreed. I like the idea of the defaults being something like '8080' --> '80', '8443' --> '443'
from fabric8-maven-plugin.
👍 to 80/443 mappings. Important for simple, clean URLs.
from fabric8-maven-plugin.
i'll take that. The idea is to have a static default mapping like
8080 -> 80
8081 -> 80
8181 -> 80
8443 -> 443
....
This would be used if a port is autodetected via a Enricher
as an Docker image exposed port and used when it creates a default service. To override this the user then can either add a service definition directly so that no default service gets created or uses a configuration for the enricher when creating the default object:
<customizer>
<default.service.port.8080>81</default.service.port>
</customizer>
The hope is, that the amount of configuration for Enrichers
(those who either create k8s default resources or enrich labels and annotations) and Customizers
(those who auto-create images based on detected maven dependencies) is kept small.
Anything more complicated should go either in the plugin configuration (which has an XML schema) or into external Docker and YAML files (the alternative way to configure stuff).
from fabric8-maven-plugin.
BTW I think I fixed this for 80/8080 - but didn't add the configurable mapping file
from fabric8-maven-plugin.
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!
from fabric8-maven-plugin.
I still think that might be a valuable addition. I.e. to tune the default service enricher that it kind of normalizes the access to the pods behind to well known and accepted ports.
from fabric8-maven-plugin.
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!
from fabric8-maven-plugin.
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!
from fabric8-maven-plugin.
@rohanKanojia @dev-gaur Anything you like to pick up ? Should be a quick win and helpful for edge cases.
from fabric8-maven-plugin.
@rhuss On it
from fabric8-maven-plugin.
@rhuss what if the user doesn't want to normalize their port mappings on purpose ?
from fabric8-maven-plugin.
Should I add a normalizePorts
property for xml configuration ?
from fabric8-maven-plugin.
@rohanKanojia @lordofthejars thoughts ?
from fabric8-maven-plugin.
@rhuss what if the user doesn't want to normalize their port mappings on purpose ?
I think then he should configure the port mappings explicitly and don't use the enricher.
from fabric8-maven-plugin.
in general, enricher should carry as little configuration as needed, delegating for more advanced configuration options to XML/fragments. Enrichers are expressing our opinionated way to do things, a single enricher not a swiss army knife.
from fabric8-maven-plugin.
Related Issues (20)
- Update samples/quarkus HOT 2
- Warning messages in Jenkins logs from java.util.concurrent.RejectedExecutionException HOT 5
- Missing documentation for Ingress Enricher HOT 1
- Simple Dockerfile mode: provided Dockerfile is always skipped HOT 1
- Execution default of goal io.fabric8:fabric8-maven-plugin:3.5.42:resource failed: Container null has no Docker image configured. HOT 4
- FMP OpenShift mode S2I Failed running assemble script - /bin/sh: 1: /usr/libexec/s2i/assemble: not found HOT 9
- Add generator and enricher for WildFly bootable JAR HOT 3
- ISTIO artifact Enrichment HOT 4
- Deployment to OpenShift 4.6 not working using login parameters instead of oc login HOT 7
- config annotations for configmap
- -D options don't work in IntelliJ Ultimate 2021.2.2 anymore HOT 5
- How to solve this problem:push failed: Service hub created without a docker access to a docker daemon HOT 1
- Liveness and readiness TCP ports are not serialized as numbers when defined as numbers HOT 3
- Multiple assemblies use the name "maven". Please assign each assembly a unique name. - using only single assembly HOT 2
- Multi-Architecture Build query HOT 8
- mac m1 install fabric8-maven-plugin error HOT 7
- Fallback to default docker driver to speed-up build time in buildx mode HOT 1
- build error [125] on mac M2 HOT 5
- multi-arch image with different native architecture giving issues HOT 1
- podPodResource.watchLog().getOutput(); error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric8-maven-plugin.