85 lines
1.9 KiB
YAML
85 lines
1.9 KiB
YAML
apiVersion: agentgateway.dev/v1alpha1
|
|
kind: AgentgatewayParameters
|
|
metadata:
|
|
name: agentgateway-proxy
|
|
namespace: agentgateway-system
|
|
spec:
|
|
logging:
|
|
format: json
|
|
level: info
|
|
modelCatalog:
|
|
sources:
|
|
- configMap:
|
|
name: agentgateway-model-costs
|
|
key: catalog.json
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
memory: 512Mi
|
|
podDisruptionBudget:
|
|
spec:
|
|
minAvailable: 1
|
|
service:
|
|
spec:
|
|
type: ClusterIP
|
|
deployment:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/part-of: agentgateway
|
|
spec:
|
|
replicas: 2
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/part-of: agentgateway
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
topologySpreadConstraints:
|
|
- maxSkew: 1
|
|
topologyKey: kubernetes.io/hostname
|
|
whenUnsatisfiable: DoNotSchedule
|
|
labelSelector:
|
|
matchLabels:
|
|
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
|
|
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: Gateway
|
|
metadata:
|
|
name: agentgateway-proxy
|
|
namespace: agentgateway-system
|
|
spec:
|
|
gatewayClassName: agentgateway
|
|
infrastructure:
|
|
parametersRef:
|
|
group: agentgateway.dev
|
|
kind: AgentgatewayParameters
|
|
name: agentgateway-proxy
|
|
listeners:
|
|
- name: http
|
|
protocol: HTTP
|
|
port: 80
|
|
allowedRoutes:
|
|
namespaces:
|
|
from: Same
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: agentgateway-proxy-metrics
|
|
namespace: agentgateway-system
|
|
labels:
|
|
app.kubernetes.io/name: agentgateway-proxy
|
|
app.kubernetes.io/component: metrics
|
|
spec:
|
|
selector:
|
|
gateway.networking.k8s.io/gateway-name: agentgateway-proxy
|
|
ports:
|
|
- name: metrics
|
|
port: 15020
|
|
targetPort: 15020
|
|
protocol: TCP
|