kube/postgres-clusters/pgweb.yaml

74 lines
1.5 KiB
YAML
Raw Normal View History

2023-02-26 09:09:11 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: pgweb
namespace: postgres-clusters
spec:
replicas: 1
selector:
matchLabels: &selector
app: pgweb
template:
metadata:
labels: *selector
spec:
containers:
- name: pgweb
image: sosedoff/pgweb
command:
- /usr/bin/pgweb
- --bind=0.0.0.0
- --sessions
- --no-ssh
---
apiVersion: v1
kind: Service
metadata:
name: pgweb
namespace: postgres-clusters
spec:
selector:
app: pgweb
ports:
- protocol: TCP
port: 8081
targetPort: 8081
---
2024-07-27 00:15:41 +00:00
apiVersion: codemowers.cloud/v1beta1
kind: OIDCMiddlewareClient
2023-08-16 07:39:20 +00:00
metadata:
name: pgweb
spec:
displayName: pgweb
uri: 'https://pgweb.k-space.ee'
allowedGroups:
- k-space:floor
---
2023-02-26 09:09:11 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pgweb
namespace: postgres-clusters
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
2023-08-16 07:39:20 +00:00
traefik.ingress.kubernetes.io/router.middlewares: postgres-clusters-pgweb@kubernetescrd
2023-02-26 09:09:11 +00:00
spec:
rules:
- host: pgweb.k-space.ee
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: pgweb
port:
number: 8081
tls:
- hosts:
- "*.k-space.ee"