diff --git a/immich/pgadmin.yaml b/immich/pgadmin.yaml new file mode 100644 index 0000000..77a1e2e --- /dev/null +++ b/immich/pgadmin.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pgadmin +spec: + selector: + matchLabels: + app: pgadmin + replicas: 1 + template: + metadata: + labels: + app: pgadmin + spec: + containers: + + - name: pgadmin4 + image: dpage/pgadmin4 + env: + - name: PGADMIN_DEFAULT_EMAIL + value: "admin@admin.com" + - name: PGADMIN_DEFAULT_PASSWORD + valueFrom: + secretKeyRef: + name: pgadmin-secret + key: pgadmin-default-password + - name: PGADMIN_PORT + value: "80" + ports: + - containerPort: 80 + name: pgadminport +--- +apiVersion: v1 +kind: Service +metadata: + name: pgadmin + labels: + app: pgadmin +spec: + selector: + app: pgadmin + type: NodePort + ports: + - port: 80 + nodePort: 30200