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:
@@ -27,10 +27,10 @@
|
|||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
kind: Certificate
|
kind: Certificate
|
||||||
metadata:
|
metadata:
|
||||||
name: approvisionnement-agent-tls
|
name: supply-agent-tls
|
||||||
namespace: agents
|
namespace: agents
|
||||||
spec:
|
spec:
|
||||||
secretName: approvisionnement-agent-tls
|
secretName: supply-agent-tls
|
||||||
dnsNames:
|
dnsNames:
|
||||||
- supply-agent.sttlab.local
|
- supply-agent.sttlab.local
|
||||||
issuerRef:
|
issuerRef:
|
||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: approvisionnement-agent
|
name: supply-agent
|
||||||
namespace: agents
|
namespace: agents
|
||||||
annotations:
|
annotations:
|
||||||
nginx.ingress.kubernetes.io/auth-url: http://keycloak.keycloak.svc.cluster.local:8080/realms/classic-models/protocol/openid-connect/userinfo
|
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:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- supply-agent.sttlab.local
|
- supply-agent.sttlab.local
|
||||||
secretName: approvisionnement-agent-tls
|
secretName: supply-agent-tls
|
||||||
rules:
|
rules:
|
||||||
- host: supply-agent.sttlab.local
|
- host: supply-agent.sttlab.local
|
||||||
http:
|
http:
|
||||||
@@ -65,6 +65,6 @@ spec:
|
|||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: approvisionnement-agent
|
name: supply-agent
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 8080
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- approvisionnement.yaml
|
- supply.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: approvisionnement-agent
|
name: supply-agent
|
||||||
namespace: agents
|
namespace: agents
|
||||||
spec:
|
spec:
|
||||||
# The adapter is stateless — every task is one webhook call — so this is a
|
# The adapter is stateless — every task is one webhook call — so this is a
|
||||||
@@ -12,11 +12,11 @@ spec:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: approvisionnement-agent
|
app: supply-agent
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: approvisionnement-agent
|
app: supply-agent
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
@@ -53,7 +53,7 @@ spec:
|
|||||||
- name: ADAPTER_WEBHOOK_URL
|
- name: ADAPTER_WEBHOOK_URL
|
||||||
value: http://n8n.n8n.svc.cluster.local/webhook/check-availability
|
value: http://n8n.n8n.svc.cluster.local/webhook/check-availability
|
||||||
- name: ADAPTER_PUBLIC_URL
|
- name: ADAPTER_PUBLIC_URL
|
||||||
value: http://approvisionnement-agent.agents.svc.cluster.local:8080/
|
value: http://supply-agent.agents.svc.cluster.local:8080/
|
||||||
- name: ADAPTER_CA_BUNDLE
|
- name: ADAPTER_CA_BUNDLE
|
||||||
value: /etc/sttlab-ca/ca.crt
|
value: /etc/sttlab-ca/ca.crt
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -92,11 +92,11 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: approvisionnement-agent
|
name: supply-agent
|
||||||
namespace: agents
|
namespace: agents
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: approvisionnement-agent
|
app: supply-agent
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 8080
|
port: 8080
|
||||||
Reference in New Issue
Block a user