23 Oct 2023 03:00 PM
Hi All,
I followed the steps in doc to deploy k8s monitoring but getting error as "resource mapping not found for name: "dynakube" namespace: "dynatrace" from ".\\cloudNativeFullStack-no-version.yaml": no matches for kind "DynaKube" in version "dynatrace.com/v1beta1"
ensure CRDs are installed first"
> kubectl get pods -n dynatrace
NAME READY STATUS RESTARTS AGE
dynatrace-oneagent-csi-driver-4smxj 4/4 Running 0 19m
dynatrace-operator-6785f8577d-9cxrc 1/1 Running 0 19m
dynatrace-webhook-c847c8d8f-2drzz 1/1 Running 0 19m
dynatrace-webhook-c847c8d8f-z5rl4 1/1 Running 0 19m
>kubectl apply -f .\cloudNativeFullStack-no-version.yaml
error: resource mapping not found for name: "dynakube" namespace: "dynatrace" from ".\\cloudNativeFullStack-no-version.yaml": no matches for kind "DynaKube" in version "dynatrace.com/v1beta1"
ensure CRDs are installed first
23 Oct 2023 03:03 PM
PFA attached custom dynakube file I used, please help me to fix this issue.
I got this same error for all approaches like classicFullstack(UI and non-UI), cloudNativeFullstack.
23 Oct 2023 04:22 PM
Hello @goudareddy26 I don't saw in your output for kubectl get pods -n dynatrace the Actigate instance that should be running.
Can you please share the output of the
kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/download/v0.13.0/kubernetes.yaml
kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/download/v0.13.0/kubernetes-csi.yaml
kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/download/v0.13.0/kubernetes.yaml
kubectl apply -f https://github.com/Dynatrace/dynatrace-operator/releases/download/v0.13.0/kubernetes-csi.yaml
kubectl -n dynatrace wait pod --for=condition=ready --selector=app.kubernetes.io/name=dynatrace-operator,app.kubernetes.io/component=webhook --timeout=300s
24 Oct 2023 05:45 AM
Hi @DanielS ,
I ran above three commands you mentioned, they are successful, after running first two commnds(kubernetes.yaml and kubernetes-csi.yaml) Activegate pod will not be deployed only operator, webhook and oneagent-csi-driver pods will be deployed. AG and oneAgent pods will be deployed after we deploy dynakube(cloudNativeFullstack.yaml), Iam getting error while deploying cloudNativeFullstack.yaml itself so its not deployed still.
> kubectl get pods -n dynatrace
NAME READY STATUS RESTARTS AGE
dynatrace-oneagent-csi-driver-4smxj 4/4 Running 0 19m
dynatrace-operator-6785f8577d-9cxrc 1/1 Running 0 19m
dynatrace-webhook-c847c8d8f-2drzz 1/1 Running 0 19m
dynatrace-webhook-c847c8d8f-z5rl4 1/1 Running 0 19m
Regards,
Gogi
24 Oct 2023 06:37 AM
Hi,
After system restart again I tried deploying dynakube( cloudNativeFullstack.yaml) and it worked.
But now one-agent pod is in error "CrashLoopBackOff", Iam working on it now.
> kubectl get pods -n dynatrace
NAME READY STATUS RESTARTS AGE
dynakube-activegate-0 1/1 Running 0 43m
dynakube-oneagent-wdmdr 0/1 CrashLoopBackOff 6 (4m12s ago) 10m
dynatrace-oneagent-csi-driver-4smxj 4/4 Running 4 (45m ago) 15h
dynatrace-operator-6785f8577d-9cxrc 1/1 Running 1 (45m ago) 15h
dynatrace-webhook-c847c8d8f-2drzz 1/1 Running 1 (45m ago) 15h
dynatrace-webhook-c847c8d8f-z5rl4 1/1 Running 1 (45m ago) 15h
Regards,
Gogi
24 Oct 2023 06:40 AM
Hi,
I see this error in pod logs "Error: Initialization procedure failed" and its using agent version "app.kubernetes.io/version=1.275.146.20231002-095820" , please let me know if anyone faced issue with this version? whether I need to use some previous version?
Regards,
Gogi
05 Jun 2025 02:34 PM
Hey @Gogi , did you manage to find the solution to your problem? If so, it would be amazing if you've shared it with the rest of the Community! If not, let me know, and I'll look for some further assistance 😊