Internal error from using kubernetes operator

I am getting the following error when using the kubernetes operator:
Error from server (InternalError): error when creating “./scripts/couchbase-cluster.yaml”: Internal error occurred: failed calling webhook “couchbase-operator-admission.alfa.svc”: Post https://couchbase-operator-admission.alfa.svc:443/couchbaseclusters/mutate?timeout=10s: dial tcp 10.96.147.187:443: connect: connection refused
Error from server (InternalError): error when creating “./scripts/couchbase-cluster.yaml”: Internal error occurred: failed calling webhook “couchbase-operator-admission.alfa.svc”: Post https://couchbase-operator-admission.alfa.svc:443/couchbaseclusters/mutate?timeout=10s: dial tcp 10.96.147.187:443: connect: connection refused

I am not sure that I am setting up kubernetes correctly. I’ve embedded the following in my kubenetes run script:
kubectl create -f ${_SCRIPT_PATH}/crd.yaml
${_SCRIPT_PATH}/cbopcfg create admission
${_SCRIPT_PATH}/cbopcfg create operator
kubectl create -f ${_SCRIPT_PATH}/couchbase-cluster.yaml

where _SCRIPT_PATH is the directory where the scripts are located.

Which version are you using?

It’s also good to wait for the admission controller and operator to start up. The installation page walks you through the steps to install and check things are working: Install the Operator on Kubernetes | Couchbase Docs

I just downloaded it yesterday. Which step requires waiting, and how long do I need to wait?

It should have a version number in it, you may have downloaded an earlier release yesterday is my concern.

The docs show you what to check for, I have some scripts that just wait for the deployments to finish. The docs then show you how to do a dry run check to verify the DAC is working. I would do this first before trying to apply your full cluster.

  echo "Waiting for DAC to complete..."
  until kubectl rollout status deployment couchbase-operator-admission; do
      echo -n "."
      sleep 2
  done
  echo " done"
  echo "Waiting for operator to complete..."
  until kubectl rollout status deployment couchbase-operator; do
      echo -n "."
      sleep 2
  done
  echo " done"

Add any namespaces you are using to the commands.
Once these are done you can do the dry run: Install the Operator on Kubernetes | Couchbase Docs

Any errors have a look at the logs and/or do a kubectl describe ... to see if there is a problem with the set up - it may be a more general networking problem.

The version is 2.2.0-250

I will try the wait you suggest.