[
https://issues.apache.org/jira/browse/CAMEL-22144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gaelle Fournier updated CAMEL-22144:
------------------------------------
Description:
The generated project still uses 8080 as port for the liveness and readiness
port in the manifest when it is supposed to be 9876 with the runtime
spring-boot.
{code:java}
kind: Deployment
metadata:
labels:
camel.apache.org/app: camel-quarkus
app.kubernetes.io/runtime: camel
camel/integration-runtime: camel
app.kubernetes.io/name: camel-quarkus
app.openshift.io/runtime: camel
app: camel-quarkus
provider: jkube
version: 1.0-SNAPSHOT
group: org.example.project
app.kubernetes.io/part-of: org.example.project
app.kubernetes.io/managed-by: jkube
app.kubernetes.io/version: 1.0-SNAPSHOT
name: camel-quarkus
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app.kubernetes.io/name: camel-quarkus
app: camel-quarkus
provider: jkube
group: org.example.project
app.kubernetes.io/part-of: org.example.project
app.kubernetes.io/managed-by: jkube
template:
metadata:
labels:
app.kubernetes.io/name: camel-quarkus
app: camel-quarkus
provider: jkube
version: 1.0-SNAPSHOT
group: org.example.project
app.kubernetes.io/part-of: org.example.project
app.kubernetes.io/managed-by: jkube
app.kubernetes.io/version: 1.0-SNAPSHOT
name: camel-quarkus
spec:
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: camel-quarkus:1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /observe/health/live
port: 8080
scheme: HTTP
initialDelaySeconds: 10
successThreshold: 1
name: camel-quarkus
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /observe/health/ready
port: 8080
scheme: HTTP
initialDelaySeconds: 5
successThreshold: 1
securityContext:
privileged: false
startupProbe:
failureThreshold: 3
httpGet:
path: /observe/health/started
port: 8080
scheme: HTTP
initialDelaySeconds: 5
successThreshold: 1{code}
At least adding
{noformat}
management.server.port=9876{noformat}
and the port in the container should help at list for spring-boot
{code:java}
containerPort: 9876
name: management
protocol: TCP{code}
I did not try quarkus and camel-main but there should be a similar issue.
was:
The generated project still uses 8080 as port for the liveness and readiness
port in the manifest when it is supposed to be 9876 with the runtime
spring-boot.
```
kind: Deployment
metadata:
labels:
camel.apache.org/app: camel-quarkus
app.kubernetes.io/runtime: camel
camel/integration-runtime: camel
app.kubernetes.io/name: camel-quarkus
app.openshift.io/runtime: camel
app: camel-quarkus
provider: jkube
version: 1.0-SNAPSHOT
group: org.example.project
app.kubernetes.io/part-of: org.example.project
app.kubernetes.io/managed-by: jkube
app.kubernetes.io/version: 1.0-SNAPSHOT
name: camel-quarkus
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app.kubernetes.io/name: camel-quarkus
app: camel-quarkus
provider: jkube
group: org.example.project
app.kubernetes.io/part-of: org.example.project
app.kubernetes.io/managed-by: jkube
template:
metadata:
labels:
app.kubernetes.io/name: camel-quarkus
app: camel-quarkus
provider: jkube
version: 1.0-SNAPSHOT
group: org.example.project
app.kubernetes.io/part-of: org.example.project
app.kubernetes.io/managed-by: jkube
app.kubernetes.io/version: 1.0-SNAPSHOT
name: camel-quarkus
spec:
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: camel-quarkus:1.0-SNAPSHOT
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /observe/health/live
port: 8080
scheme: HTTP
initialDelaySeconds: 10
successThreshold: 1
name: camel-quarkus
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /observe/health/ready
port: 8080
scheme: HTTP
initialDelaySeconds: 5
successThreshold: 1
securityContext:
privileged: false
startupProbe:
failureThreshold: 3
httpGet:
path: /observe/health/started
port: 8080
scheme: HTTP
initialDelaySeconds: 5
successThreshold: 1
```
At least adding `management.server.port=9876` and the port in the container
should help at list for spring-boot
```
- containerPort: 9876
name: management
protocol: TCP
```
I did not try quarkus and main but there should be a similar issue.
> camel-jbang: Kubernetes plugin management port for liveness/readiness
> ---------------------------------------------------------------------
>
> Key: CAMEL-22144
> URL: https://issues.apache.org/jira/browse/CAMEL-22144
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.12.0
> Reporter: Gaelle Fournier
> Priority: Major
>
> The generated project still uses 8080 as port for the liveness and readiness
> port in the manifest when it is supposed to be 9876 with the runtime
> spring-boot.
>
>
> {code:java}
> kind: Deployment
> metadata:
> labels:
> camel.apache.org/app: camel-quarkus
> app.kubernetes.io/runtime: camel
> camel/integration-runtime: camel
> app.kubernetes.io/name: camel-quarkus
> app.openshift.io/runtime: camel
> app: camel-quarkus
> provider: jkube
> version: 1.0-SNAPSHOT
> group: org.example.project
> app.kubernetes.io/part-of: org.example.project
> app.kubernetes.io/managed-by: jkube
> app.kubernetes.io/version: 1.0-SNAPSHOT
> name: camel-quarkus
> spec:
> replicas: 1
> revisionHistoryLimit: 2
> selector:
> matchLabels:
> app.kubernetes.io/name: camel-quarkus
> app: camel-quarkus
> provider: jkube
> group: org.example.project
> app.kubernetes.io/part-of: org.example.project
> app.kubernetes.io/managed-by: jkube
> template:
> metadata:
> labels:
> app.kubernetes.io/name: camel-quarkus
> app: camel-quarkus
> provider: jkube
> version: 1.0-SNAPSHOT
> group: org.example.project
> app.kubernetes.io/part-of: org.example.project
> app.kubernetes.io/managed-by: jkube
> app.kubernetes.io/version: 1.0-SNAPSHOT
> name: camel-quarkus
> spec:
> containers:
> - env:
> - name: KUBERNETES_NAMESPACE
> valueFrom:
> fieldRef:
> fieldPath: metadata.namespace
> image: camel-quarkus:1.0-SNAPSHOT
> imagePullPolicy: IfNotPresent
> livenessProbe:
> failureThreshold: 3
> httpGet:
> path: /observe/health/live
> port: 8080
> scheme: HTTP
> initialDelaySeconds: 10
> successThreshold: 1
> name: camel-quarkus
> ports:
> - containerPort: 8080
> name: http
> protocol: TCP
> readinessProbe:
> failureThreshold: 3
> httpGet:
> path: /observe/health/ready
> port: 8080
> scheme: HTTP
> initialDelaySeconds: 5
> successThreshold: 1
> securityContext:
> privileged: false
> startupProbe:
> failureThreshold: 3
> httpGet:
> path: /observe/health/started
> port: 8080
> scheme: HTTP
> initialDelaySeconds: 5
> successThreshold: 1{code}
>
>
>
> At least adding
> {noformat}
> management.server.port=9876{noformat}
> and the port in the container should help at list for spring-boot
> {code:java}
> containerPort: 9876
> name: management
> protocol: TCP{code}
> I did not try quarkus and camel-main but there should be a similar issue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)