Skip to content

Commit

Permalink
fix(sandstorm): netpols
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Jan 27, 2025
1 parent d6bb7ca commit 3ec62d0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kube/deploy/apps/insurgency-sandstorm/app/hr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
pod:
labels:
ingress.home.arpa/world: allow
dns.home.arpa/l7: "true"
containers:
main:
image: &img
Expand All @@ -47,7 +48,7 @@ spec:
drop: ["ALL"]
resources:
requests:
cpu: "10m"
cpu: "100m"
limits:
cpu: "2"
memory: "2Gi"
Expand Down Expand Up @@ -78,7 +79,7 @@ spec:
cpu: "300m"
limits:
cpu: "1"
memory: "128Mi"
memory: "256Mi"
service:
insurgency-sandstorm:
controller: insurgency-sandstorm
Expand Down
12 changes: 12 additions & 0 deletions kube/deploy/apps/insurgency-sandstorm/app/netpol.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# yaml-language-server: $schema=https://crds.jank.ing/cilium.io/ciliumnetworkpolicy_v2.json
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: &app insurgency-sandstorm
namespace: *app
spec:
endpointSelector: {}
egress:
- toFQDNs:
- matchPattern: "*.mod.io"

0 comments on commit 3ec62d0

Please sign in to comment.