39 lines
1013 B
YAML
39 lines
1013 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
namespace: postgresql
|
|
|
|
resources:
|
|
- github.com/zalando/postgres-operator/ui/manifests?ref=v1.9.0
|
|
|
|
patches:
|
|
- patch: |-
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: postgres-operator-ui
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: service
|
|
env:
|
|
- name: TARGET_NAMESPACE
|
|
value: '*'
|
|
- target:
|
|
kind: Ingress
|
|
labelSelector: application=postgres-operator-ui
|
|
patch: |-
|
|
- op: replace
|
|
path: /spec/rules/0/host
|
|
value: psqlui.pyrocufflink.blue
|
|
- patch: |-
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: postgres-operator-ui
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/auth-method: GET
|
|
nginx.ingress.kubernetes.io/auth-url: http://authelia.authelia.svc.cluster.local:9091/api/verify
|
|
nginx.ingress.kubernetes.io/auth-signin: https://auth.pyrocufflink.blue/?rm=$request_method
|