apiVersion: apps/v1
kind: Deployment
metadata:
  name: blog-web-deployment
  namespace: repoflow-blog-namespace
  labels:
    app: blog-web-deployment
    moduleid: microservice-blog-realm
    version: 1.70.9-master
spec:
  replicas: 2
  selector:
    matchLabels:
      app: blog-web-deployment
  template:
    metadata:
      labels:
        app: blog-web-deployment
    spec:
      containers:
        -
          name: app
          image: 'repoflow/microservice-blog-web-container:1.70.6-master'
          env:
            -
              name: ENV_MODE
              value: production
            -
              name: NODE_ENV
              value: production
            -
              name: ENV_LOG_FOLDER
              value: /env/logs
            -
              name: HOST
              value: blog.repoflow.com
            -
              name: BLOG_BASE_ROUTE_APP
              value: /blog
            -
              name: BLOG_INTERNAL_PORT_APP
              value: '3000'
            -
              name: BLOG_EXTERNAL_URL_GRAPH
              value: 'https://blog.repoflow.com/blog/backend/graphql'
            -
              name: BLOG_INTERNAL_URL_GRAPH
              value: 'http://blog-graph-service.repoflow-blog-namespace:4000/blog/backend/graphql'
            -
              name: RESOURCES_BASE_ROUTE
              value: /resources
          ports:
            -
              containerPort: 3000
