Add phpMyAdmin Studio service
This commit is contained in:
parent
0f2c3ab52e
commit
b494e08cb8
11 changed files with 224 additions and 0 deletions
6
charts/phpmyadmin/Chart.yaml
Normal file
6
charts/phpmyadmin/Chart.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v2
|
||||
name: phpmyadmin
|
||||
description: Symcrest Studio phpMyAdmin deployment
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "5.2.3"
|
||||
43
charts/phpmyadmin/templates/deployment.yaml
Normal file
43
charts/phpmyadmin/templates/deployment.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: phpmyadmin
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: phpmyadmin
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: phpmyadmin
|
||||
spec:
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.nodeSelector | indent 8 }}
|
||||
|
||||
containers:
|
||||
- name: phpmyadmin
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
|
||||
env:
|
||||
- name: PMA_HOST
|
||||
value: {{ .Values.mysql.host | quote }}
|
||||
- name: PMA_PORT
|
||||
value: {{ .Values.mysql.port | quote }}
|
||||
- name: PMA_ABSOLUTE_URI
|
||||
value: {{ .Values.app.absoluteUri | quote }}
|
||||
|
||||
volumeMounts:
|
||||
- name: sessions
|
||||
mountPath: /sessions
|
||||
|
||||
volumes:
|
||||
- name: sessions
|
||||
persistentVolumeClaim:
|
||||
claimName: phpmyadmin-sessions
|
||||
12
charts/phpmyadmin/templates/pvc.yaml
Normal file
12
charts/phpmyadmin/templates/pvc.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: phpmyadmin-sessions
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: {{ .Values.storage.className }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.storage.size }}
|
||||
12
charts/phpmyadmin/templates/service.yaml
Normal file
12
charts/phpmyadmin/templates/service.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: phpmyadmin
|
||||
namespace: {{ .Values.namespace }}
|
||||
spec:
|
||||
selector:
|
||||
app: phpmyadmin
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
19
charts/phpmyadmin/values.yaml
Normal file
19
charts/phpmyadmin/values.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
namespace: phpmyadmin
|
||||
|
||||
image:
|
||||
repository: phpmyadmin
|
||||
tag: "5.2.3"
|
||||
|
||||
mysql:
|
||||
host: platform-mysql.platform-services.svc.cluster.local
|
||||
port: 3306
|
||||
|
||||
app:
|
||||
absoluteUri: https://www.symcrest.com/services/studio/phpmyadmin/
|
||||
|
||||
storage:
|
||||
className: longhorn
|
||||
size: 1Gi
|
||||
|
||||
nodeSelector:
|
||||
workload: app
|
||||
Loading…
Add table
Add a link
Reference in a new issue