apiVersion: apps/v1 kind: Deployment metadata: name: frigate-oauth2-proxy namespace: frigate labels: app.kubernetes.io/name: oauth2-proxy app.kubernetes.io/instance: frigate spec: replicas: 2 selector: matchLabels: app.kubernetes.io/name: oauth2-proxy app.kubernetes.io/instance: frigate template: metadata: labels: app.kubernetes.io/name: oauth2-proxy app.kubernetes.io/instance: frigate quorate.dev/zitadel-relay: "true" spec: automountServiceAccountToken: false containers: - name: oauth2-proxy image: quay.io/oauth2-proxy/oauth2-proxy:v7.15.5@sha256:8498b0d0ef0a7b29686414000a08aee467f02d0299c9ed1e006a8f33fc017916 imagePullPolicy: IfNotPresent args: - --http-address=0.0.0.0:4180 - --provider=oidc - --oidc-issuer-url=https://auth.quorate.dev - --redirect-url=https://frigate.quorate.internal/oauth2/callback - --upstream=http://frigate.frigate.svc.cluster.local:8971 - --email-domain=* - --scope=openid profile email groups - --allowed-group=frigate_admin - --allowed-group=frigate_viewer - --reverse-proxy=true - --skip-provider-button=true - --cookie-secure=true - --cookie-samesite=lax - --cookie-refresh=1h - --cookie-expire=8h - --pass-user-headers=true env: - name: OAUTH2_PROXY_CLIENT_ID value: "********" envFrom: - secretRef: name: frigate-oauth2-proxy - secretRef: name: frigate-oauth2-proxy-cookie ports: - name: http containerPort: 4180 protocol: TCP readinessProbe: httpGet: path: /ready port: http periodSeconds: 10 livenessProbe: httpGet: path: /ping port: http initialDelaySeconds: 30 periodSeconds: 30 startupProbe: httpGet: path: /ping port: http failureThreshold: 12 periodSeconds: 10 resources: requests: cpu: 25m memory: 64Mi limits: memory: 256Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: ["ALL"] readOnlyRootFilesystem: true runAsNonRoot: true seccompProfile: type: RuntimeDefault --- apiVersion: v1 kind: Service metadata: name: frigate-oauth2-proxy namespace: frigate labels: app.kubernetes.io/name: oauth2-proxy app.kubernetes.io/instance: frigate spec: selector: app.kubernetes.io/name: oauth2-proxy app.kubernetes.io/instance: frigate ports: - name: http port: 4180 targetPort: http protocol: TCP appProtocol: http