Initial commit: Complete NodeJS-native setup
- Migrated from Python pre-commit to NodeJS-native solution - Reorganized documentation structure - Set up Husky + lint-staged for efficient pre-commit hooks - Fixed Dockerfile healthcheck issue - Added comprehensive documentation index
This commit is contained in:
68
k8s/network-policy.yaml
Normal file
68
k8s/network-policy.yaml
Normal file
@@ -0,0 +1,68 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: frontend-policy
|
||||
labels:
|
||||
app: rxminder
|
||||
component: frontend
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
component: frontend
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
component: frontend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
egress:
|
||||
- to:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
component: database
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5984
|
||||
- to:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
component: frontend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: database-policy
|
||||
labels:
|
||||
app: rxminder
|
||||
component: database
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
component: database
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
component: frontend
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5984
|
||||
egress:
|
||||
- to:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
component: database
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5984
|
||||
Reference in New Issue
Block a user