7장. 확인된 문제

이 섹션에는 OpenShift에서 AMQ Streams 2.2에 대한 알려진 문제가 나열되어 있습니다.

7.1. IPv6 클러스터의 AMQ Streams Cluster Operator

AMQ Streams Cluster Operator는 IPv6(Internet Protocol 버전 6) 클러스터에서 시작되지 않습니다.

해결방법

이 문제에는 두 가지 해결방법이 있습니다.

해결방법 1: KUBERNETES_MASTER 환경 변수 설정

  1. OpenShift Container Platform 클러스터의 Kubernetes 마스터 노드의 주소를 표시합니다.

    oc cluster-info
    Kubernetes master is running at <master_address>
    # ...

    마스터 노드의 주소를 복사합니다.

  2. 모든 Operator 서브스크립션을 나열합니다.

    oc get subs -n <operator_namespace>
  3. AMQ Streams의 서브스크립션 리소스를 편집합니다.

    oc edit sub amq-streams -n <operator_namespace>
  4. spec.config.env 에서 KUBERNETES_MASTER 환경 변수를 추가하고 Kubernetes 마스터 노드의 주소로 설정합니다. 예를 들면 다음과 같습니다.

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: amq-streams
      namespace: <operator_namespace>
    spec:
      channel: amq-streams-1.8.x
      installPlanApproval: Automatic
      name: amq-streams
      source: mirror-amq-streams
      sourceNamespace: openshift-marketplace
      config:
        env:
        - name: KUBERNETES_MASTER
          value: MASTER-ADDRESS
  5. 편집기를 저장한 후 종료합니다.
  6. 서브스크립션 이 업데이트되었는지 확인합니다.

    oc get sub amq-streams -n <operator_namespace>
  7. 새 환경 변수를 사용하도록 Cluster Operator 배포가 업데이트되었는지 확인합니다.

    oc get deployment <cluster_operator_deployment_name>

해결 방법 2: 호스트 이름 확인 비활성화

  1. 모든 Operator 서브스크립션을 나열합니다.

    oc get subs -n <operator_namespace>
  2. AMQ Streams의 서브스크립션 리소스를 편집합니다.

    oc edit sub amq-streams -n <operator_namespace>
  3. spec.config.env 에서 KUBERNETES_DISABLE_HOSTNAME_VERIFICATION 환경 변수를 추가하고 true 로 설정합니다. 예를 들면 다음과 같습니다.

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: amq-streams
      namespace: <operator_namespace>
    spec:
      channel: amq-streams-1.8.x
      installPlanApproval: Automatic
      name: amq-streams
      source: mirror-amq-streams
      sourceNamespace: openshift-marketplace
      config:
        env:
        - name: KUBERNETES_DISABLE_HOSTNAME_VERIFICATION
          value: "true"
  4. 편집기를 저장한 후 종료합니다.
  5. 서브스크립션 이 업데이트되었는지 확인합니다.

    oc get sub amq-streams -n <operator_namespace>
  6. 새 환경 변수를 사용하도록 Cluster Operator 배포가 업데이트되었는지 확인합니다.

    oc get deployment <cluster_operator_deployment_name>