Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Running two applications on Openshift 4.5 cluster

    Posted on

    I have to run two web applications on Openshift cluster. But only the one which is brought up first is running, the other one gives Application is not available error. I have used two different services for them and exposing using oc expose service servicename command. The route is using the reencrypt tls termination type.

    apiVersion: v1
    kind: Service
    metadata:
    annotations:
    service.alpha.openshift.io/serving-cert-secret-name: service-certs
    name: webapp1
    labels:
    app: webapp1
    spec:
    ports:
    - name: 8443-tcp
    port: 8443
    protocol: TCP
    targetPort: 8443
    selector:

    app: webapp1

    kind: Route
    apiVersion: route.openshift.io/v1
    metadata:
    name: webapp1
    labels:
    app: webapp1
    spec:
    port:
    targetPort: 8443-tcp
    tls:
    termination: reencrypt
    to:
    kind: Service
    name: webapp1
    Replacing webapp1 with webapp2 to create the service and route for application webapp2. Only the one which is run first is working. This is on AWS cloud. Has anyone else faced similar issue?

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat