mysql: First working kustomize
This commit is contained in:
parent
fa945f2e5c
commit
244458738c
10 changed files with 125 additions and 2 deletions
38
mysql/kustomize/base/phpmyadmin_deployment.yaml
Normal file
38
mysql/kustomize/base/phpmyadmin_deployment.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue