22.10. 기존 ingress 오브젝트 패치
오브젝트를 다시 생성하거나 서비스를 중단하지 않고 기존 Ingress 오브젝트의 다음 필드를 업데이트하거나 수정할 수 있습니다.
- 사양
- 호스트
- 경로
- 백엔드 서비스
- SSL/TLS 설정
- 주석
22.10.1. Ingress 오브젝트를 패치하여 ingressWithoutClassName 경고 해결 링크 복사링크가 클립보드에 복사되었습니다!
ingressClassName 필드는 IngressClass 오브젝트의 이름을 지정합니다. 각 Ingress 오브젝트에 대한 ingressClassName 필드를 정의해야 합니다.
Ingress 오브젝트에 대한 ingressClassName 필드를 정의하지 않은 경우 라우팅 문제가 발생할 수 있습니다. 24시간 후에 ingressWithoutClassName 경고를 수신하여 ingressClassName 필드를 설정하도록 알립니다.
절차
완료된 ingressClassName 필드로 Ingress 오브젝트를 패치하여 적절한 라우팅 및 기능을 보장합니다.
모든
IngressClass오브젝트를 나열합니다.oc get ingressclass
$ oc get ingressclassCopy to Clipboard Copied! Toggle word wrap Toggle overflow 모든 네임스페이스의 모든
Ingress오브젝트를 나열합니다.oc get ingress -A
$ oc get ingress -ACopy to Clipboard Copied! Toggle word wrap Toggle overflow Ingress오브젝트를 패치합니다.oc patch ingress/<ingress_name> --type=merge --patch '{"spec":{"ingressClassName":"openshift-default"}}'$ oc patch ingress/<ingress_name> --type=merge --patch '{"spec":{"ingressClassName":"openshift-default"}}'Copy to Clipboard Copied! Toggle word wrap Toggle overflow &
lt;ingress_name>을Ingress오브젝트의 이름으로 바꿉니다. 이 명령은 원하는 ingress 클래스 이름을 포함하도록Ingress오브젝트를 패치합니다.