docker - 如何在 okd 4(路由器、haproxy)中更改 503 错误页面
问题描述
我想更改 okd 中的默认错误页面。
我用configmap替换了router-default的/var/lib/haproxy/conf/error-page-503.http文件,但是自动恢复为错误。
谢谢你。
# oc edit deploy router-default
-------------------------------------------------------------------
...
volumeMounts:
- mountPath: /var/lib/haproxy/conf/error-page-503.http
name: haproxy-custom-configs
readOnly: true
subPath: error-page-503.http
...
volumes:
- configMap:
defaultMode: 644
items:
- key: error-page-503.http
path: error-page-503.http
name: haproxy-custom-configs-error-page
name: haproxy-custom-configs-error-page
-------------------------------------------------------------------
Gdeployment.apps/router-default edited
### Error Events
router-default-7c756d885-bd27l - NamespaceNSopenshift-ingress
0/9 nodes are available: 2 node(s) had taint {infra: reserved}, that the pod didn't tolerate, 3 node(s) didn't match node selector, 4 node(s) didn't match pod affinity/anti-affinity, 4 node(s) didn't match pod anti-affinity rules.
解决方案
推荐阅读
- altair - Altair“带 Href 的散点图”示例不再有效?
- python - 无法使用 gensim 加载 Doc2vec 对象
- java - 从匿名类到 lambda 表达式
- android - 如何从 FragmentPagerAdapter 移动到活动
- sql - 从拥有超过 5 个标题的用户中选择一个唯一名称。SQL
- php - 您如何为特定用户类别隐藏许多下拉菜单
- dart - Dart:使用通用扩展方法,得到 NoSuchMethodError: Class 'xxx' has no instance method 'yyy'
- kubernetes - 无法在 GCP VM 上构建 Kubernetes 代码
- c++ - 我该如何解决一元论据中的错误?
- python - 自动完成在 Visual Studio Code python 中不起作用