Skip to content

Commit

Permalink
Implement more specific openshift ingress network policy
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Ho <[email protected]>
  • Loading branch information
jujaga committed Jan 17, 2024
1 parent 3a47f79 commit 066ab44
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions openshift/app.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,22 @@ labels:
app.openshift.io/runtime: golang
template: "${REPO_NAME}-app-template"
objects:
- apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: "allow-openshift-ingress-to-${APP_NAME}-app"
spec:
podSelector:
matchLabels:
app: "${APP_NAME}-app"
role: app
ingress:
- from:
- namespaceSelector:
matchLabels:
network.openshift.io/policy-group: ingress
policyTypes:
- Ingress
- apiVersion: v1
kind: ConfigMap
metadata:
Expand Down

0 comments on commit 066ab44

Please sign in to comment.