Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Exec into ingress nodes and curl them via service domain and via localhost [nginx]. And you'll see
-
You could also try figure out exactly how they're I'll formed and take it from there
-
hjk10157312y@catholic-emacs that my friend is a newline conversion (\r\n the network standard turned \n). Do you perhaps work on Windows? If so check your git auto conversion crap in check-in.
-
hjk10157312y@catholic-emacs ok check the images on disk in cloud. If that is fine check where newline replacement is going on in the serving pipeline. If not see how this got saved (ftp for example can do this).
This shit is not standard. -
Specify content-type as image/png. If it's text/plain, your webserver/http proxy *may* decide to replace \n with \r\n if it sees Windows in the User-Agent header.
-
@netikras I was able to exec into the Ingress pod and perform a cURL to localhost and the Header says its a image/png. Doing a cURL to a service domain name doesn't work for me (<service>.<namespace>.cluster.local isn't doing it for me)
-
I pulled my container from Gitlab, ran it and to my surprise I'm receiving the same corrupt file back 🤔🤔🤔🤔🤔🤔🤔
-
@catholic-emacs and the contents? Is it \0a\0d via localhost?
If service name resolution doesn't work (why wouldn't it tho....?), try with a pod's IP.
See if the response content is the same. And compare the resp headers. -
@catholic-emacs does curl and the browser fetch the same identical response body? Might be worth comparing
-
Why would Gitlab CI corrupt my dear PNGs 😢😢😢
Removing intermediate container fcdf21fc9669
---> e029e5717006
Step 5/6 : COPY static/ ./
---> fcb8c73cdba6
Step 6/6 : RUN sha256sum -c files.txt
---> Running in 10c05798db5b
browserconfig.xml: OK
favicon-114.png: FAILED
favicon-120.png: FAILED
favicon-144.png: FAILED
favicon-150.png: FAILED
favicon-152.png: FAILED
favicon-160.png: FAILED
favicon-16.png: FAILED
favicon-180.png: FAILED
favicon-192.png: FAILED
favicon-310.png: FAILED
favicon-32.png: FAILED
favicon-57.png: FAILED
favicon-60.png: FAILED
favicon-64.png: FAILED
favicon-70.png: FAILED
favicon-72.png: FAILED
favicon-76.png: FAILED
favicon-96.png: FAILED
favicon.ico: OK
robots.txt: OK
site.webmanifest: OK
sha256sum: WARNING: 18 computed checksums did NOT match -
so I ended activating Git LFS on my repo and that prevented data corruption. Probably Git is doing something that it should because the files on the repo were already corrupt upon checking
Related Rants
why the fuck those images wouldn't load? they come corrupt from K8S, but they are fine if I run the container locally, like... wtf? is Ingress NGINX doing something to them or did I configure something wrong?!
rant
nginx
kubernetes
ingress