apiVersion: v1 kind: ConfigMap metadata: name: kyoo-postgres namespace: kyoo labels: helm.sh/chart: postgres-0.12.4 app.kubernetes.io/name: postgres app.kubernetes.io/instance: kyoo app.kubernetes.io/version: "18.1.0" app.kubernetes.io/managed-by: Helm data: pg_hba.conf: | # Default pg_hba.conf configuration # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust # IPv6 local connections: host all all ::1/128 trust # Allow replication connections from localhost, by a user with the # replication privilege. local replication all trust host replication all 127.0.0.1/32 trust host replication all ::1/128 trust # Allow connections from any host with password authentication host all all all md5 postgresql.conf: | # PostgreSQL configuration file # Connection Settings listen_addresses = '*' max_connections = 100 # Memory Settings shared_buffers = 128MB effective_cache_size = 4GB work_mem = 4MB maintenance_work_mem = 64MB # WAL Settings wal_buffers = 16MB # Checkpoint Settings checkpoint_completion_target = 0.7 # Query Planner Settings random_page_cost = 1.1 # Logging Settings log_destination = 'stderr' logging_collector = off log_min_messages = warning log_min_error_statement = error log_statement = 'none' log_min_duration_statement = -1 # Shared Libraries # Locale and Formatting datestyle = 'iso, mdy' timezone = 'UTC' lc_messages = 'en_US.utf8' lc_monetary = 'en_US.utf8' lc_numeric = 'en_US.utf8' lc_time = 'en_US.utf8' default_text_search_config = 'pg_catalog.english' # Set pg_hba.conf file to use hba_file = '/etc/postgresql/pg_hba.conf' # Additional Configuration