Primer commit

This commit is contained in:
2025-04-27 00:13:00 +00:00
commit 261e13b30b
10 changed files with 179 additions and 0 deletions

36
deployments/gitea-db.yaml Normal file
View File

@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-db
namespace: gitea
spec:
replicas: 1
selector:
matchLabels:
app: gitea-db
template:
metadata:
labels:
app: gitea-db
spec:
containers:
- name: mysql
image: mysql:8
env:
- name: MYSQL_ROOT_PASSWORD
value: gitea123
- name: MYSQL_DATABASE
value: gitea
- name: MYSQL_USER
value: gitea
- name: MYSQL_PASSWORD
value: gitea123
ports:
- containerPort: 3306
volumeMounts:
- name: gitea-db
mountPath: /var/lib/mysql
volumes:
- name: gitea-db
persistentVolumeClaim:
claimName: gitea-db