I was trying to follow along with the following guide and it’s prequel steps but I’ve consistently run into issues with deploying the couchbase cluster itself across multiple platforms now. I’ve created the operator and it seems to have deployed correctly, but the couchbase server fails a readiness probe. On Minishift (with the suggested cpu/memory settings) using the provided couchbase package’s files, it will always spawn 1 cb-example pod instead of 3 and this pod will never reach a ready state.
NAME READY STATUS RESTARTS AGE
cb-example-0000 0/1 Running 0 6s
It doesn’t seem to provide any error logs in ‘/opt/couchbase/var/lib/couchbase/logs’ otherwise I would provide them. I understand this isn’t a lot of information to work off of but I’m not sure what else would be relevant. Here’s the output of describing the pod that’s failing:
Name: cb-example-0000 Namespace: myproject Priority: 0 PriorityClassName: <none> Node: localhost/10.0.2.15 Start Time: Wed, 10 Jul 2019 15:36:11 -0400 Labels: app=couchbase couchbase_cluster=cb-example couchbase_node=cb-example-0000 couchbase_node_conf=all_services couchbase_service_analytics=enabled couchbase_service_data=enabled couchbase_service_eventing=enabled couchbase_service_index=enabled couchbase_service_query=enabled couchbase_service_search=enabled Annotations: openshift.io/scc: restricted operator.couchbase.com/version: 1.2.0 server.couchbase.com/version: enterprise-6.0.1 Status: Running IP: <ip> Controlled By: CouchbaseCluster/cb-example Containers: couchbase-server: Container ID: docker://d97a07fa7e96f16da65e589f62993c1d4d03f0f350fd976fe0e9cc3f5317bd60 Image: couchbase/server:enterprise-6.0.1 Image ID: docker-pullable://docker.io/couchbase/server@sha256:b5ab04755fa2844196e34eb4e2e551c309b3632ce01f3d080153f29db76e9376 Ports: 8091/TCP, 8092/TCP, 8093/TCP, 8094/TCP, 8095/TCP, 8096/TCP, 9100/TCP, 9101/TCP, 9102/TCP, 9103/TCP, 9104/TCP, 9105/TCP, 9110/TCP, 9111/TCP, 9112/TCP, 9113/TCP, 9114/TCP, 9115/TCP, 9116/TCP, 9117/TCP, 9118/TCP, 9119/TCP, 9120/TCP, 9121/TCP, 9122/TCP, 11207/TCP, 11210/TCP, 11211/TCP, 11214/TCP, 11215/TCP, 18091/TCP, 18092/TCP, 18093/TCP, 18094/TCP, 18095/TCP, 18096/TCP Host Ports: 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP State: Running Started: Wed, 10 Jul 2019 15:36:12 -0400 Ready: False Restart Count: 0 Readiness: exec [test -f /tmp/ready] delay=10s timeout=5s period=20s #success=1 #failure=1 Environment: <none> Mounts: /var/run/secrets/kubernetes.io/serviceaccount from default-token-cwbxb (ro) Conditions: Type Status Initialized True Ready False ContainersReady False PodScheduled True Volumes: default-token-cwbxb: Type: Secret (a volume populated by a Secret) SecretName: default-token-cwbxb Optional: false QoS Class: BestEffort Node-Selectors: <none> Tolerations: <none> Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 27s default-scheduler Successfully assigned myproject/cb-example-0000 to localhost Normal Pulled 27s kubelet, localhost Container image "couchbase/server:enterprise-6.0.1" already present on machine Normal Created 27s kubelet, localhost Created container Normal Started 26s kubelet, localhost Started container Warning Unhealthy 6s kubelet, localhost Readiness probe failed:
and kubectl logs output:
whoami: cannot find name for user ID 1000140000 Starting Couchbase Server -- Web UI available at http://<ip>:8091 and logs available in /opt/couchbase/var/lib/couchbase/logs
I’ve tried the guide on an OKD cluster, docker for desktop, and Minishift now; and I’ve run into the same error everytime. Which leads me to believe I’m missing something fundamental to the success of the guide. Any suggestions or help would be greatly appreciated. Thanks!