Add phpMyAdmin Studio service
This commit is contained in:
parent
0f2c3ab52e
commit
b494e08cb8
11 changed files with 224 additions and 0 deletions
73
rendered/phpmyadmin/phpmyadmin.yaml
Normal file
73
rendered/phpmyadmin/phpmyadmin.yaml
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
---
|
||||
# Source: phpmyadmin/templates/pvc.yaml
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: phpmyadmin-sessions
|
||||
namespace: phpmyadmin
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
# Source: phpmyadmin/templates/service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: phpmyadmin
|
||||
namespace: phpmyadmin
|
||||
spec:
|
||||
selector:
|
||||
app: phpmyadmin
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
---
|
||||
# Source: phpmyadmin/templates/deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: phpmyadmin
|
||||
namespace: phpmyadmin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: phpmyadmin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: phpmyadmin
|
||||
spec:
|
||||
nodeSelector:
|
||||
workload: app
|
||||
|
||||
containers:
|
||||
- name: phpmyadmin
|
||||
image: "phpmyadmin:5.2.3"
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
|
||||
env:
|
||||
- name: PMA_HOST
|
||||
value: "platform-mysql.platform-services.svc.cluster.local"
|
||||
- name: PMA_PORT
|
||||
value: "3306"
|
||||
- name: PMA_ABSOLUTE_URI
|
||||
value: "https://www.symcrest.com/services/studio/phpmyadmin/"
|
||||
|
||||
volumeMounts:
|
||||
- name: sessions
|
||||
mountPath: /sessions
|
||||
|
||||
volumes:
|
||||
- name: sessions
|
||||
persistentVolumeClaim:
|
||||
claimName: phpmyadmin-sessions
|
||||
Loading…
Add table
Add a link
Reference in a new issue