mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
106 lines
2.9 KiB
YAML
106 lines
2.9 KiB
YAML
{{- if .Values.cilium.enabled }}
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: argocd
|
|
namespace: {{ .Release.Namespace }}
|
|
specs:
|
|
- nodeSelector:
|
|
# apply to all nodes
|
|
matchLabels: {}
|
|
egress:
|
|
# kubelet -> probes
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
app.kubernetes.io/name: argocd-server
|
|
io.kubernetes.pod.namespace: argocd
|
|
toPorts:
|
|
- ports:
|
|
- port: '8080'
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
app.kubernetes.io/name: argocd-application-controller
|
|
io.kubernetes.pod.namespace: argocd
|
|
toPorts:
|
|
- ports:
|
|
- port: '8082'
|
|
protocol: TCP
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
app.kubernetes.io/name: argocd-repo-server
|
|
io.kubernetes.pod.namespace: argocd
|
|
toPorts:
|
|
- ports:
|
|
- port: '8084'
|
|
protocol: TCP
|
|
- endpointSelector:
|
|
# apply to core dns pods
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-server
|
|
ingress:
|
|
# kubelet -> probes
|
|
- fromEntities:
|
|
- host
|
|
toPorts:
|
|
- ports:
|
|
- port: '8080'
|
|
protocol: TCP
|
|
# ingress -> server
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
io.cilium.k8s.policy.serviceaccount: nginx-ingress-microk8s-serviceaccount
|
|
io.kubernetes.pod.namespace: ingress
|
|
toPorts:
|
|
- ports:
|
|
- port: '8080'
|
|
protocol: TCP
|
|
# prometheus -> server metrics
|
|
- fromEndpoints:
|
|
- matchLabels:
|
|
io.cilium.k8s.policy.serviceaccount: prometheus-kube-prometheus-prometheus
|
|
io.kubernetes.pod.namespace: observability
|
|
toPorts:
|
|
- ports:
|
|
- port: '8083'
|
|
protocol: TCP
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
io.cilium.k8s.policy.serviceaccount: coredns
|
|
io.kubernetes.pod.namespace: kube-system
|
|
toPorts:
|
|
- ports:
|
|
- port: '53'
|
|
protocol: UDP
|
|
- toEntities:
|
|
- host
|
|
toPorts:
|
|
- ports:
|
|
- port: '16443'
|
|
protocol: TCP
|
|
- endpointSelector:
|
|
# apply to core dns pods
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-application-controller
|
|
ingress:
|
|
# kubelet -> probes
|
|
- fromEntities:
|
|
- host
|
|
toPorts:
|
|
- ports:
|
|
- port: '8082'
|
|
protocol: TCP
|
|
- endpointSelector:
|
|
# apply to core dns pods
|
|
matchLabels:
|
|
app.kubernetes.io/name: argocd-repo-server
|
|
ingress:
|
|
# kubelet -> probes
|
|
- fromEntities:
|
|
- host
|
|
toPorts:
|
|
- ports:
|
|
- port: '8084'
|
|
protocol: TCP
|
|
{{- end }} |