mariadb: move hardcoded IP to DNS
This commit is contained in:
@@ -62,7 +62,7 @@ _This page is referenced by wiki [front page](https://wiki.k-space.ee) as **the*
|
||||
- inventory
|
||||
- wildduck
|
||||
|
||||
### mariadb.infra.k-space.ee / 172.20.36.1
|
||||
### mariadb.infra.k-space.ee (DNS from ns1 to 172.20.36.1)
|
||||
- freescout
|
||||
- gitea nb! MYSQL_ROOT_PASSWORD seems to be invalid, might be ok to reset it upstream
|
||||
- wiki
|
||||
|
@@ -42,7 +42,7 @@ spec:
|
||||
- name: DB_TYPE
|
||||
value: mysql
|
||||
- name: DB_HOST
|
||||
value: 172.20.36.1
|
||||
value: mariadb.infra.k-space.ee
|
||||
- name: DB_NAME
|
||||
value: kspace_etherpad
|
||||
- name: DB_USER
|
||||
@@ -130,4 +130,4 @@ spec:
|
||||
protocol: TCP
|
||||
to:
|
||||
- ipBlock:
|
||||
cidr: 172.20.36.1/32
|
||||
cidr: 172.20.36.1/32 # mariadb.infra.k-space.ee
|
||||
|
@@ -85,7 +85,7 @@ spec:
|
||||
- /bin/bash
|
||||
- '-c'
|
||||
- >-
|
||||
mysql -u kspace_freescout kspace_freescout -h 172.20.36.1
|
||||
mysql -u kspace_freescout kspace_freescout -h mariadb.infra.k-space.ee
|
||||
-p${MYSQL_PWD} < /tmp/update.sql
|
||||
env:
|
||||
- name: MYSQL_PWD
|
||||
|
@@ -97,7 +97,7 @@ spec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- mysql -u kspace_git kspace_git -h 172.20.36.1 -p${MYSQL_PWD} < /tmp/update.sql
|
||||
- mysql -u kspace_git kspace_git -h mariadb.infra.k-space.ee -p${MYSQL_PWD} < /tmp/update.sql
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
|
@@ -59,7 +59,7 @@ spec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- mysql -u kspace_wiki kspace_wiki -h 172.20.36.1 -p${MYSQL_PWD} < /tmp/update.sql
|
||||
- mysql -u kspace_wiki kspace_wiki -h mariadb.infra.k-space.ee -p${MYSQL_PWD} < /tmp/update.sql
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
|
@@ -1,2 +1,2 @@
|
||||
# Don't be a dummy by commiting renders with secrets
|
||||
WOODPECKER_DATABASE_DATASOURCE=kspace_woodpecker:<SECRET>@tcp(172.20.36.1:3306)/kspace_woodpecker?parseTime=true
|
||||
WOODPECKER_DATABASE_DATASOURCE=kspace_woodpecker:<SECRET>@tcp(mariadb.infra.k-space.ee:3306)/kspace_woodpecker?parseTime=true
|
||||
|
Reference in New Issue
Block a user