# Problem with my Elasticsearch

**URL:** <https://discuss.elastic.co/t/problem-with-my-elasticsearch/306994>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 13, 2022, 7:25am UTC](https://discuss.elastic.co/t/problem-with-my-elasticsearch/306994 "2022-06-13T07:25:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frida](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Frida](https://discuss.elastic.co/u/Frida)\
**Post date:** [June 13, 2022, 7:25am UTC](https://discuss.elastic.co/t/problem-with-my-elasticsearch/306994/1 "2022-06-13T07:25:33Z")

</div>

Hi!  
If possible- I have a question:  
This is my cluster:

```auto
# Source: eck-operator/templates/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: elastic-operator
  namespace: button8
  labels:
    control-plane: elastic-operator
    app.kubernetes.io/version: "1.6.0"
spec:
  selector:
    matchLabels:
      control-plane: elastic-operator
  serviceName: elastic-operator
  replicas: 1
  template:
    metadata:
      annotations:
        # Rename the fields "error" to "error.message" and "source" to "event.source"
        # This is to avoid a conflict with the ECS "error" and "source" documents.
        "co.elastic.logs/raw": "[{\"type\":\"container\",\"json.keys_under_root\":true,\"paths\":[\"/var/log/containers/*${data.kubernetes.container.id}.log\"],\"processors\":[{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"error\",\"to\":\"_error\"}]}},{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"_error\",\"to\":\"error.message\"}]}},{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"source\",\"to\":\"_source\"}]}},{\"convert\":{\"mode\":\"rename\",\"ignore_missing\":true,\"fields\":[{\"from\":\"_source\",\"to\":\"event.source\"}]}}]}]"
        "checksum/config": 3c2010a9355a35f49003014b553c3315c92569d20875c18788dd85b73a97c6c7
      labels:
        control-plane: elastic-operator
    spec:
      terminationGracePeriodSeconds: 10
      serviceAccountName: elastic-operator
      securityContext:
        runAsNonRoot: true
      containers:
      - image: "docker.elastic.co/eck/eck-operator:1.6.0"
        imagePullPolicy: IfNotPresent
        name: manager
        args:
        - "manager"
        - "--config=/conf/eck.yaml"
        - "--distribution-channel=all-in-one"
        env:
        - name: OPERATOR_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        - name: POD_IP
          valueFrom:
            fieldRef:
              fieldPath: status.podIP
        - name: WEBHOOK_SECRET
          value: elastic-webhook-server-cert
        resources:
          limits:
            cpu: 1
            memory: 512Mi
          requests:
            cpu: 100m
            memory: 150Mi
        ports:
        - containerPort: 9443
          name: https-webhook
          protocol: TCP
        volumeMounts:
        - mountPath: "/conf"
          name: conf
          readOnly: true
        - mountPath: /tmp/k8s-webhook-server/serving-certs
          name: cert
          readOnly: true
      volumes:
      - name: conf
        configMap:
          name: elastic-operator
      - name: cert
        secret:
          defaultMode: 420
          secretName: elastic-webhook-server-cert

```

and It ran well:

> kubectl get all -n buton8  
> apiVersion: [elasticsearch.k8s.elastic.co/v1](http://elasticsearch.k8s.elastic.co/v1)  
> W0613 06:35:18.986022 1156 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.  
> To learn more, consult [https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke](https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke)  
> NAME READY STATUS RESTARTS AGE  
> pod/elastic-operator-0 1/1 Running 0 10s
> 
> NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE  
> service/elastic-webhook-server ClusterIP 10.8.11.13 443/TCP 11s
> 
> NAME READY AGE  
> statefulset.apps/elastic-operator 1/1 10s

I have now created Elasticsearch:

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
  name: quickstart
spec:
  version: 7.6.2
  nodeSets:
  - name: default
    count: 1
    config:
      node.master: true
      node.data: true
      node.ingest: true
      node.store.allow_mmap: false

```

and I got this error:

> $kubectl apply -f ./cdEls.yaml  
> W0613 07:22:42.188625 1324 gcp.go:120] WARNING: the gcp auth plugin is deprecated in v1.22+, unavailable in v1.25+; use gcloud instead.  
> To learn more, consult [https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke](https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke)  
> error: resource mapping not found for name: "quickstart" namespace: "" from "./cdEls.yaml": no matches for kind "Elasticsearch" in version "[elasticsearch.k8s.elastic.co/v1](http://elasticsearch.k8s.elastic.co/v1)"  
> ensure CRDs are installed first

If anyone knows what the solution is - it will help me a lot,  
thanks  
Frida

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 11, 2022, 7:25am UTC](https://discuss.elastic.co/t/problem-with-my-elasticsearch/306994/2 "2022-07-11T07:25:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
