This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Service srv = new ServiceBuilder() | |
| .withNewMetadata() | |
| .withName("kubernetes") | |
| .addToLabels("component", "apiserver") | |
| .addToLabels("provider", "kubernetes") | |
| .endMetadata() | |
| .withNewSpec() | |
| .addNewPort() | |
| .withProtocol("TCP") | |
| .withPort(443) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "kind": "Service", | |
| "metadata": { | |
| "name": "kubernetes", | |
| "namespace": "default", | |
| "labels": { | |
| "component": "apiserver", | |
| "provider": "kubernetes" | |
| } | |
| }, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | //Instantiate the client | |
| KubernetesClient client = new DefaultKubernetesClient(); | |
| //Create a service | |
| Service myservice = ...; | |
| client.services().inNamespace("fabric8").create(myservice); | |
| //Create a service inline | |
| Service jenkins = client.services().inNamespace("fabric8").createNew() | |
| .withNewMetadata() | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -Didea.launcher.port=7536 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachi | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 07/13/15 12:49:13] [SSH] Opening SSH connection to 10.34.112.102:32924. | |
| No route to host | |
| ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins. | |
| java.lang.IllegalStateException: Connection is not established! | |
| at com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:1030) | |
| at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.getRemainingAuthMethods(TrileadSSHPublicKeyAuthenticator.java:88) | |
| at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.canAuthenticate(TrileadSSHPublicKeyAuthenticator.java:80) | |
| at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:207) | |
| at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:169) | |
| at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1173) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | kubernetes.service().inNamespace("namespace").withName("myService").visit(new Visitor<ServiceBuilder>() { | |
| @Override | |
| public void visit(ServiceBuilder serviceBuilder) { | |
| } | |
| }); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | + docker pull 172.30.211.224:5000/maven | |
| Error response from daemon: invalid registry endpoint https://172.30.211.224:5000/v0/: unable to ping registry endpoint https://172.30.211.224:5000/v0/ | |
| v2 ping attempt failed with error: Get https://172.30.211.224:5000/v2/: tls: oversized record received with length 20527 | |
| v1 ping attempt failed with error: Get https://172.30.211.224:5000/v1/_ping: tls: oversized record received with length 20527. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry 172.30.211.224:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/172.30.211.224:5000/ca.crt | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "image": "camel-cdi-jdbc", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "camel-cdi-jdbc", | |
| "env": [ | |
| { | |
| "name": "MYSQL_SERVICE_USERNAME", | |
| "value": "admin" | |
| }, | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "image": "camel-cdi-jdbc", | |
| "imagePullPolicy": "IfNotPresent", | |
| "name": "camel-cdi-jdbc", | |
| "env": [ | |
| { | |
| "name": "MYSQL_SERVICE_USERNAME", | |
| "value": "admin" | |
| }, | |
| { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import io.fabric8.annotations.Alias; | |
| import io.fabric8.annotations.ServiceName; | |
| import org.apache.camel.builder.RouteBuilder; | |
| import org.apache.camel.cdi.ContextName; | |
| import org.apache.camel.model.language.ConstantExpression; | |
| import javax.ejb.Startup; | |
| import javax.enterprise.context.ApplicationScoped; | |
| import javax.inject.Inject; | |
| import javax.sql.DataSource; |