7장. Service Registry Operator 구성 참조
이 장에서는 Apicurio Registry를 배포하도록 Service Registry Operator를 구성하는 데 사용되는 사용자 정의 리소스에 대한 자세한 정보를 제공합니다.
7.1. Apicurio 레지스트리 사용자 정의 리소스
Service Registry Operator는 OpenShift에서 Apicurio Registry 의 단일 배포를 나타내는 ApicurioRegistry 사용자 정의 리소스(CR) 를 정의합니다.
이러한 리소스 오브젝트는 사용자가 Apicurio Registry를 배포하고 구성하는 방법을 Service Registry Operator에 지시하도록 생성하고 유지 관리합니다.
ApicurioRegistry CR의 예
다음 명령은 ApicurioRegistry 리소스를 표시합니다.
oc get apicurioregistry oc edit apicurioregistry example-apicurioregistry
apiVersion: registry.apicur.io/v1
kind: ApicurioRegistry
metadata:
name: example-apicurioregistry
namespace: demo-kafka
# ...
spec:
configuration:
persistence: kafkasql
kafkasql:
bootstrapServers: 'my-cluster-kafka-bootstrap.demo-kafka.svc:9092'
deployment:
host: >-
example-apicurioregistry.demo-kafka.example.com
status:
conditions:
- lastTransitionTime: "2021-05-03T10:47:11Z"
message: ""
reason: Reconciled
status: "True"
type: Ready
info:
host: example-apicurioregistry.demo-kafka.example.com
managedResources:
- kind: Deployment
name: example-apicurioregistry-deployment
namespace: demo-kafka
- kind: Service
name: example-apicurioregistry-service
namespace: demo-kafka
- kind: Ingress
name: example-apicurioregistry-ingress
namespace: demo-kafka중요
기본적으로 Service Registry Operator는 자체 프로젝트 네임스페이스만 감시합니다. 따라서 Operator를 수동으로 배포하는 경우 동일한 네임스페이스에 ApicurioRegistry CR을 생성해야 합니다. Operator 배포 리소스에서 WATCH_NAMESPACE 환경 변수를 업데이트하여 이 동작을 수정할 수 있습니다.