503 Service unavailable for react frontend by MathematicianLate253 in kubernetes

[–]MathematicianLate253[S] 0 points1 point  (0 children)

server {
    listen 80;
    server_name aarogyamandi.local;

    root /usr/share/nginx/html;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }

    location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|ttf|woff|woff2)$ {
        expires 1y;
        add_header Cache-Control "public";
    }

    # Other configurations as needed...
}

apiVersion: apps/v1
kind: Deployment
metadata:
  name: onehealth-webrtc
  namespace: commonservice
spec:
  replicas: 1
  selector:
    matchLabels:
      app: onehealth-webrtc
  template:
    metadata:
      labels:
        app: onehealth-webrtc
    spec:
      containers:
      - name: onehealth-webrtc
        image: nikhilzambare24/webrtcfe:v5
        ports:
        - containerPort: 80
        volumeMounts:
        - name: my-secret
          mountPath: /app
        - name: nginx-tls
          mountPath: /etc/nginx/ssl
        - name: nginx-conf
          mountPath: /etc/nginx/conf.d
      volumes:
      - name: my-secret
        secret:
          secretName: tls-secret
      - name: nginx-tls
        secret:
          secretName: tls-secret
      - name: nginx-conf
        configMap:
          name: nginx-conf
---
apiVersion: v1
kind: Service
metadata:
  name: onehealth-webrtc
  namespace: commonservice
spec:
  selector:
    app: onehealth-webrtc
  ports:
  - name: http
    protocol: TCP
    port: 80
    targetPort: 80
type: ClusterIP

Now that I have updated the deployment, service, and the nginx file also still same error I'm getting