Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions templates/networkpolicies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: ingress-deny-all
namespace: {{ .Release.Namespace }}
spec:
# Deny all ingress traffic for workspace pods. The coder agent initiates
# all network traffic (TURN-over-HTTPS or STUN)
podSelector:
matchLabels:
com.coder.resource: "true"
policyTypes:
- Ingress
ingress: []