ce7cb702218693d08ea6d83464d2457c9250027c

This commit is contained in:
ms2k 2026-11-12 20:46:28 +09:00
commit 34c5f8963c
4 changed files with 145336 additions and 0 deletions

View file

@ -0,0 +1,33 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: grafana-operator
namespace: grafana
spec:
interval: 15m
releaseName: grafana-operator
targetNamespace: grafana
chart:
spec:
chart: grafana-operator
version: 5.25.0
sourceRef:
kind: HelmRepository
name: grafana-oci
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
crds:
immutable: false
replicas: 2
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 512Mi

View file

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- helm-release.yaml
- network-policies.yaml

View file

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
gateway.quorate.internal/allow-internal: "true"
name: grafana

View file

@ -0,0 +1,78 @@
---
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: grafana-operator
namespace: grafana
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: grafana-operator
app.kubernetes.io/instance: grafana-operator
ingress:
- fromEntities:
- host
toPorts:
- ports:
- port: "8081"
protocol: TCP
egress:
- toEntities:
- kube-apiserver
toPorts:
- ports:
- port: "6443"
protocol: TCP
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: kube-system
k8s-app: kube-dns
toPorts:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
- toServices:
- k8sService:
namespace: kube-system
serviceName: kube-dns
toPorts:
- ports:
- port: "53"
protocol: UDP
- port: "53"
protocol: TCP
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: grafana
app.kubernetes.io/name: grafana
toPorts:
- ports:
- port: "3000"
protocol: TCP
- toServices:
- k8sService:
namespace: grafana
serviceName: grafana-service
toPorts:
- ports:
- port: "3000"
protocol: TCP
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: host-egress-grafana-operator
spec:
nodeSelector: {}
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: grafana
app.kubernetes.io/name: grafana-operator
app.kubernetes.io/instance: grafana-operator
toPorts:
- ports:
- port: "8081"
protocol: TCP