mysql: First working kustomize

This commit is contained in:
Florian RICHER 2025-03-27 11:26:11 +01:00
parent fa945f2e5c
commit 244458738c
10 changed files with 125 additions and 2 deletions

View file

@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: phpmyadmin-deployment
labels:
service: phpmyadmin
spec:
replicas: 1
selector:
matchLabels:
service: phpmyadmin
template:
metadata:
labels:
service: phpmyadmin
spec:
containers:
- name: phpmyadmin
image: phpmyadmin
resources:
limits:
memory: "256Mi"
cpu: "1000m"
ports:
- containerPort: 80
env:
- name: PMA_HOST
valueFrom:
configMapKeyRef:
name: mysql-configmap
key: mysql-server
- name: PMA_USER
value: root
- name: PMA_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-secret
key: mysql-root-password