File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
internal/controller/standalone_pgadmin Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -122,17 +122,25 @@ func statefulset(
122122 pod (pgadmin , configmap , & sts .Spec .Template .Spec , dataVolume )
123123
124124 if feature .Enabled (ctx , feature .OpenTelemetryLogs ) {
125+ // Mount for file_storage/pgadmin
125126 pgAdminLogVolumeMount := corev1.VolumeMount {
126127 Name : "pgadmin-log" ,
127128 MountPath : "/var/log/pgadmin" ,
128129 }
130+ // Mount for file_storage/gunicorn
129131 gunicornLogVolumeMount := corev1.VolumeMount {
130132 Name : "gunicorn-log" ,
131133 MountPath : "/var/log/gunicorn" ,
132134 }
135+ // Logs for gunicorn and pgadmin write to /var/lib/pgadmin/logs
136+ dataVolumeMount := corev1.VolumeMount {
137+ Name : "pgadmin-data" ,
138+ MountPath : "/var/lib/pgadmin" ,
139+ }
133140 volumeMounts := []corev1.VolumeMount {
134141 pgAdminLogVolumeMount ,
135142 gunicornLogVolumeMount ,
143+ dataVolumeMount ,
136144 }
137145
138146 collector .AddToPod (ctx , pgadmin .Spec .ImagePullPolicy ,
You can’t perform that action at this time.
0 commit comments