<p>How do you change the cockroachdb YAML configuration from Rancher catalog that it will just</p>
<ul>
<li>Use local disk (testing on a local computer)</li>
<li>Just use 1GB of disk space (should be enough for testing)</li>
</ul>
<p>Here's the complete YAML</p>
<pre class="lang-yaml prettyprint-override"><code>clusterDomain: cluster.local
conf:
  attrs: []
  cache: 25%
  cluster-name: ''
  disable-cluster-name-verification: false
  http-port: 8080
  join: []
  locality: ''
  logtostderr: INFO
  max-disk-temp-storage: 0
  max-offset: 500ms
  max-sql-memory: 25%
  port: 26257
  single-node: false
  sql-audit-dir: ''
image:
  credentials: {}
  pullPolicy: IfNotPresent
  repository: cockroachdb/cockroach
  tag: v20.1.3
ingress:
  annotations: {}
  enabled: false
  hosts: []
  labels: {}
  paths:
    - /
  tls: []
init:
  affinity: {}
  annotations: {}
  labels:
    app.kubernetes.io/component: init
  nodeSelector: {}
  resources: {}
  tolerations: []
labels: {}
networkPolicy:
  enabled: false
  ingress:
    grpc: []
    http: []
service:
  discovery:
    annotations: {}
    labels:
      app.kubernetes.io/component: cockroachdb
  ports:
    grpc:
      external:
        name: grpc
        port: 26257
      internal:
        name: grpc-internal
        port: 26257
    http:
      name: http
      port: 8080
  public:
    annotations: {}
    labels:
      app.kubernetes.io/component: cockroachdb
    type: ClusterIP
statefulset:
  annotations: {}
  args: []
  budget:
    maxUnavailable: 1
  env: []
  labels:
    app.kubernetes.io/component: cockroachdb
  nodeAffinity: {}
  nodeSelector: {}
  podAffinity: {}
  podAntiAffinity:
    type: soft
    weight: 100
  podManagementPolicy: Parallel
  priorityClassName: ''
  replicas: 3
  resources: {}
  secretMounts: []
  tolerations: []
  updateStrategy:
    type: RollingUpdate
storage:
  hostPath: ''
  persistentVolume:
    annotations: {}
    enabled: true
    labels: {}
    size: 100Gi
    storageClass: ''
tls:
  certs:
    clientRootSecret: cockroachdb-root
    nodeSecret: cockroachdb-node
    provided: false
    tlsSecret: false
  enabled: false
  init:
    image:
      credentials: {}
      pullPolicy: IfNotPresent
      repository: cockroachdb/cockroach-k8s-request-cert
      tag: '0.4'
  serviceAccount:
    create: true
    name: ''
Storage: 100Gi
</code></pre>

quarks
<h1 id="storage-size-urbs">Storage Size</h1>
<p>It looks like <code>Storage</code> and <code>store.persistentVolume.size</code> can both be set to <code>1Gi</code> if you are looking for one gigabyte of storage.</p>
<h1 id="local-storage-cz1v">Local Storage</h1>
<p>Then, I would check if you have a storageClass by running <code>kubectl get storageClass</code>. Many times, cluters come with the <a href="https://github.com/rancher/local-path-provisioner" rel="nofollow noreferrer">local-path-provisioner</a> storageClass. If you have that, I would try setting <code>store.persistentVolume.storageClass</code> to the name of the local path proversion storageClass you have installed on your system. If you don't have that or an alternative, I would consider installing it.</p>
<h1 id="more-info-ngkv">More Info</h1>
<p>I'm not certain, but it's possible that it is using <a href="https://github.com/cockroachdb/helm-charts/tree/master/cockroachdb" rel="nofollow noreferrer">this helm chart</a> to install the database. This section of the chart deals with the volume claim managment, so I would look here if you need to do more troubleshooting: <a href="https://github.com/cockroachdb/helm-charts/blob/master/cockroachdb/templates/statefulset.yaml#L376" rel="nofollow noreferrer">https://github.com/cockroachdb/helm-charts/blob/master/cockroachdb/templates/statefulset.yaml#L376</a></p>
