-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathuds-package.yaml
44 lines (39 loc) · 1.37 KB
/
uds-package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial
apiVersion: uds.dev/v1alpha1
kind: Package
metadata:
name: authservice
namespace: {{ .Release.Namespace }}
spec:
network:
allow:
# Permit intra-namespace communication for multi-replica setup
- direction: Ingress
remoteGenerated: IntraNamespace
- direction: Egress
remoteGenerated: IntraNamespace
# Egress must be allowed to the external facing Keycloak endpoint
- direction: Egress
remoteSelector:
app: tenant-ingressgateway
remoteNamespace: istio-tenant-gateway
description: "SSO Provider"
{{- if .Values.redis.uri }}
- direction: Egress
description: Redis Session Store
{{- if .Values.redis.internal.enabled }}
remoteSelector: {{ .Values.redis.internal.remoteSelector }}
remoteNamespace: {{ .Values.redis.internal.remoteNamespace }}
{{- else if .Values.redis.egressCidr }}
remoteCidr: {{ .Values.redis.egressCidr }}
{{- else }}
remoteGenerated: Anywhere
{{- end }}
{{- end }}
- direction: Ingress
selector:
app.kubernetes.io/name: authservice
remoteNamespace: "" # Any namespace could have a protected app
port: 10003
description: "Protected Apps"