refactor: remove mysql resource from kustomization

Remove MySQL configuration from the Kustomization file,
as it is no longer needed for the current application
architecture. This change simplifies the resource
management and reduces complexity in the deployment.
This commit is contained in:
2025-06-12 09:04:50 +02:00
parent 8c0205e644
commit d729229cba
2 changed files with 0 additions and 62 deletions
-2
View File
@@ -1,7 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- mysql.yaml
- postgres.yaml
- rabbitmq.yaml
- external-secrets.yaml
@@ -16,4 +15,3 @@ helmCharts:
releaseName: external-secrets
repo: https://charts.external-secrets.io
version: 0.17.0
-60
View File
@@ -1,60 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: mysql
stringData:
DB_HOST: mysql
DB_PORT: "3306"
DB_NAME: mysql
DB_USER: mysql
DB_PASSWORD: mysql
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql
spec:
selector:
matchLabels:
app.kubernetes.io/name: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app.kubernetes.io/name: mysql
spec:
containers:
- image: mysql:9.3.0@sha256:072f96c2f1ebb13f712fd88d0ef98f2ef9a52ad4163ae67b550ed6720b6d642e
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
value: password
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: data
mountPath: /var/lib/mysql
volumes:
- name: data
hostPath:
path: /data/mysql
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: mysql
name: mysql
spec:
ports:
- name: mysql
port: 3306
nodePort: 3306
protocol: TCP
selector:
app.kubernetes.io/name: mysql
sessionAffinity: None
type: NodePort