Skip to content

Instantly share code, notes, and snippets.

@davsclaus
Created March 22, 2017 12:02
Show Gist options
  • Select an option

  • Save davsclaus/4e5a5138906c17f5576b8a7358ae30e2 to your computer and use it in GitHub Desktop.

Select an option

Save davsclaus/4e5a5138906c17f5576b8a7358ae30e2 to your computer and use it in GitHub Desktop.
davsclaus:/Users/davsclaus/$ kubectl get service -w
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helloswarm-kubernetes 10.0.0.245 <pending> 8080:30629/TCP 17h
kubernetes 10.0.0.1 <none> 443/TCP 1d
spring-kubernetes 10.0.0.85 <none> 8080/TCP 17h
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helloswarm-kubernetes 10.0.0.245 <nodes> 8080:31211/TCP 17h
@davsclaus
Copy link
Copy Markdown
Author

And when using f8-expose excluded

davsclaus:/Users/davsclaus/$ kubectl get service -w
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helloswarm-kubernetes 10.0.0.245 8080:30629/TCP 17h
kubernetes 10.0.0.1 443/TCP 1d
spring-kubernetes 10.0.0.85 8080/TCP 17h
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helloswarm-kubernetes 10.0.0.245 8080:31211/TCP 17h
helloswarm-kubernetes 10.0.0.245 8080:31514/TCP 17h

@davsclaus
Copy link
Copy Markdown
Author

My pom.xml is now

      <plugin>
        <groupId>io.fabric8</groupId>
        <artifactId>fabric8-maven-plugin</artifactId>
        <version>${fabric8.maven.plugin.version}</version>
        <configuration>
          <enricher>
            <excludes>
              <exclude>f8-expose</exclude>
            </excludes>
            <config>
              <fmp-service>
                <type>NodePort</type>
              </fmp-service>
            </config>
          </enricher>
        </configuration>
        <executions>
          <execution>
            <id>fmp</id>
            <goals>
              <goal>resource</goal>
              <goal>helm</goal>
              <goal>build</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment