mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-05 20:50:58 +00:00
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
# ----------------------------------------------------
|
|
# Ingress only from Gateway API
|
|
# ----------------------------------------------------
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: allow-ingress
|
|
namespace: audiobookshelf
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app: audiobookshelf
|
|
|
|
ingress:
|
|
- fromEntities:
|
|
- ingress
|
|
toPorts:
|
|
- ports:
|
|
- port: "80"
|
|
protocol: TCP
|
|
|
|
---
|
|
# ----------------------------------------------------
|
|
# audible access (cover art, metadata)
|
|
# ----------------------------------------------------
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: allow-audible
|
|
namespace: audiobookshelf
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app: audiobookshelf
|
|
|
|
egress:
|
|
- toFQDNs:
|
|
- matchName: audible.com
|
|
toPorts:
|
|
- ports:
|
|
- port: "443"
|
|
protocol: TCP
|
|
# ----------------------------------------------------
|
|
# OPTIONAL: unrestricted HTTPS egress (disabled)
|
|
# ----------------------------------------------------
|
|
# apiVersion: cilium.io/v2
|
|
# kind: CiliumNetworkPolicy
|
|
# metadata:
|
|
# name: allow-all-egress
|
|
# namespace: audiobookshelf
|
|
# spec:
|
|
# endpointSelector:
|
|
# matchLabels:
|
|
# app: audiobookshelf
|
|
#
|
|
# egress:
|
|
# - toEntities:
|
|
# - world
|
|
# toPorts:
|
|
# - ports:
|
|
# - port: "443"
|
|
# protocol: TCP
|