Skip to content

Single 서버로 구성하기


title: Single 서버로 구성하기 date: 2025-09-15 ---(otds만 적용됨)

otxecm-ingress.yaml rules 부분에 수정

  - host: {{ regexReplaceAllLiteral "^http(s?)://" .Values.global.otdsPublicUrl "" }}
    http:
      paths:
      - backend:
        {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
          service:
            name: {{ include "otxecm.otdsServiceName" . }}
            port:
              number: {{ .Values.otds.otdsws.port }}
        path: /otds-admin/
        pathType: Prefix
        {{- else }}
          serviceName: {{ include "otxecm.otdsServiceName" . }}
          servicePort: {{ .Values.otds.otdsws.port }}
        {{- end }}
      - backend:
        {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
          service:
            name: {{ include "otxecm.otdsServiceName" . }}
            port:
              number: {{ .Values.otds.otdsws.port }}
        path: /otds-admin/
        pathType: Prefix
        {{- else }}
          serviceName: {{ include "otxecm.otdsServiceName" . }}
          servicePort: {{ .Values.otds.otdsws.port }}
        {{- end }}
      - backend:
        {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
          service:
            name: {{ include "otxecm.otdsServiceName" . }}
            port:
              number: {{ .Values.otds.otdsws.port }}
        path: /otdsws/
        pathType: Prefix
        {{- else }}
          serviceName: {{ include "otxecm.otdsServiceName" . }}
          servicePort: {{ .Values.otds.otdsws.port }}
        {{- end }}
      - backend:
        {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
          service:
            name: {{ include "otxecm.otdsServiceName" . }}
            port:
              number: {{ .Values.otds.otdsws.port }}
        path: /ot-authws/
        pathType: Prefix
        {{- else }}
          serviceName: {{ include "otxecm.otdsServiceName" . }}
          servicePort: {{ .Values.otds.otdsws.port }}
        {{- end }}  
      - backend:
        {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
          service:
            name: {{ include "otxecm.otdsServiceName" . }}
            port:
              number: {{ .Values.otds.otdsws.port }}
        path: /otds-v2/
        pathType: Prefix
        {{- else }}
          serviceName: {{ include "otxecm.otdsServiceName" . }}
          servicePort: {{ .Values.otds.otdsws.port }}
        {{- end }}  
      - backend:
        {{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
          service:
            name: {{ include "otxecm.otdsServiceName" . }}
            port:
              number: {{ .Values.otds.otdsws.port }}
        path: /otdstenant/
        pathType: Prefix
        {{- else }}
          serviceName: {{ include "otxecm.otdsServiceName" . }}
          servicePort: {{ .Values.otds.otdsws.port }}
        {{- end }}  

적용되었는지 확인하는 방법

ecmadmin@ecmsvr25:~/base$ kubectl get ingress -n ecm
NAME             CLASS   HOSTS                                                                                      ADDRESS      PORTS     AGE
otxecm-ingress   nginx   ecmsvr25.pentasystem.kr,ecmsvr25.pentasystem.kr,ecmsvr25-otac.pentasystem.kr + 5 more...   10.96.15.3   80, 443   56m
ecmadmin@ecmsvr25:~/base$ kubectl get ingress otxecm-ingress  -n ecm -o yaml