hey I have this Module (acorn) to deploy a postgr...
# 🤖|ask-kapa
m
Please stand by @bright-policeman-43626 as I search the knowledge base. I normally take about 20 seconds or so. :wave:
---------------------- Sure, you can add an ingress spec to your module configuration. Here's how you can do it:
Copy code
yaml
kind: Module
description: Postgres container for storing Database
type: container
name: postgres
image: postgres:13.3
include: [./modules.garden.yml]
services:
  - name: postgres
    volumes:
      - name: data
        containerPath: /db-data
    ports:
      - name: postgres
        containerPort: 5432
    env:
      POSTGRES_DATABASE: ${var.POSTGRES_DATABASE}
      POSTGRES_USERNAME: ${var.POSTGRES_USERNAME}
      POSTGRES_PASSWORD: ${var.POSTGRES_PASSWORD}
    healthCheck:
      command: [psql, -w, -U, "${var.POSTGRES_USERNAME}", -d, "${var.POSTGRES_DATABASE}", -c, "SELECT 1"]
    ingresses:
      - path: /api
        port: http
        annotations:
          nginx.ingress.kubernetes.io/proxy-body-size: '0'
In this example, I've added an ingress at the path
/api
on the HTTP port. The annotation
nginx.ingress.kubernetes.io/proxy-body-size: '0'
is also added, which is an example of how you can add annotations to your ingress. Please replace the path, port, and annotations as per your requirements. For more information, you can refer to the Garden's documentation on module-types/container () and action-types/configmap/container (). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------