Simple service with posting client ip to postgre
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
- name: Install bitnami repo
|
||||
hosts: localhost
|
||||
vars:
|
||||
helm_chart_url: "https://charts.bitnami.com/bitnami"
|
||||
tasks:
|
||||
- name: Add helm repo
|
||||
kubernetes.core.helm_repository:
|
||||
name: bitnami
|
||||
repo_url: "{{ helm_chart_url }}"
|
||||
|
||||
- name: Install PostgreSQL from bitnami
|
||||
hosts: localhost
|
||||
vars:
|
||||
postgre_version: "12.2.3"
|
||||
tasks:
|
||||
- name: Install PostgreSQL Chart
|
||||
kubernetes.core.helm:
|
||||
name: posrgre
|
||||
namespace: test
|
||||
force: true
|
||||
chart_ref: bitnami/postgresql
|
||||
chart_version: "{{ postgre_version }}"
|
||||
set_values:
|
||||
- value: auth.database=mydb
|
||||
value_type: string
|
||||
- value: primary.initdb.scripts={"init.sql":"CREATE TABLE clients(id SERIAL PRIMARY KEY, userip CHAR(12));"}
|
||||
value_type: json
|
||||
- name: playground
|
||||
kubernetes.core.helm:
|
||||
name: playground
|
||||
namespace: test
|
||||
force: true
|
||||
chart_ref: playgroud
|
||||
chart_version: "0.1.3"
|
||||
Reference in New Issue
Block a user