mirror of
https://github.com/hanzoai/cd.git
synced 2026-10-30 14:56:45 +00:00
37 lines
845 B
YAML
37 lines
845 B
YAML
kind: NetworkPolicy
|
|
apiVersion: networking.k8s.io/v1
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: argocd-redis-ha-haproxy
|
|
app.kubernetes.io/component: redis
|
|
app.kubernetes.io/part-of: argocd
|
|
name: argocd-redis-ha-proxy-network-policy
|
|
spec:
|
|
podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-redis-ha-haproxy
|
|
policyTypes:
|
|
- Ingress
|
|
ingress:
|
|
- from:
|
|
- podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-server
|
|
- podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-repo-server
|
|
- podSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-application-controller
|
|
ports:
|
|
- port: 6379
|
|
protocol: TCP
|
|
- port: 26379
|
|
protocol: TCP
|
|
- from:
|
|
- namespaceSelector: {}
|
|
ports:
|
|
- port: 9101
|
|
protocol: TCP
|
|
|