# Go to operator project/ or create a new one. # Create the PostgreSQL from the catalogue with the default values # Create the app {code:java} $oc new-app golang~https://github.com/aerogear/mobile-security-service --strategy=docker -e PGHOST=postgresql --name=mobile-security-service-app {code} # Create the service for the new-app * Ref. https://docs.openshift.com/container-platform/3.11/architecture/core_concepts/pods_and_services.html#services {code:java} oc expose deploymentconfig.apps.openshift.io/mobile-security-service-app --port=3000 {code} # Create a router for the api # Add the REST checks endpoints * http://mobile-security-service-app-route-mobile-security-service.192.168.64.7.nip.io/api/ping * http://mobile-security-service-app-route-mobile-security-service.192.168.64.7.nip.io/api/healthz |
|