davesargrad commented on issue #1059: camel-k installation struggles
URL: https://github.com/apache/camel-k/issues/1059#issuecomment-562175115
 
 
   I am running the kamel example RestWithUndertow.java
   
![image](https://user-images.githubusercontent.com/48793689/70247893-24296c00-1748-11ea-8b7d-03cef84cb3c4.png)
   
   
![image](https://user-images.githubusercontent.com/48793689/70247959-386d6900-1748-11ea-88e6-216ede7482a7.png)
   
   The integration is running. Apparently it exposes the service on port 8080 
   
   
![image](https://user-images.githubusercontent.com/48793689/70248086-694d9e00-1748-11ea-8736-a8f606e23892.png)
   
   
   ```
   [root@benin examples]# kubectl describe integration rest-with-undertow
   Name:         rest-with-undertow
   Namespace:    default
   Labels:       <none>
   Annotations:  <none>
   API Version:  camel.apache.org/v1alpha1
   Kind:         Integration
   Metadata:
     Creation Timestamp:  2019-12-05T15:04:46Z
     Generation:          1
     Resource Version:    1426020
     Self Link:           
/apis/camel.apache.org/v1alpha1/namespaces/default/integrations/rest-with-undertow
     UID:                 d26b52aa-b1ed-462e-819a-a81b5a1d0acd
   Spec:
     Dependencies:
       camel:rest
       camel:undertow
     Sources:
       Content:  /*
    * Licensed to the Apache Software Foundation (ASF) under one or more
    * contributor license agreements.  See the NOTICE file distributed with
    * this work for additional information regarding copyright ownership.
    * The ASF licenses this file to You under the Apache License, Version 2.0
    * (the "License"); you may not use this file except in compliance with
    * the License.  You may obtain a copy of the License at
    *
    *      http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
   
   //
   // To run this integrations use:
   //
   //     kamel run --name=rest-with-undertow --dependency=camel-rest 
--dependency=camel-undertow examples/RestWithUndertow.java
   //
   
   import org.apache.camel.Exchange;
   
   public class RestWithUndertow extends org.apache.camel.builder.RouteBuilder {
       @Override
       public void configure() throws Exception {
           restConfiguration()
               .component("undertow")
               .host("0.0.0.0")
               .port("8080");
   
           rest()
               .get("/hello")
               .to("direct:hello");
   
           from("direct:hello")
               .setHeader(Exchange.CONTENT_TYPE, constant("text/plain"))
               .transform().simple("Hello World");
       }
   }
   
       Name:  RestWithUndertow.java
   Status:
     Camel Version:  3.0.0-RC3
     Conditions:
       Last Transition Time:  2019-12-05T15:04:46Z
       Last Update Time:      2019-12-05T15:04:46Z
       Message:               camel-k
       Reason:                IntegrationPlatformAvailable
       Status:                True
       Type:                  IntegrationPlatformAvailable
       Last Transition Time:  2019-12-05T15:05:24Z
       Last Update Time:      2019-12-05T15:05:24Z
       Message:               kit-bnkhp3jaee59h4n740hg
       Reason:                IntegrationKitAvailable
       Status:                True
       Type:                  IntegrationKitAvailable
       Last Transition Time:  2019-12-05T15:05:24Z
       Last Update Time:      2019-12-05T15:05:24Z
       Message:               rest-with-undertow
       Reason:                DeploymentAvailable
       Status:                True
       Type:                  DeploymentAvailable
       Last Transition Time:  2019-12-05T15:05:24Z
       Last Update Time:      2019-12-05T15:05:24Z
       Message:               rest-with-undertow(http/80) -> 
integration(http/8080)
       Reason:                ServiceAvailable
       Status:                True
       Type:                  ServiceAvailable
       Last Transition Time:  2019-12-05T15:05:24Z
       Last Update Time:      2019-12-05T15:05:24Z
       Message:               no host or service defined
       Reason:                IngressNotAvailable
       Status:                False
       Type:                  ExposureAvailable
     Dependencies:
       camel:bean
       camel:direct
       camel:rest
       camel:undertow
       mvn:org.apache.camel.k/camel-k-loader-java
       mvn:org.apache.camel.k/camel-k-runtime-main
     Digest:           v96oRUdREvEEVrwGm9DcL9iKMkyxkksMFt2UtyWgSD8s
     Image:            
10.93.97.123:5007/default/camel-k-kit-bnkhp3jaee59h4n740hg:1425898
     Kit:              kit-bnkhp3jaee59h4n740hg
     Phase:            Running
     Platform:         camel-k
     Replicas:         1
     Runtime Version:  1.0.7
     Version:          1.0.0-M4
   Events:             <none>
   ```
   
   
   Do I need to create another k8s service (e.g. loadbalancer) to map a port to 
either 80 or 8080 in the pod?
   
![image](https://user-images.githubusercontent.com/48793689/70247869-17a51380-1748-11ea-8152-c20a3d9eb605.png)
   
   The pod runs on spain.
   
![image](https://user-images.githubusercontent.com/48793689/70248199-926e2e80-1748-11ea-8fd3-0a2c33933b16.png)
   
   I've tried to browse to the worker IP at both port 80 and port 8080
   
   
![image](https://user-images.githubusercontent.com/48793689/70248272-a87bef00-1748-11ea-9a1a-928ba23aa438.png)
   
   
   How do I browse to the "hello" endpoint?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to