502 bad gateway after deploying “new app” in existing OC project on Azure redhat openshift cluster ( ARO )

  Kiến thức lập trình

I am facing error of 502 Bad gateway (Microsoft-Azure-Application-Gateway/v2) after deploying new app on existing project in ARO cluster
Below are yaml configuration

Deployment, service and route are creating fine
What else I am missing ? may be on firewall or proxy?

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: my-app
  template:
    metadata:
      labels:
        app: my-app
    spec:
      containers:
        - name: my-app-container
          image: your-registry/my-app:latest
          ports:
            - containerPort: 8080


apiVersion: v1
kind: Service
metadata:
  name: my-app-service
spec:
  selector:
    app: my-app
  ports:
    - protocol: TCP
      port: 80
      targetPort: 8080

apiVersion: route.openshift.io/v1
kind: Route
metadata:
  labels:
    app: my-app
    type: internal-apps-001
  name: my-app
  namespace: ns-mynamespace
spec:
  host: my-app.host1.net
  port:
    targetPort: 8080
  tls:
    insecureEdgeTerminationPolicy: Redirect
    termination: edge
  to:
    kind: Service
    name: my-app

LEAVE A COMMENT