view next/ingress.yaml @ 53:e7318cbee0bc

a barely-working cluster/services setup that scrapes everything and serves vmui (but you have to edit the Server URL cookie)
author drewp@bigasterisk.com
date Wed, 24 Apr 2024 11:38:13 -0700
parents
children
line wrap: on
line source

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: next-victoriametrics
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    ingress.pomerium.io/allow_public_unauthenticated_access: "false"
    ingress.pomerium.io/pass_identity_headers: "true"
    ingress.pomerium.io/preserve_host_header: "true"
    ingress.pomerium.io/policy: |
      allow:
        or: 
          - { email: { is: "drewpca@gmail.com" }}
          - { email: { is: "kelsimp@gmail.com" }}
spec:
  ingressClassName: pomerium
  rules:
    - host: "bigasterisk.com"
      http:
        paths:
          - pathType: Prefix
            path: /m/next/vmselect/
            backend: { service: { name: next-victoriametrics-vmselect, port: { number: 80 } } }
  tls:
    - hosts: [bigasterisk.com]
      secretName: bigasterisk.com-tls