Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PG::ConnectionBad (could not connect to server: No such file or directory
- Is the server running locally and accepting connections on
- Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?):
- apiVersion: v1
- kind: Pod
- metadata:
- name: cartelhouse
- labels:
- name: cartelhouse
- spec:
- containers:
- - image: gcr.io/xyz/cartelhouse:v6
- name: cartelhouse
- env:
- - name: POSTGRES_PASSWORD
- # Change this - must match postgres.yaml password.
- value: mypassword
- - name: POSTGRES_USER
- value: rails
- ports:
- - containerPort: 80
- name: cartelhouse
- volumeMounts:
- # Name must match the volume name below.
- - name: cartelhouse-persistent-storage
- # Mount path within the container.
- mountPath: /var/www/html
- volumes:
- - name: cartelhouse-persistent-storage
- gcePersistentDisk:
- # This GCE persistent disk must already exist.
- pdName: rails-disk
- fsType: ext4
-
-
- apiVersion: v1
- kind: Pod
- metadata:
- name: postgres
- labels:
- name: postgres
- spec:
- containers:
- - name: postgres
- image: postgres
- env:
- - name: POSTGRES_PASSWORD
- value: mypassword
- - name: POSTGRES_USER
- value: rails
- - name: PGDATA
- value: /var/lib/postgresql/data/pgdata
- ports:
- - containerPort: 5432
- name: postgres
- volumeMounts:
- - name: postgres-persistent-storage
- mountPath: /var/lib/postgresql/data
- volumes:
- - name: postgres-persistent-storage
- gcePersistentDisk:
- # This disk must already exist.
- pdName: postgres-disk
- fsType: ext4
-
-
- production:
- <<: *default
- adapter: postgresql
- encoding: unicode
- database: app_production
- username: <%= ENV['PG_ENV_POSTGRES_USER'] %>
- password: <%= ENV['PG_ENV_POSTGRES_PASSWORD'] %>
- host: <%= ENV['PG_PORT_5432_TCP_ADDR'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement