Add phpMyAdmin Studio service
This commit is contained in:
parent
0f2c3ab52e
commit
b494e08cb8
11 changed files with 224 additions and 0 deletions
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue