![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
容器
我没有开挂
这个作者很懒,什么都没留下…
展开
-
Dockerfile 执行 git clone 一直 timeout 或者 server certificate verification failed
问题1:fatal: unable to access ‘https://github.com/***/’: Operation timed out after 300032 milliseconds with 0 out of 0 bytes received原因:链路的MTU导致,docker默认1500,应该主机或者路由有限制1450或者1340啥的,一般改为较小的1300就比较保险,参考Git clone command fails with timeout解决:由于我是gitlab k8s r原创 2022-05-16 11:11:04 · 2705 阅读 · 0 评论 -
Grafana 在 K8S 中配置 DataSources
Grafana 通过在/etc/grafana/provisioning中的配置文件来设置相关参数因此在K8S中给 grafana 的 deployment 的 配一个 configmap 即可,deployment.yaml修改如下,...volumeMounts:- mountPath: /etc/grafana/provisioning/datasources name: grafana-datasources readOnly: false...volumes:- name:原创 2021-04-21 17:25:22 · 817 阅读 · 0 评论 -
Grafana 容器中修改配置参数实现反向代理子路径
问题在K8S中运行grafana后因为要配置反向代理,需要修改grafana.ini的默认参数,保存的时候报错如下'/etc/grafana/grafana.ini' is read only解决方法给容器设置环境变量因为官方提供两种修改配置的方式:修改ini配置文件和修改环境变量既然无法修改ini文件,则可以通过设置其中deployment中grafana对应的的container的环境变量,让其在启动时读取到配置参数在grafana-deployment.yaml文件中添加env字段如下原创 2021-04-21 00:54:27 · 1514 阅读 · 0 评论