cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Kubernetes monitoring - deployment error

goudareddy26
Newcomer

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"

https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-k8s/installation/cloud-nativ...

 

> 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

 

5 REPLIES 5

goudareddy26
Newcomer

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. 

DanielS
DynaMight Guru
DynaMight Guru

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

The true delight is in the finding out rather than in the knowing.

Gogi
Helper

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

Gogi
Helper

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

Gogi
Helper

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

Featured Posts