본문으로 건너뛰기

Aerospike 클러스터 생성

이 가이드는 AerospikeCluster CRD를 사용하여 Aerospike CE 클러스터를 배포하는 방법을 설명합니다.

샘플 설정

가장 간단한 클러스터: 단일 노드 인메모리 배포입니다.

apiVersion: acko.io/v1alpha1
kind: AerospikeCluster
metadata:
name: aerospike-ce-basic
namespace: aerospike
spec:
size: 1
image: aerospike:ce-8.1.1.1
aerospikeConfig:
namespaces:
- name: test
replication-factor: 1
storage-engine:
type: memory
data-size: 1073741824 # 1 GiB

사용 사례: 개발, 테스트, 빠른 프로토타이핑.

kubectl create namespace aerospike
kubectl apply -f config/samples/acko_v1alpha1_aerospikecluster.yaml

웹훅 기본값

오퍼레이터의 mutating 웹훅은 지정하지 않은 경우 다음 기본값을 자동으로 설정합니다:

필드기본값설명
aerospikeConfig.service.cluster-namemetadata.nameAerospike 클러스터 이름
aerospikeConfig.service.proto-fd-max15000최대 클라이언트 연결 수
aerospikeConfig.network.service.port3000클라이언트 서비스 포트
aerospikeConfig.network.heartbeat.port3002하트비트 포트
aerospikeConfig.network.heartbeat.modemesh하트비트 모드
aerospikeConfig.network.fabric.port3001패브릭(노드 간 통신) 포트
monitoring.exporterImageaerospike/aerospike-prometheus-exporter:1.16.1익스포터 이미지 (모니터링 활성화 시)
monitoring.port9145익스포터 메트릭 포트 (모니터링 활성화 시)
monitoring.serviceMonitor.interval30s스크래핑 주기 (ServiceMonitor 활성화 시)
podSpec.multiPodPerHostfalse노드당 하나의 파드 (hostNetwork 활성화 시)
podSpec.dnsPolicyClusterFirstWithHostNetDNS 정책 (hostNetwork 활성화 시)

CE 검증 규칙

validating 웹훅은 Community Edition 제약 조건을 적용합니다:

규칙제약오류 메시지
클러스터 크기spec.size 최대 8spec.size N exceeds CE maximum of 8
네임스페이스 개수최대 2개namespaces count N exceeds CE maximum of 2
XDR사용 불가must not contain 'xdr' section
TLS사용 불가must not contain 'tls' section
Security사용 불가 (CE 8.x)must not contain 'security' section
하트비트 모드반드시 meshmust be 'mesh' for CE
이미지CE 이미지만 가능Enterprise Edition image not allowed
복제 팩터spec.size 이하replication-factor N exceeds cluster size
복제 팩터 범위1~4must be between 1 and 4
랙 ID고유해야 함duplicate rack ID
랙 라벨랙 간 고유해야 함duplicate rackLabel
오퍼레이션동시에 최대 1개only one operation allowed
오퍼레이션 ID1-20자id must be between 1 and 20 characters
오퍼레이션 (진행 중)InProgress 중 변경 불가cannot modify operations while InProgress
scaleDownBatchSize양수여야 함must be positive
rollingUpdateBatchSize (rackConfig)양수여야 함must be positive
maxIgnorablePods0 이상이어야 함must not be negative

Enterprise 전용 네임스페이스 키

다음 네임스페이스 설정 키는 CE에서 차단됩니다:

이유
compression, compression-level데이터 압축은 Enterprise 전용
durable-delete영구 삭제는 Enterprise 전용
fast-restart빠른 재시작은 Enterprise 전용
index-typeFlash/pmem 인덱스는 Enterprise 전용
sindex-typeFlash/pmem 보조 인덱스는 Enterprise 전용
rack-id오퍼레이터 rackConfig를 대신 사용
strong-consistencyStrong consistency는 Enterprise 전용
tomb-raider-eligible-age, tomb-raider-periodTomb-raider는 Enterprise 전용

경고

웹훅은 다음에 대해 경고(비차단)도 발생시킵니다:

  • 태그 없는 이미지 또는 latest 태그 사용
  • hostNetwork=truemultiPodPerHost=true (포트 충돌 위험)
  • hostNetwork=trueClusterFirstWithHostNet이 아닌 DNS 정책
  • data-in-memory=true (메모리 사용량 2배)
  • rollingUpdateBatchSize가 클러스터 크기보다 큰 경우