Hi Guys, getting this error while provisioning Couchbase on K8s with Couchbase Operator
Error from server (InternalError): error when creating “cma/couchbase/deployment/06-couchbase-cluster.yaml”: Internal error occurred: failed calling webhook “couchbase-operator-admission.couchbase-dev.svc”: Post “https://couchbase-operator-admission.couchbase-dev.svc:443/couchbaseclusters/mutate?timeout=10s”: x509: certificate signed by unknown authority (possibly because of “crypto/rsa: verification error” while trying to verify candidate authority certificate “couchbase-operator-admission CA”)
any idea? what was the issue
apiVersion: v1
kind: Secret
metadata:
name: cb-auth
namespace: couchbase-dev
type: Opaque
data:
username: QWRtaW5pc3RyYXRvcg== # Administrator
password: cGFzc3dvcmQ= # password
---
apiVersion: couchbase.com/v2
kind: CouchbaseCluster
metadata:
name: cb-cluster
namespace: couchbase-dev
spec:
image: couchbase/server:6.6.2
security:
adminSecret: cb-auth
buckets:
managed: false
xdcr:
managed: false
servers:
- name: data-service-2a
size: 1
services:
- data
volumeMounts:
default: pvc-cb-data-2a
data: pvc-cb-data-2a
pod:
spec:
nodeSelector:
kubernetes.io/hostname: cpt-tkc01-store-dev-large-nodepool-wdev-kg4df-5d598bbcbc-pwgqk
- name: data-service-2b
size: 1
services:
- data
volumeMounts:
default: pvc-cb-data-2b
data: pvc-cb-data-2b
pod:
spec:
nodeSelector:
kubernetes.io/hostname: cpt-tkc01-store-dev-large-nodepool-wdev-kg4df-5d598bbcbc-r9jc7
- name: index-query-service-2a
size: 1
services:
- index
- query
volumeMounts:
default: pvc-cb-index-query-2a
index: pvc-cb-index-query-2a
pod:
spec:
nodeSelector:
kubernetes.io/hostname: cpt-tkc01-store-dev-large-nodepool-wdev-kg4df-5d598bbcbc-pwgqk
- name: index-query-service-2b
size: 1
services:
- index
- query
volumeMounts:
default: pvc-cb-index-query-2b
index: pvc-cb-index-query-2b
pod:
spec:
nodeSelector:
kubernetes.io/hostname: cpt-tkc01-store-dev-large-nodepool-wdev-kg4df-5d598bbcbc-r9jc7
- name: others
size: 1
services:
- search
- eventing
- analytics
pod:
spec:
nodeSelector:
kubernetes.io/hostname: cpt-tkc01-store-dev-small-nodepool-wdev-bkdpb-d549445cf-4djjc
volumeMounts:
default: pvc-cb-others
volumeClaimTemplates:
- metadata:
name: pvc-cb-data-2a
spec:
accessModes:
- ReadWriteOnce
storageClassName: cpt-vshpere-with-tanzu-storage-policy
resources:
requests:
storage: 100Gi
- metadata:
name: pvc-cb-data-2b
spec:
accessModes:
- ReadWriteOnce
storageClassName: cpt-vshpere-with-tanzu-storage-policy
resources:
requests:
storage: 100Gi
- metadata:
name: pvc-cb-index-query-2a
spec:
accessModes:
- ReadWriteOnce
storageClassName: cpt-vshpere-with-tanzu-storage-policy
resources:
requests:
storage: 100Gi
- metadata:
name: pvc-cb-index-query-2b
spec:
accessModes:
- ReadWriteOnce
storageClassName: cpt-vshpere-with-tanzu-storage-policy
resources:
requests:
storage: 100Gi
- metadata:
name: pvc-cb-others
spec:
accessModes:
- ReadWriteOnce
storageClassName: cpt-vsphere-with-tanzu-storage-policy
resources:
requests:
storage: 100Gi