Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2275

error code when creating a cluster with minikube

    XMLWordPrintable

Details

    • 1

    Description

      error code: error parsing couchbase-cluster.yaml: error converting YAML to JSON: yaml: line 17: mapping values are not allowed in this context. 

       

       

      $ minikube version

      minikube version: v1.21.0

      commit: 76d74191d82c47883dc7e1319ef7cebd3e00ee11

      $ k version

      Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.5", GitCommit:"6b1d87acf3c8253c123756b9e61dac642678305f", GitTreeState:"clean", BuildDate:"2021-03-18T01:10:43Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"darwin/amd64"}

      Server Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.7", GitCommit:"132a687512d7fb058d0f5890f07d4121b3f0a2e2", GitTreeState:"clean", BuildDate:"2021-05-12T12:32:49Z", GoVersion:"go1.15.12", Compiler:"gc", Platform:"linux/amd64"}

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          simon.murray Simon Murray added a comment -

          "works on my machine"

          [Wed 23 Jun 19:12:28 BST 2021] simon@symphony ~/src/github.com/couchbase/couchbase-operator kind create cluster
          Creating cluster "kind" ...
           ✓ Ensuring node image (kindest/node:v1.21.1) 🖼
           ✓ Preparing nodes 📦  
           ✓ Writing configuration 📜 
           ✓ Starting control-plane 🕹️ 
           ✓ Installing CNI 🔌 
           ✓ Installing StorageClass 💾 
          Set kubectl context to "kind-kind"
          You can now use your cluster with:kubectl cluster-info --context kind-kindThanks for using kind! 😊
          [Thu 24 Jun 09:19:41 BST 2021] simon@symphony ~/src/github.com/couchbase/couchbase-operator kubectl apply -f example/crd.yaml 
          customresourcedefinition.apiextensions.k8s.io/couchbaseautoscalers.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasebackuprestores.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasebackups.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasebuckets.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaseclusters.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaseephemeralbuckets.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasegroups.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasememcachedbuckets.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbasereplications.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaserolebindings.couchbase.com created
          customresourcedefinition.apiextensions.k8s.io/couchbaseusers.couchbase.com created
          [Thu 24 Jun 09:19:57 BST 2021] simon@symphony ~/src/github.com/couchbase/couchbase-operator kubectl create -f test.yaml 
          secret/cb-example-auth created
          couchbasebucket.couchbase.com/default created
          couchbasecluster.couchbase.com/cb-example created

          will need a deeper investigation...

          simon.murray Simon Murray added a comment - "works on my machine" [Wed 23 Jun 19:12:28 BST 2021] simon@symphony ~/src/github.com/couchbase/couchbase-operator kind create cluster Creating cluster "kind" ... ✓ Ensuring node image (kindest/node:v1.21.1) 🖼 ✓ Preparing nodes 📦 ✓ Writing configuration 📜 ✓ Starting control-plane 🕹️ ✓ Installing CNI 🔌 ✓ Installing StorageClass 💾 Set kubectl context to "kind-kind" You can now use your cluster with:kubectl cluster-info --context kind-kindThanks for using kind! 😊 [Thu 24 Jun 09:19:41 BST 2021] simon@symphony ~/src/github.com/couchbase/couchbase-operator kubectl apply -f example/crd.yaml customresourcedefinition.apiextensions.k8s.io/couchbaseautoscalers.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasebackuprestores.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasebackups.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasebuckets.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaseclusters.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaseephemeralbuckets.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasegroups.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasememcachedbuckets.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbasereplications.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaserolebindings.couchbase.com created customresourcedefinition.apiextensions.k8s.io/couchbaseusers.couchbase.com created [Thu 24 Jun 09:19:57 BST 2021] simon@symphony ~/src/github.com/couchbase/couchbase-operator kubectl create -f test.yaml secret/cb-example-auth created couchbasebucket.couchbase.com/default created couchbasecluster.couchbase.com/cb-example created will need a deeper investigation...

          This looks to be a YAML formatting issue, I normally see those errors when I've messed up indentation and/or array types.

          I had a quick look at the YAML and it does look custom anyway, e.g. it's using 6.2.2 instead of 6.6.2 - is that a typo?

          Double check indentation and the delights of magically replacing hypens with the long form version: - ==> –

          If still seeing the issue then let me know the order of things you're doing as well: is this a fresh cluster you're then adding the CRDs to then applying the YAML?

          Remove the alias for kubectl as well just to make sure it's not doing anything funky.

          patrick.stephens Patrick Stephens (Inactive) added a comment - This looks to be a YAML formatting issue, I normally see those errors when I've messed up indentation and/or array types. I had a quick look at the YAML and it does look custom anyway, e.g. it's using 6.2.2 instead of 6.6.2 - is that a typo? Double check indentation and the delights of magically replacing hypens with the long form version: - ==> – If still seeing the issue then let me know the order of things you're doing as well: is this a fresh cluster you're then adding the CRDs to then applying the YAML? Remove the alias for kubectl as well just to make sure it's not doing anything funky.

          People

            roo.thorp Roo Thorp
            ron.graham Ron Graham
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty