Skip to content

Commit

Permalink
Network policy from backend to db
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Feb 23, 2025
1 parent d08cb78 commit 6338cf7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ parameters:
- name: COMPONENT
description: "Component identifier within the application (backend)"
value: "backend"
- name: COMPONENT_DATBASE
description: "Component identifier for the database (crunchy postgres)"
value: "postgres-crunchy"
- name: ZONE
description: "Deployment zone (e.g. dev, test, prod, pr-###). Used for resource isolation"
required: true
Expand Down Expand Up @@ -222,10 +225,12 @@ objects:
labels:
app: "${NAME}-${ZONE}"
component: "${COMPONENT}"
app.kubernetes.io/instance: "${NAME}-${ZONE}"
app.kubernetes.io/name: "${NAME}-${ZONE}"
spec:
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: ${NAME}-${ZONE}-db
postgres-operator.crunchydata.com/cluster: ${COMPONENT_DATABASE}
ingress:
- ports:
- protocol: TCP
Expand Down

0 comments on commit 6338cf7

Please sign in to comment.