Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. PG::ConnectionBad (could not connect to server: No such file or directory
  2. Is the server running locally and accepting connections on
  3. Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?):
  4.  
  5. apiVersion: v1
  6. kind: Pod
  7. metadata:
  8. name: cartelhouse
  9. labels:
  10. name: cartelhouse
  11. spec:
  12. containers:
  13. - image: gcr.io/xyz/cartelhouse:v6
  14. name: cartelhouse
  15. env:
  16. - name: POSTGRES_PASSWORD
  17. # Change this - must match postgres.yaml password.
  18. value: mypassword
  19. - name: POSTGRES_USER
  20. value: rails
  21. ports:
  22. - containerPort: 80
  23. name: cartelhouse
  24. volumeMounts:
  25. # Name must match the volume name below.
  26. - name: cartelhouse-persistent-storage
  27. # Mount path within the container.
  28. mountPath: /var/www/html
  29. volumes:
  30. - name: cartelhouse-persistent-storage
  31. gcePersistentDisk:
  32. # This GCE persistent disk must already exist.
  33. pdName: rails-disk
  34. fsType: ext4
  35.  
  36. apiVersion: v1
  37. kind: Pod
  38. metadata:
  39. name: postgres
  40. labels:
  41. name: postgres
  42. spec:
  43. containers:
  44. - name: postgres
  45. image: postgres
  46. env:
  47. - name: POSTGRES_PASSWORD
  48. value: mypassword
  49. - name: POSTGRES_USER
  50. value: rails
  51. - name: PGDATA
  52. value: /var/lib/postgresql/data/pgdata
  53. ports:
  54. - containerPort: 5432
  55. name: postgres
  56. volumeMounts:
  57. - name: postgres-persistent-storage
  58. mountPath: /var/lib/postgresql/data
  59. volumes:
  60. - name: postgres-persistent-storage
  61. gcePersistentDisk:
  62. # This disk must already exist.
  63. pdName: postgres-disk
  64. fsType: ext4
  65.  
  66. production:
  67. <<: *default
  68. adapter: postgresql
  69. encoding: unicode
  70. database: app_production
  71. username: <%= ENV['PG_ENV_POSTGRES_USER'] %>
  72. password: <%= ENV['PG_ENV_POSTGRES_PASSWORD'] %>
  73. host: <%= ENV['PG_PORT_5432_TCP_ADDR'] %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement