Comments (5)
Hi,
It seems to me that the "Killed" message has to do with the pod going over certain memory limits. This is strange as we did not see that behavior in our tests in all major k8s distributions. Could you check if increasing the resources (you can use the resourcesPreset value for testing) solves the issue?
from charts.
Thanks @javsalgar but I'm not sure that's the case:
postgresql-0 postgresql postgresql 09:30:02.77 INFO ==> Loading custom scripts...
postgresql-0 postgresql postgresql 09:30:02.77 INFO ==> Loading user's custom files from /docker-entrypoint-initdb.d ...
postgresql-0 postgresql postgresql 09:30:02.77 INFO ==> Starting PostgreSQL in background...
postgresql-0 postgresql /opt/bitnami/scripts/libpostgresql.sh: line 775: 89 Killed "${pg_ctl_cmd[@]}" "start" "${pg_ctl_flags[@]}" > /dev/null 2>&1
- postgresql-0 › postgresql
^C
❯ kpodrescheck
Name CPU-request MEM-request CPU-limit MEM-limit
postgresql-0 1 2Gi 1500m 3Gi
Even with plenty of CPU and memory the same issue occurs - and it only happens when I try to include an initdb
script. No issues running the container without one
from charts.
Weird,
I could not reproduce that with the lastest version of the chart. You can see the hello
string in the logs:
$ kubectl logs postgresql-0
postgresql 14:15:38.64 INFO ==>
postgresql 14:15:38.73 INFO ==> Welcome to the Bitnami postgresql container
postgresql 14:15:38.73 INFO ==> Subscribe to project updates by watching https://github.com/bitnami/containers
postgresql 14:15:38.73 INFO ==> Submit issues and feature requests at https://github.com/bitnami/containers/issues
postgresql 14:15:38.74 INFO ==> Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit https://bitnami.com/enterprise
postgresql 14:15:38.74 INFO ==>
postgresql 14:15:38.93 INFO ==> ** Starting PostgreSQL setup **
postgresql 14:15:39.13 INFO ==> Validating settings in POSTGRESQL_* env vars..
postgresql 14:15:39.14 INFO ==> Loading custom pre-init scripts...
postgresql 14:15:39.23 INFO ==> Initializing PostgreSQL database...
postgresql 14:15:39.34 INFO ==> pg_hba.conf file not detected. Generating it...
postgresql 14:15:39.43 INFO ==> Generating local authentication configuration
postgresql 14:15:45.33 INFO ==> Starting PostgreSQL in background...
postgresql 14:15:46.33 INFO ==> Changing password of postgres
postgresql 14:15:46.73 INFO ==> Configuring replication parameters
postgresql 14:15:47.03 INFO ==> Configuring synchronous_replication
postgresql 14:15:47.03 INFO ==> Configuring fsync
postgresql 14:15:47.43 INFO ==> Stopping PostgreSQL...
waiting for server to shut down.... done
server stopped
postgresql 14:15:47.64 INFO ==> Loading custom scripts...
postgresql 14:15:47.65 INFO ==> Loading user's custom files from /docker-entrypoint-initdb.d ...
postgresql 14:15:47.65 INFO ==> Starting PostgreSQL in background...
hello
postgresql 14:15:48.33 INFO ==> Enabling remote connections
postgresql 14:15:48.43 INFO ==> Stopping PostgreSQL...
waiting for server to shut down.... done
server stopped
postgresql 14:15:48.64 INFO ==> ** PostgreSQL setup finished! **
postgresql 14:15:48.74 INFO ==> ** Starting PostgreSQL **
2024-04-26 14:15:48.937 GMT [1] LOG: pgaudit extension initialized
2024-04-26 14:15:49.034 GMT [1] LOG: starting PostgreSQL 16.2 on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2024-04-26 14:15:49.035 GMT [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2024-04-26 14:15:49.035 GMT [1] LOG: listening on IPv6 address "::", port 5432
2024-04-26 14:15:49.040 GMT [1] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
2024-04-26 14:15:49.047 GMT [155] LOG: database system was shut down at 2024-04-26 14:15:48 GMT
2024-04-26 14:15:49.131 GMT [1] LOG: database system is ready to accept connections
from charts.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
from charts.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
from charts.
Related Issues (20)
- [bitnami/harbor] - add SCANNER_TRIVY_SKIP_JAVA_DB_UPDATE in trivy CM Environment variables HOT 1
- [bitnami/airflow] liveness probe fail on worker pod HOT 1
- Document metrics.sentinel parameters HOT 2
- [bitnami/mongodb-sharded] PVC are not deleted on chart uninstallation
- [bitnami/mongodb-sharded] Deployment very unstable when defining custom root credentials HOT 5
- [bitnami/vault] Allow to disable auth delegator HOT 3
- [bitnami/vault] RBAC Rules for Vault HOT 1
- [bitnami/keycloak] KC_HOSTNAME_ADMIN_URL seems incorrect in proxy=edge HOT 4
- RabbitMQ: version 3.13.3 won't run due to invalid user credentials HOT 1
- [bitnami/apisix] JSONSchema too strict for extraEnvVars HOT 4
- multus broken HOT 7
- [bitnami/harbor] Setting `internalTLS.enabled: true` results in all harbor pods going into a crash loop.
- [bitnami/rabbitmq-cluster-operator] INSTALLATION FAILED: "rabbitmq-cluster-operator-rabbitmq-messaging-topology-operator" already exists HOT 2
- [bitnami/mongodb-sharded] Capacity to create non-root users on chart installation HOT 1
- [bitnami/postgresql] k8s 1.27.0 problem with tolerate-unready-endpoints HOT 1
- [bitnami/argo-workflows] pods forbidden cannot patch resource "pods" HOT 3
- [bitnami/thanos] 15.7.9 chart broken from pdb schema HOT 2
- [bitnami/rabbitmq-cluster-operator] Uninstall incorrect HOT 2
- Missing liblog.sh file in rabbitmq initContainers HOT 1
- [bitnami/apisix] Apisix ETCD going into Crash loop back off HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.