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
|
- inventory
|
||||||
- wildduck
|
- wildduck
|
||||||
|
|
||||||
### mariadb.infra.k-space.ee / 172.20.36.1
|
### mariadb.infra.k-space.ee (DNS from ns1 to 172.20.36.1)
|
||||||
- freescout
|
- freescout
|
||||||
- gitea nb! MYSQL_ROOT_PASSWORD seems to be invalid, might be ok to reset it upstream
|
- gitea nb! MYSQL_ROOT_PASSWORD seems to be invalid, might be ok to reset it upstream
|
||||||
- wiki
|
- wiki
|
||||||
|
@@ -42,7 +42,7 @@ spec:
|
|||||||
- name: DB_TYPE
|
- name: DB_TYPE
|
||||||
value: mysql
|
value: mysql
|
||||||
- name: DB_HOST
|
- name: DB_HOST
|
||||||
value: 172.20.36.1
|
value: mariadb.infra.k-space.ee
|
||||||
- name: DB_NAME
|
- name: DB_NAME
|
||||||
value: kspace_etherpad
|
value: kspace_etherpad
|
||||||
- name: DB_USER
|
- name: DB_USER
|
||||||
@@ -130,4 +130,4 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
to:
|
to:
|
||||||
- ipBlock:
|
- 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
|
- /bin/bash
|
||||||
- '-c'
|
- '-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
|
-p${MYSQL_PWD} < /tmp/update.sql
|
||||||
env:
|
env:
|
||||||
- name: MYSQL_PWD
|
- name: MYSQL_PWD
|
||||||
|
@@ -97,7 +97,7 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -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
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
|
@@ -59,7 +59,7 @@ spec:
|
|||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -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
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
# Don't be a dummy by commiting renders with secrets
|
# 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