add pg
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-12-14 21:06:50 +10:00
parent bb5a517f34
commit f7e57cbd30

View File

@ -14,14 +14,14 @@ spec:
labels: labels:
app: pgadmin app: pgadmin
spec: spec:
initContainers: # # initContainers:
# костыль взят отсюда https://devpress.csdn.net/k8s/62fd568b7e66823466191f32.html # # # костыль взят отсюда https://devpress.csdn.net/k8s/62fd568b7e66823466191f32.html
- name: pgadmin-data-permission-fix # # - name: pgadmin-data-permission-fix
image: busybox # # image: busybox
command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"] # # command: ["/bin/chown", "-R", "5050:5050", "/var/lib/pgadmin"]
volumeMounts: # # volumeMounts:
- name: pgadmin # # - name: pgadmin
mountPath: /var/lib/pgadmin # # mountPath: /var/lib/pgadmin
containers: containers:
- name: pgadmin4 - name: pgadmin4
image: dpage/pgadmin4 image: dpage/pgadmin4
@ -41,49 +41,49 @@ spec:
name: pgadminport name: pgadminport
volumeMounts: volumeMounts:
- mountPath: /var/lib/pgadmin # - mountPath: /var/lib/pgadmin
name: pgadmin # name: pgadmin
- name: pgadmin-config - name: pgadmin-config
mountPath: /pgadmin4/servers.json mountPath: /pgadmin4/servers.json
subPath: servers.json subPath: servers.json
readOnly: true readOnly: true
volumes: volumes:
- name: pgadmin # - name: pgadmin
persistentVolumeClaim: # persistentVolumeClaim:
claimName: pgadmin-pv-claim # claimName: pgadmin-pv-claim
- name: pgadmin-config - name: pgadmin-config
configMap: configMap:
name: pgadmin-config name: pgadmin-config
--- # ---
kind: PersistentVolume # kind: PersistentVolume
apiVersion: v1 # apiVersion: v1
metadata: # metadata:
namespace: pg # namespace: pg
name: pgadmin-pv-volume # name: pgadmin-pv-volume
labels: # labels:
type: local # type: local
app: pgadmin # app: pgadmin
spec: # spec:
storageClassName: longhorn # storageClassName: longhorn
capacity: # capacity:
storage: 1Gi # storage: 1Gi
accessModes: # accessModes:
- ReadWriteMany # - ReadWriteMany
hostPath: # hostPath:
path: "/mnt/data" # path: "/mnt/data"
--- # ---
kind: PersistentVolumeClaim # kind: PersistentVolumeClaim
apiVersion: v1 # apiVersion: v1
metadata: # metadata:
namespace: pg # namespace: pg
name: pgadmin-pv-claim # name: pgadmin-pv-claim
labels: # labels:
app: pgadmin # app: pgadmin
spec: # spec:
storageClassName: longhorn # storageClassName: longhorn
accessModes: # accessModes:
- ReadWriteMany # - ReadWriteMany
resources: # resources:
requests: # requests:
storage: 1Gi # storage: 1Gi