microscopic-river-74022
09/25/2023, 6:03 PMmicroscopic-river-74022
09/25/2023, 6:04 PMyaml
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:
----------------------