Name the Kubernetes objects in English
catalogue-agent and approvisionnement-agent named a Deployment, a Service, an Ingress and a Certificate in French, in an estate where nothing else is. The peer URLs move with them, set through the existing per-environment override so the rename takes effect without rebuilding an image; the defaults in the code carry the same values for the next build. The Keycloak client ids, the image names and the repository names are still French. They are a separate, heavier move. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+6
-3
@@ -1,10 +1,10 @@
|
||||
# Everything here is an endpoint or a public identifier. The one secret the
|
||||
# agent holds arrives through catalogue-agent-secrets; nothing in this file is
|
||||
# agent holds arrives through catalog-agent-secrets; nothing in this file is
|
||||
# sensitive, which is the point of keeping the split visible.
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: catalogue-agent-config
|
||||
name: catalog-agent-config
|
||||
namespace: agents
|
||||
data:
|
||||
CATALOGUE_KEYCLOAK_REALM_URL: https://keycloak.sttlab.local/realms/classic-models
|
||||
@@ -23,4 +23,7 @@ data:
|
||||
# What other agents dial, so it is the Service DNS name and not the bind
|
||||
# address. It is advertised in the Agent Card; get it wrong and A2A callers
|
||||
# are pointed at nothing.
|
||||
CATALOGUE_PUBLIC_URL: http://catalogue-agent.agents.svc.cluster.local:8080/
|
||||
CATALOGUE_PUBLIC_URL: http://catalog-agent.agents.svc.cluster.local:8080/
|
||||
# The peer's Service name, overriding the default in config.py — set here so
|
||||
# the rename took effect without rebuilding an image.
|
||||
CATALOGUE_APPROVISIONNEMENT_URL: http://supply-agent.agents.svc.cluster.local:8080/
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: catalogue-agent
|
||||
name: catalog-agent
|
||||
namespace: agents
|
||||
spec:
|
||||
# One replica, and that is a constraint rather than a default. Conversation
|
||||
@@ -12,11 +12,11 @@ spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: catalogue-agent
|
||||
app: catalog-agent
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: catalogue-agent
|
||||
app: catalog-agent
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
@@ -36,9 +36,9 @@ spec:
|
||||
containerPort: 8080
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: catalogue-agent-config
|
||||
name: catalog-agent-config
|
||||
- secretRef:
|
||||
name: catalogue-agent-secrets
|
||||
name: catalog-agent-secrets
|
||||
volumeMounts:
|
||||
- name: sttlab-ca
|
||||
mountPath: /etc/sttlab-ca
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: catalogue-agent-secrets
|
||||
name: catalog-agent-secrets
|
||||
namespace: agents
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
@@ -16,7 +16,7 @@ spec:
|
||||
kind: ClusterSecretStore
|
||||
name: vault-keycloak
|
||||
target:
|
||||
name: catalogue-agent-secrets
|
||||
name: catalog-agent-secrets
|
||||
data:
|
||||
- secretKey: CATALOGUE_CLIENT_SECRET
|
||||
remoteRef:
|
||||
|
||||
+6
-6
@@ -4,7 +4,7 @@
|
||||
# every conversation with it went through `kubectl run curl`. An orchestrator
|
||||
# nobody can talk to is not finished.
|
||||
#
|
||||
# Peer traffic does **not** come through here — catalogue calls, and is called by,
|
||||
# Peer traffic does **not** come through here — this agent calls, and is called by,
|
||||
# other agents on their in-cluster Service names. This is the human door.
|
||||
#
|
||||
# ## It is not an open door
|
||||
@@ -27,10 +27,10 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: catalogue-agent-tls
|
||||
name: catalog-agent-tls
|
||||
namespace: agents
|
||||
spec:
|
||||
secretName: catalogue-agent-tls
|
||||
secretName: catalog-agent-tls
|
||||
dnsNames:
|
||||
- catalog-agent.sttlab.local
|
||||
issuerRef:
|
||||
@@ -40,7 +40,7 @@ spec:
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: catalogue-agent
|
||||
name: catalog-agent
|
||||
namespace: agents
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/auth-url: http://keycloak.keycloak.svc.cluster.local:8080/realms/classic-models/protocol/openid-connect/userinfo
|
||||
@@ -56,7 +56,7 @@ spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- catalog-agent.sttlab.local
|
||||
secretName: catalogue-agent-tls
|
||||
secretName: catalog-agent-tls
|
||||
rules:
|
||||
- host: catalog-agent.sttlab.local
|
||||
http:
|
||||
@@ -65,6 +65,6 @@ spec:
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: catalogue-agent
|
||||
name: catalog-agent
|
||||
port:
|
||||
number: 8080
|
||||
|
||||
+2
-2
@@ -1,11 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: catalogue-agent
|
||||
name: catalog-agent
|
||||
namespace: agents
|
||||
spec:
|
||||
selector:
|
||||
app: catalogue-agent
|
||||
app: catalog-agent
|
||||
ports:
|
||||
- name: http
|
||||
port: 8080
|
||||
|
||||
Reference in New Issue
Block a user