Changed some comments for presentation
This commit is contained in:
parent
cb08ae231e
commit
3939d3e541
@ -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:
|
||||
|
||||
@ -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 }}"
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user