NetworkPolicy
This commit is contained in:
@@ -3,11 +3,11 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: dragonfly
|
||||
namespace: memelord-laurivosandi
|
||||
namespace: memelord-raiko
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: memelord-laurivosandi-redis
|
||||
app: memelord-raiko-redis
|
||||
app.kubernetes.io/name: dragonfly
|
||||
policyTypes:
|
||||
- Ingress
|
||||
@@ -22,7 +22,7 @@ spec:
|
||||
- from: # Dragonfly replication
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app: memelord-laurivosandi-redis
|
||||
app: memelord-raiko-redis
|
||||
app.kubernetes.io/name: dragonfly
|
||||
ports:
|
||||
- protocol: TCP
|
||||
@@ -32,11 +32,11 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: postgres
|
||||
namespace: memelord-laurivosandi
|
||||
namespace: memelord-raiko
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
cnpg.io/cluster: memelord-laurivosandi-database
|
||||
cnpg.io/cluster: memelord-raiko-database
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
@@ -46,7 +46,7 @@ spec:
|
||||
app: memelord
|
||||
- podSelector: # Primary-secondary replication!
|
||||
matchLabels:
|
||||
cnpg.io/cluster: memelord-laurivosandi-database
|
||||
cnpg.io/cluster: memelord-raiko-database
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5432
|
||||
@@ -58,7 +58,7 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: memelord
|
||||
namespace: memelord-laurivosandi
|
||||
namespace: memelord-raiko
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
|
||||
Reference in New Issue
Block a user