Skip to content

Commit

Permalink
Run phpmyadmin with non-root user
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jul 26, 2024
1 parent 9254d87 commit 5af1ed4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/phpmyadmin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ The following table lists the configurable parameters of the `phpmyadmin` chart
| proxies.quay | quay.io/company/bin:tag | <code>quay.io</code> |
| proxies.kubernetes | registry.k8s.io/bin:tag | <code>registry.k8s.io</code> |
| replicaCount | | <code>1</code> |
| image.repository | | <code>"phpmyadmin"</code> |
| image.repository | | <code>"appscode-images/phpmyadmin"</code> |
| image.pullPolicy | | <code>Always</code> |
| image.tag | Overrides the image tag whose default is the chart appVersion. | <code>""</code> |
| imagePullSecrets | | <code>[]</code> |
Expand Down
6 changes: 4 additions & 2 deletions charts/phpmyadmin/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: '{{ include "image.dockerLibrary" (merge (dict "_repo" $.Values.image.repository) $) }}:{{ .Values.image.tag | default .Chart.AppVersion }}'
image: '{{ include "image.ghcr" (merge (dict "_repo" $.Values.image.repository) $) }}:{{ .Values.image.tag | default .Chart.AppVersion }}'
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: APACHE_PORT
value: "8080"
- name: PMA_HOST
value: "{{ .Values.app.service.name }}.{{ .Values.app.service.namespace }}.svc"
- name: MYSQL_ROOT_PASSWORD
Expand All @@ -84,7 +86,7 @@ spec:
key: password
ports:
- name: http
containerPort: 80
containerPort: 8080
protocol: TCP
# livenessProbe:
# httpGet:
Expand Down
2 changes: 1 addition & 1 deletion charts/phpmyadmin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ proxies:
replicaCount: 1

image:
repository: "phpmyadmin"
repository: "appscode-images/phpmyadmin"
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down

0 comments on commit 5af1ed4

Please sign in to comment.