-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ingress Configuration Not Working with MinIO Operator #2373
Comments
As a workaround, if possible, I would like to understand how to fully disable TLS on minIO. In my particular use-case i just want to test some functionalities locally, security is not the most important aspect at this point. I've tried with the environment variables: tenant:
env:
- name: MINIO_CONSOLE_TLS_ENABLE
value: "off"
- name: MINIO_SERVER_TLS_ENABLE
value: "off" But seems not to be effective at all and I would say that this could be the root cause of my issue as the certificates used are selfsigned then I got |
A vanilla (simple) docker Minio instance may run with arguments like this: |
Hi @michaelfresco thank's for your response. Fortunately after inspecting the helm charts and some try errors I got this config that works for my use-case. Just leaving it here in case it could be useful for someone else tenant:
certificate:
requestAutoCert: false
externalCertSecret: ""
env:
- name: MINIO_SERVER_URL
value: "http://minio-hl.minio.svc.cluster.local:9000"
- name: MINIO_BROWSER_REDIRECT_URL
value: "https://minio-console.localhost"
features:
bucketDNS: true
domains:
console: https://minio-console.localhost
minio:
- https://minio.localhost
image:
repository: quay.io/minio/minio
tag: RELEASE.2024-12-18T13-15-44Z-cpuv1
pullPolicy: IfNotPresent
name: minio
pools:
- name: pool-0
servers: 1
size: 2G
buckets:
- name: pyroscope-bucket
objectLock: false
- name: tempo-bucket
objectLock: false
configSecret:
accessKey: minio
secretKey: minio123
ingress:
api:
enabled: true
ingressClassName: nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
kubernetes.io/tls-acme: "true"
host: minio.localhost
tls:
- hosts:
- minio.localhost
secretName: minio-localhost-tls
console:
enabled: true
ingressClassName: nginx
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
kubernetes.io/tls-acme: "true"
host: minio-console.localhost
tls:
- hosts:
- minio-console.localhost
secretName: minio-console-localhost-tls Some notes about it.
I have to say that documentation is not very clear about it, but in any case at the end was a matter of diving a bit deeper |
Expected Behavior
The ingress configuration should route traffic correctly to the MinIO console and API endpoints. Users should be able to access the MinIO console and API via the specified ingress hosts (e.g.,
https://minio-console.localhost
andhttps://minio.localhost
).Current Behavior
Despite configuring the ingress resources, users are unable to access the MinIO console and API endpoints. The ingress controller logs show errors such as:
ingress-nginx-controller-867bbcb78-8slz9 controller 2024/12/22 10:42:29 [error] 13148#13148: *2475267 recv() failed (104: Connection reset by peer) while reading upstream, client: 172.18.0.1, server: minio.localhost, request: "GET / HTTP/2.0", upstream: "http://10.244.1.77:9000/", host: "minio.localhost" ingress-nginx-controller-867bbcb78-8slz9 controller 172.18.0.1 - - [22/Dec/2024:10:42:29 +0000] "GET / HTTP/2.0" 400 48 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" 427 0.009 [minio-minio-https-minio] [] 10.244.1.77:9000 48 0.009 400 6b7411ea865c119721867aaeec2d0466
Steps to Reproduce (for bugs)
values.yaml
file to deploy the MinIO Operator and a tenant.Attempt to access
https://minio-console.localhost
andhttps://minio.localhost
in your browser.minio-console
backend service is working properlyAttempt to access
https://localhost:9443
Context
I am trying to deploy MinIO using the MinIO Operator in a Kind cluster for object storage needs. The ingress configuration is crucial for accessing the MinIO console and API endpoints. However, despite following the documentation and configuring the ingress resources, I am unable to access these endpoints.
Regression
No, this is not a regression. It is a new deployment issue.
Your Environment
The text was updated successfully, but these errors were encountered: