Skip to content

Commit

Permalink
fix: Stackrox DB Net Policy Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan committed Feb 11, 2024
1 parent 1e860c0 commit 08b3ca0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions kubernetes/quay/base/postgres/clair/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ spec:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: postgres
kubernetes.io/metadata.name: quay
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: clair
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: postgres
kubernetes.io/metadata.name: quay
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: clair
4 changes: 2 additions & 2 deletions kubernetes/quay/base/postgres/clair/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storage: 25Gi
instances:
- dataVolumeClaimSpec:
storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storage: 5Gi
name: ""
replicas: 2
resources:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/quay/base/postgres/quay/network-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ spec:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: postgres
kubernetes.io/metadata.name: quay
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: quay
egress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: postgres
kubernetes.io/metadata.name: quay
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: quay
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: postgres
kubernetes.io/metadata.name: stackrox
podSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: stackrox
6 changes: 3 additions & 3 deletions kubernetes/stackrox-central/base/postgres/postgres.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StackroxDB Tweak
# alter user stackrox createdb;
# alter user stackrox superuser
# alter user stackrox superuser;
# PSQL 15 Public Scheme Tweak
# \c stackrox
# GRANT CREATE ON SCHEMA public TO stackrox;
Expand Down Expand Up @@ -57,15 +57,15 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 25Gi
storage: 50Gi
instances:
- dataVolumeClaimSpec:
storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 15Gi
storage: 30Gi
name: ""
replicas: 2
resources:
Expand Down

0 comments on commit 08b3ca0

Please sign in to comment.