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

View File

@ -10,7 +10,8 @@ type: Opaque
stringData: stringData:
MINIO_ACCESS_KEY_ID: 'tenant-{{ .Values.name }}-user' 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). # 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" S3_ENDPOINT: "http://minio.minio.svc.cluster.local:9000"
BUCKET_REF: "ref-tenant-{{ .Values.name }}" BUCKET_REF: "ref-tenant-{{ .Values.name }}"
BUCKET_WORK: "work-tenant-{{ .Values.name }}" BUCKET_WORK: "work-tenant-{{ .Values.name }}"

View File

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