Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
3.4.3
-
None
-
linux
kubernetes
-
Unknown
Description
Hi,
I am trying to use the kubernetes component to an https-kubernetes-master but the component is doing only HTTP requests, is there a way to force the component to do HTTPS?
Below stacktrace:
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: http://kubernetes.default/k8s/clusters/c-9rw6k/apis/batch/v1/namespaces/withoutistio/jobs. Message: Client sent an HTTP request to an HTTPS server.
.
Message History (complete message history is disabled)
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[journey.sftcontrol] [journey.sftcontrol] [from[http://0.0.0.0:8080/myms/public/task?httpMethodRestrict=POST%2] [ 1198]
...
[kubernetes-jobcrea] [to1 ] [kubernetes-job:///kubernetes.default/k8s/clusters/c-9rw6k?oauthToken=kube] [ 0]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: http://kubernetes.default/k8s/clusters/c-9rw6k/apis/batch/v1/namespaces/withoutistio/jobs. Message: Client sent an HTTP request to an HTTPS server.
.
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.requestFailure(OperationSupport.java:568)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.assertResponseCode(OperationSupport.java:507)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:471)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:430)
at io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleCreate(OperationSupport.java:251)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleCreate(BaseOperation.java:848)
at io.fabric8.kubernetes.client.dsl.base.BaseOperation.create(BaseOperation.java:368)
at org.apache.camel.component.kubernetes.job.KubernetesJobProducer.doCreateJob(KubernetesJobProducer.java:149)
at org.apache.camel.component.kubernetes.job.KubernetesJobProducer.process(KubernetesJobProducer.java:76)
at org.apache.camel.support.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:67)
at org.apache.camel.processor.SendProcessor.lambda$process$2(SendProcessor.java:186)
at org.apache.camel.impl.engine.DefaultProducerCache.doInAsyncProducer(DefaultProducerCache.java:309)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:186)
at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:395)
at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:148)
at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:60)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:147)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:286)
at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:83)
at org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:40)
at org.apache.camel.component.undertow.UndertowConsumer.handleRequest(UndertowConsumer.java:230)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:370)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1449)
at java.lang.Thread.run(Thread.java:748)