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,102 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: agentgateway-crds
namespace: agentgateway-system
spec:
interval: 1h
url: oci://cr.agentgateway.dev/charts/agentgateway-crds
ref:
digest: sha256:946b739c0fcda4d47a72d1589d184b6fd507772e733cbedf02789bafd0468064
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: agentgateway-crds
namespace: agentgateway-system
spec:
interval: 15m
releaseName: agentgateway-crds
chartRef:
kind: OCIRepository
name: agentgateway-crds
install:
remediation:
retries: 3
upgrade:
strategy:
name: RetryOnFailure
remediation:
retries: 3
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: agentgateway
namespace: agentgateway-system
spec:
interval: 1h
url: oci://cr.agentgateway.dev/charts/agentgateway
ref:
digest: sha256:40340d639e35206317c934e9af3e29575cf7c5377b2940679732baac6e108c15
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: agentgateway
namespace: agentgateway-system
spec:
dependsOn:
- name: agentgateway-crds
interval: 15m
releaseName: agentgateway
chartRef:
kind: OCIRepository
name: agentgateway
install:
remediation:
retries: 3
upgrade:
strategy:
name: RetryOnFailure
remediation:
retries: 3
values:
podAnnotations: {}
podLabels:
app.kubernetes.io/part-of: agentgateway
podSecurityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
memory: 512Mi
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: agentgateway
app.kubernetes.io/instance: agentgateway
topologyKey: kubernetes.io/hostname
controller:
replicaCount: 2
logLevel: info
podDisruptionBudget:
minAvailable: 1
image:
tag: v1.7.0@sha256:87c1363bf0cbc7fdb375866e592294114c8763097d2d0c9fc45fcb1fe00a4ab8
proxy:
image:
tag: v1.7.0@sha256:60216aafb03d37f94e952ff3d51d2f630a65b10ecaebdc0a864882f92610c45b

View file

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

View file

@ -0,0 +1,8 @@
apiVersion: v1
kind: Namespace
metadata:
name: agentgateway-system
labels:
pod-security.kubernetes.io/enforce: restricted
pod-security.kubernetes.io/audit: restricted
pod-security.kubernetes.io/warn: restricted

View file

@ -0,0 +1,63 @@
apiVersion: cilium.io/v2
kind: CiliumNetworkPolicy
metadata:
name: agentgateway-controller
namespace: agentgateway-system
spec:
endpointSelector:
matchLabels:
app.kubernetes.io/name: agentgateway
app.kubernetes.io/instance: agentgateway
ingress:
- fromEntities:
- host
toPorts:
- ports:
- port: "9092"
protocol: TCP
- port: "9093"
protocol: TCP
- fromEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: agentgateway-system
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
toPorts:
- ports:
- port: "9978"
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
---
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: host-egress-agentgateway-controller
spec:
nodeSelector: {}
egress:
- toEndpoints:
- matchLabels:
k8s:io.kubernetes.pod.namespace: agentgateway-system
app.kubernetes.io/name: agentgateway
app.kubernetes.io/instance: agentgateway
toPorts:
- ports:
- port: "9092"
protocol: TCP
- port: "9093"
protocol: TCP