Alexandr Lovtsov | b9d08c7 | 2019-03-13 15:26:57 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | kubernetes: |
| 3 | common: |
| 4 | addons: |
| 5 | ingress-nginx: |
| 6 | tcp_data: |
| 7 | 5432: drivetrain/postgresql-db:${_param:postgresql_exposed_port} |
| 8 | tcp_ports: |
| 9 | - 5432 |
| 10 | control: |
| 11 | service: |
| 12 | postgresql-db: |
| 13 | enabled: true |
| 14 | cluster: drivetrain |
| 15 | service: postgresql-db |
| 16 | create: true |
| 17 | namespace: drivetrain |
| 18 | ports: |
| 19 | - port: ${_param:postgresql_exposed_port} |
| 20 | name: psql-server |
| 21 | type: ClusterIP |
| 22 | apiVersion: extensions/v1beta1 |
| 23 | kind: Deployment |
| 24 | replicas: 1 |
| 25 | container: |
| 26 | postgresql-server: |
| 27 | image: ${_param:docker_image_postgresql} |
| 28 | image_pull_policy: IfNotPresent |
| 29 | variables: |
| 30 | - name: POSTGRES_USER |
| 31 | value: ${_param:postgresql_admin_user} |
| 32 | - name: POSTGRES_PASSWORD |
| 33 | value: ${_param:postgresql_admin_user_password} |
| 34 | - name: PGDATA |
| 35 | value: ${_param:postgresql_data_directory} |
| 36 | ports: |
| 37 | - port: ${_param:postgresql_exposed_port} |
| 38 | name: psql-server |
| 39 | volumes: |
| 40 | - name: postgresql-data |
| 41 | mount: ${_param:postgresql_data_mountpoint} |
| 42 | read_only: false |
| 43 | volume: |
| 44 | postgresql-data: |
| 45 | type: glusterfs |
| 46 | endpoints: glusterfs |
| 47 | path: ${_param:postgresql_glusterfs_volume_name} |
| 48 | read_only: false |