Simple service with posting client ip to postgre

This commit is contained in:
Vbarinov
2023-03-18 05:21:13 +05:30
parent f7d04a4f13
commit ac880ad719
15 changed files with 520 additions and 0 deletions
+34
View File
@@ -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"