You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Deployment succeeds, but External IP, and the port is not recognized. The IP is the host IP of minikube, which can be found in the deployed POD's yaml. I could find the port mapping using kubectl get svc command.
Repro step:
Open Cloud Code - Welcome Page
Click on Starter Apps
Select Java: Hello World option
Execute Cloud Code: Deploy command from the command palette
Ignore errors from repackage goal of spring-boot-maven-plugin:2.1.2.RELEASE
Error:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.835 s
[INFO] Finished at: 2019-04-25T14:02:24Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.1.2.RELEASE:repackage (repackage) on project hello-world: Execution repackage of goal org.springframework.boot:spring-boot-maven-plugin:2.1.2.RELEASE:repackage failed: Unable to find main class -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[INFO] Build failures were ignored.
This error can be fixed by adding following to plugin section of pom.xml
@prafullkotecha Eventually, does the external IP shows up when you run kubectl get svc command? What the extension does under the scene is just wait until kubectl get svc shows an external IP.
@quoctruong - No. With minikube, the external IP is always in <pending> mode, and that's why we need to use the "minikube" IP, in place of external IP. I found this out while trying to deploy knative samples on minikube. https://knative.dev/docs/install/knative-with-minikube/
Environment:
Extension version: 0.0.8
VSCode version:1.34.0-insider
OS: darwin (macOS Mojave, 10.14.4)
Description:
Deployment succeeds, but External IP, and the port is not recognized. The IP is the host IP of minikube, which can be found in the deployed POD's yaml. I could find the port mapping using
kubectl get svc
command.Repro step:
Cloud Code - Welcome
PageStarter Apps
Java: Hello World
optionCloud Code: Deploy
command from the command paletterepackage
goal ofspring-boot-maven-plugin:2.1.2.RELEASE
Error:
This error can be fixed by adding following to
plugin
section ofpom.xml
hostIP
property of the pod, usingkubectl get pods -o yaml
command.kubectl get svc
command. The output would look something like:<pending>
http://<hostIP>:<mapped-port>
The text was updated successfully, but these errors were encountered: