Changed some comments for presentation

This commit is contained in:
Adrien Bouvais 2026-09-16 20:12:36 +02:00
parent cb08ae231e
commit 3939d3e541
3 changed files with 9 additions and 5 deletions

View File

@ -15,15 +15,14 @@ spec:
- Ingress
- Egress
# Entrée : Autorise le trafic vers le Notebook Jupyter sur le port 8888
# Entrée
ingress:
- ports:
- protocol: TCP
port: 8888
# Sortie : Restreint les communications aux composants strictement nécessaires
# Sortie
egress:
# 1. Résolution DNS dans kube-system
- to:
- namespaceSelector:
matchLabels:
@ -34,7 +33,7 @@ spec:
- protocol: TCP
port: 53
# 2. Flux vers l'API MinIO (Stockage S3)
# 2. Vers MinIO
- to:
- namespaceSelector:
matchLabels:

View File

@ -10,7 +10,8 @@ type: Opaque
stringData:
MINIO_ACCESS_KEY_ID: 'tenant-{{ .Values.name }}-user'
# If the secret exist, keep. Otherwise create a new random one. (To prevent a new password at each sync).
MINIO_SECRET_ACCESS_KEY: {{ if and $existingSecret $existingSecret.data (hasKey $existingSecret.data "AWS_SECRET_ACCESS_KEY") }}{{ index $existingSecret.data "AWS_SECRET_ACCESS_KEY" | b64dec }}{{ else }}{{ randAlphaNum 24 }}{{ end }}
MINIO_SECRET_ACCESS_KEY: {{ if and $existingSecret $existingSecret.data (hasKey $existingSecret.data "MINIO_SECRET_ACCESS_KEY") }}{{ index $existingSecret.data "MINIO_SECRET_ACCESS_KEY" | b64dec }}{{ else }}{{ randAlphaNum 24 }}{{ end }}
S3_ENDPOINT: "http://minio.minio.svc.cluster.local:9000"
BUCKET_REF: "ref-tenant-{{ .Values.name }}"
BUCKET_WORK: "work-tenant-{{ .Values.name }}"

View File

@ -4,14 +4,18 @@ metadata:
name: tenants
namespace: argocd
spec:
# Ensure only pull from here
sourceRepos:
- https://git.bouvais.lu/adrien/ctie-exercice
# So this namespace can only affect other tenant and minio (not kube-system or argocd)
destinations:
- server: https://kubernetes.default.svc
namespace: 'tenant-*'
- server: https://kubernetes.default.svc
namespace: 'minio'
# This is necessary to create namespace
clusterResourceWhitelist:
- group: ''
kind: Namespace