Skip to content

Instantly share code, notes, and snippets.

@tahmmee
Created August 22, 2018 16:43
Show Gist options
  • Save tahmmee/e90fedb1c5fad73207c019190fc08c41 to your computer and use it in GitHub Desktop.
Save tahmmee/e90fedb1c5fad73207c019190fc08c41 to your computer and use it in GitHub Desktop.
Couchbase cluster spec with persistent volume
apiVersion: couchbase.com/v1
kind: CouchbaseCluster
metadata:
name: cb-example
spec:
baseImage: couchbase/server
version: enterprise-5.5.1
authSecret: cb-example-auth
exposeAdminConsole: true
adminConsoleServices:
- data
exposedFeatures:
- xdcr
cluster:
dataServiceMemoryQuota: 256
indexServiceMemoryQuota: 256
searchServiceMemoryQuota: 256
eventingServiceMemoryQuota: 256
analyticsServiceMemoryQuota: 1024
indexStorageSetting: memory_optimized
autoFailoverTimeout: 5
autoFailoverMaxCount: 3
autoFailoverOnDataDiskIssues: true
autoFailoverOnDataDiskIssuesTimePeriod: 120
autoFailoverServerGroup: false
buckets:
- name: default
type: couchbase
memoryQuota: 128
replicas: 1
ioPriority: high
evictionPolicy: fullEviction
conflictResolution: seqno
enableFlush: true
enableIndexReplica: false
servers:
- size: 3
name: data
services:
- data
- index
pod:
volumeMounts:
default: couchbase # /opt/couchbase/var/lib/couchbase
data: couchbase # /mnt/data
index: couchbase # /mnt/index
- size: 1
name: search
services:
- query
- search
pod:
volumeMounts:
default: couchbase
securityContext:
fsGroup: 1000
volumeClaimTemplates:
- metadata:
name: couchbase
spec:
storageClassName: "gp2"
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment