首页 > 解决方案 > 如何在 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.

标签: dockerkubernetesopenshiftokd

解决方案


推荐阅读