<p>I'm trying to deploy a Kubernetes processor to a cluster on GCP GKE but the pod fails with the following error:</p>
<pre><code>secret &quot;service-account-credentials-dbt-test&quot; not found: CreateContainerConfigError
</code></pre>
<p>This is my deployment.yaml file:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: dbt-core-processor
  namespace: prod
  labels:
    app: dbt-core
spec:
  replicas: 1
  selector:
    matchLabels:
      app: dbt-core
  template:
    metadata:
      labels:
        app: dbt-core
    spec:
      containers:
      - name: dbt-core-processor
        image: IMAGE
        resources:
          requests:
            cpu: 50m
            memory: 1Gi
          limits:
            cpu: 1
            memory: 2Gi
        env:
        - name: GOOGLE_APPLICATION_CREDENTIALS
          valueFrom:
            secretKeyRef:
              name: service-account-credentials-dbt-test
              key: service-account-credentials-dbt-test
---
apiVersion: kubernetes-client.io/v1
kind: ExternalSecret
metadata:
  name: service-account-credentials-dbt-test
  namespace: prod
spec:
  backendType: gcpSecretsManager
  data:
  - key: service-account-credentials-dbt-test
    name: service-account-credentials-dbt-test
    version: latest
</code></pre>
<p>When I run <code>kubectl apply -f deployment.yml</code> I get the following error:</p>
<pre><code>deployment.apps/dbt-core-processor created
error: unable to recognize &quot;deployment.yml&quot;: no matches for kind &quot;ExternalSecret&quot; in version &quot;kubernetes-client.io/v1&quot;
</code></pre>
<p>This creates my processor but the pod fails to spin up the secrets:</p>
<pre><code>secret &quot;service-account-credentials-dbt-test&quot; not found: CreateContainerConfigError
</code></pre>
<p>How do I add the secrets from my secrets manager in GCP to this deployment?</p>

mj8701
<p><code>ExternalSecret</code> is a custom resource definition (CRD) and it looks like it is not installed on your cluster.</p>
<p>I googled <code>kubernetes-client.io/v1</code> and it looks like you may be following instructions from the old, archived project that first provided this CRD? The GitHub repo pointed me to <a href="https://github.com/external-secrets/external-secrets" rel="nofollow noreferrer">a maintained project</a> that has replaced it.</p>
<p>The good news is that the current project has what looks like comprehensive documentation, including <a href="https://external-secrets.io/v0.7.0/introduction/getting-started/" rel="nofollow noreferrer">a guide to how to install the CRDs on your cluster and the proper configuration for the External secret</a>.</p>
