1
0
forked from k-space/kube
kube/shared/pgweb.yml

68 lines
1.4 KiB
YAML
Raw Normal View History

2022-08-16 09:40:54 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: pgweb
spec:
replicas: 3
selector:
matchLabels:
app: pgweb
template:
metadata:
labels:
app: pgweb
spec:
containers:
- name: pgweb
image: sosedoff/pgweb
env:
- name: PMA_PORT
value: "3306"
- name: PMA_HOSTS
value: mariadb,mariadb.etherpad.svc.cluster.local
- name: MYSQL_ROOT_PASSWORD
value: password
---
apiVersion: v1
kind: Service
metadata:
name: pgweb
annotations:
prometheus.io/scrape: 'true'
spec:
selector:
app: pgweb
ports:
- protocol: TCP
port: 8081
targetPort: 8081
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: pgweb
annotations:
kubernetes.io/ingress.class: traefik
cert-manager.io/cluster-issuer: default
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: authelia-chain-k6-authelia-auth@kubernetescrd
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
spec:
rules:
- host: postgres.k-space.ee
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: pgweb
port:
number: 8081
tls:
- hosts:
- postgres.k-space.ee
secretName: postgres-tls