github.com/verrazzano/verrazzano@v1.7.1/tests/testdata/test-applications/coherence/hello-coherence/README.md (about) 1 ## Verrazzano Coherence Workload 2 3 This directory contains sample Open Application Model (OAM) resources for testing the VerrazzanoCoherenceWorkload. 4 5 ## Deploy the Product Catalog Service from Coherence Helidon Sockshop sample to Verrazzano 6 7 Create a namespace for the sample application and add a label identifying the namespace as managed by Verrazzano. To run this application in the default namespace, skip creating the namespace and do not specify the namespace in all the kubectl commands below. 8 9 $ kubectl create namespace hello-coherence 10 $ kubectl label namespace hello-coherence verrazzano-managed=true 11 12 Deploy the application, by applying the sample resource 13 14 $ Set the registry URL for the sample application in hello-coherence-comp.yaml 15 $ kubectl apply -f <application directory>/hello-coherence-comp.yaml -n hello-coherence 16 $ kubectl apply -f <application directory>/hello-coherence-app.yaml -n hello-coherence 17 18 Wait for the sample application to be ready. 19 20 $ kubectl get pods -n hello-coherence 21 $ or using 22 $ kubectl wait --for=condition=Ready pods --all -n hello-coherence --timeout=300s 23 24 Get the generated host name for the application. 25 26 $ ADDRESS=$(kubectl get service -n istio-system \ 27 istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}') 28 29 Get the EXTERNAL_IP address of the istio-ingressgateway service. 30 31 $ HOST=$(kubectl get gateways.networking.istio.io \ 32 -n hello-coherence \ 33 -o jsonpath='{.items[0].spec.servers[0].hosts[0]}') 34 35 As a basic validation, perform an HTTP GET against /catalogue/size endpoint 36 37 $ curl -sk https://${HOST}/catalogue/size --resolve ${HOST}:443:${ADDRESS} 38 39 which should return JSON response: {"size":9} 40 41 If you are using nip.io, then you do not need to include --resolve. 42 43 Undeploy the application 44 To undeploy the application, delete the OAM resources for the sample 45 46 $ kubectl delete -f <application directory>/hello-coherence-app.yaml -n hello-coherence 47 $ kubectl delete -f <application directory>/hello-coherence-comp.yaml -n hello-coherence 48 49 Delete the namespace hello-coherence after the application pods are terminated. 50 51 $ kubectl delete namespace hello-coherence 52 53 Copyright (c) 2022, Oracle and/or its affiliates.