🔧(helm) replace storage url in ingressMedia

There is no mechanism to have the media storage
URL from a secret from the ingress.
The media storage URL has to be hardcoded.
We replace the media storage URL in the ingress,
if we change the cluster, we will have to update
these urls.
This commit is contained in:
Anthony LC
2024-08-30 10:52:09 +02:00
committed by Anthony LC
parent 4cb0423511
commit f2a78ada47
3 changed files with 24 additions and 33 deletions

View File

@@ -161,17 +161,14 @@ ingressMedia:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/auth-url: https://impress-preprod.beta.numerique.gouv.fr/api/v1.0/documents/retrieve-auth/
nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Amz-Date, X-Amz-Content-SHA256" nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Amz-Date, X-Amz-Content-SHA256"
nginx.ingress.kubernetes.io/upstream-vhost: nginx.ingress.kubernetes.io/auth-url: https://impress-preprod.beta.numerique.gouv.fr/api/v1.0/documents/retrieve-auth/
secretKeyRef: nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
name: impress-media-storage.bucket.libre.sh nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
key: url nginx.ingress.kubernetes.io/rewrite-target: /impress-preprod-impress-media-storage/$1
nginx.ingress.kubernetes.io/rewrite-target: /impress-media-storage/$1 nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/upstream-vhost: s3.margaret-hamilton.indiehosters.net
serviceMedia: serviceMedia:
host: host: s3.margaret-hamilton.indiehosters.net
secretKeyRef: port: 443
name: impress-media-storage.bucket.libre.sh
key: url
port: 9000

View File

@@ -161,17 +161,14 @@ ingressMedia:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/auth-url: https://docs.numerique.gouv.fr/api/v1.0/documents/retrieve-auth/
nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Amz-Date, X-Amz-Content-SHA256" nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Amz-Date, X-Amz-Content-SHA256"
nginx.ingress.kubernetes.io/upstream-vhost: nginx.ingress.kubernetes.io/auth-url: https://docs.numerique.gouv.fr/api/v1.0/documents/retrieve-auth/
secretKeyRef: nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
name: impress-media-storage.bucket.libre.sh nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
key: url nginx.ingress.kubernetes.io/rewrite-target: /impress-production-impress-media-storage/$1
nginx.ingress.kubernetes.io/rewrite-target: /impress-media-storage/$1 nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/upstream-vhost: s3.hedy-lamarr.indiehosters.net
serviceMedia: serviceMedia:
host: host: s3.hedy-lamarr.indiehosters.net
secretKeyRef: port: 443
name: impress-media-storage.bucket.libre.sh
key: url
port: 9000

View File

@@ -161,17 +161,14 @@ ingressMedia:
annotations: annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/auth-url: https://impress-staging.beta.numerique.gouv.fr/api/v1.0/documents/retrieve-auth/
nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Amz-Date, X-Amz-Content-SHA256" nginx.ingress.kubernetes.io/auth-response-headers: "Authorization, X-Amz-Date, X-Amz-Content-SHA256"
nginx.ingress.kubernetes.io/upstream-vhost: nginx.ingress.kubernetes.io/auth-url: https://impress-staging.beta.numerique.gouv.fr/api/v1.0/documents/retrieve-auth/
secretKeyRef: nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
name: impress-media-storage.bucket.libre.sh nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
key: url nginx.ingress.kubernetes.io/rewrite-target: /impress-staging-impress-media-storage/$1
nginx.ingress.kubernetes.io/rewrite-target: /impress-media-storage/$1 nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/upstream-vhost: s3.margaret-hamilton.indiehosters.net
serviceMedia: serviceMedia:
host: host: s3.margaret-hamilton.indiehosters.net
secretKeyRef: port: 443
name: impress-media-storage.bucket.libre.sh
key: url
port: 9000