ri0day

ri0day

V2EX member #11694, joined on 2011-09-07 21:45:29 +08:00
Per ri0day's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
ri0day's recent replies
FRE-821ee3c6 谢谢老板
Jul 25, 2025
Replied to a topic by COW Kubernetes Gitops 中涉及敏感信息推荐用什么工具呢?
sops
May 29, 2024
Replied to a topic by skrbug Kubernetes 有人在生产上使用过 harvester 吗?
如果已经有基于 kubernetes 的储存方案,可以试一下[talos]( https://www.talos.dev/)
Jun 28, 2019
Replied to a topic by sxw11 程序员 关于 docker 使用问题咨询
第一,生产环境或不要把这些服务放在一个机器上,docker-compose 显然不适合你生产环境使用.
第二, 现在很少有单纯只用 docker 去跑一套企业级的应用 一般都是放在 kubernetes 上跑.
建议你先一步步来:
把你提到的这些组件先一个个迁移到 docker 上能运行
然后在测试环境用 docker-compose 把这些服务串起来
有了前面的知识积累,了解一下 kubernetes 的 pod/deploment /service /configmap/pvc /ingress 这些概念以后,最后把这些组件部署到 kubernetes 上.
Oct 31, 2017
Replied to a topic by K1W1 Linux 请问 shell 可以实现一个简单的 web 接口吗?
建议看一下 https://github.com/ri0day/wwwoosh
其实就是 nc 监听一个端口然后处理一下,最后按照 http 协议规定输出 status code ,header, body
帮顶,可惜,明年才有可能回长沙 一直在上海做运维和运维开发 8 年了,主力语言也是 python
Jul 10, 2017
Replied to a topic by Athenas Linux 诸君~ ELK 的问题看过来
filebeat 是不行的 , logstash codec 有 gzip 的
https://discuss.elastic.co/t/read-a-gzip-file-with-gzip-lines-codec/24558
是的
如果是返回 302,response header 里面就有 location 这个 header
r = requests.post('http://xyz.com/302',data = data)
r.headers['Location']

还有一个简单做法就是:
r = requests.post(url, allow_redirects=True)
print(r.url)
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3244 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 12:11 · PVG 20:11 · LAX 05:11 · JFK 08:11
♥ Do have faith in what you're doing.