diff --git a/ente-photos/pgadmin.yaml b/ente-photos/pgadmin.yaml index e69de29..77a1e2e 100644 --- a/ente-photos/pgadmin.yaml +++ b/ente-photos/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