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

Change OneAgent Version on Classic Fullstack Kubernetes

agylpradipta
Helper

Hello everyone,

 

If I would like to deploy Dynatrace in Kubernetes using classic fullstack (https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-k8s/installation/classic-ful...), is there any way to custom the oneAgent version?

 

I tried to change version in dynakube.yaml to 1.261.0 and result in error.

 

Thank you

6 REPLIES 6

dannemca
DynaMight Guru
DynaMight Guru

Hi @agylpradipta , you should inform the exact version to be used, including the release:

Example: {major.minor.release}, e.g., "1.261.204"

Try and let us know.

 

Site Reliability Engineer @ Kyndryl

Hi Dannemca,

 

Just tried your suggestion to change the version on dynakube.yaml as follows:

agylpradipta_0-1692831861992.png

 

But it keeps on error like this:

agylpradipta_1-1692831948446.png

 

Hi, @agylpradipta , can you please describe the dynakube so we can see the error details?

Site Reliability Engineer @ Kyndryl

Hello @dannemca , this is what I get from running:

kubectl describe DynaKube -n dynatrace

 

note: my_saas_tenant actually contain my environment id, but due to privacy reason I replace it.

 

 

Name:         easytravel-k8s
Namespace:    dynatrace
Labels:       
Annotations:  feature.dynatrace.com/automatic-kubernetes-api-monitoring: true
API Version:  dynatrace.com/v1beta1
Kind:         DynaKube
Metadata:
  Creation Timestamp:  2023-08-23T16:08:53Z
  Generation:          7
  Managed Fields:
    API Version:  dynatrace.com/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:status:
        .:
        f:activeGate:
          .:
          f:connectionInfoStatus:
            .:
            f:endpoints:
            f:lastRequest:
            f:tenantUUID:
          f:imageID:
          f:lastProbeTimestamp:
          f:source:
          f:version:
        f:codeModules:
        f:conditions:
        f:dynatraceApi:
          .:
          f:lastTokenScopeRequest:
        f:kubeSystemUUID:
        f‌‌
          .:
          f:connectionInfoStatus:
            .:
            f:communicationHosts:
            f:endpoints:
            f:lastRequest:
            f:tenantUUID:
          f:imageID:
          f:instances:
            .:
            f:kube-master-easy-travel:
              .:
              f:ipAddress:
              f:podName:
            f:kube-node-easy-travel-1:
              .:
              f:ipAddress:
              f:podName:
            f:kube-node-easy-travel-2:
              .:
              f:ipAddress:
              f:podName:
          f:lastInstanceStatusUpdate:
          f:lastProbeTimestamp:
          f:source:
        f:phase:
        f:synthetic:
        f:updatedTimestamp:
    Manager:      dynatrace-operator
    Operation:    Update
    Subresource:  status
    Time:         2023-08-23T16:42:43Z
    API Version:  dynatrace.com/v1beta1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:feature.dynatrace.com/automatic-kubernetes-api-monitoring:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:spec:
        .:
        f:activeGate:
          .:
          f:capabilities:
          f:group:
          f:image:
          f:resources:
            .:
            f:limits:
              .:
              f:cpu:
              f:memory:
            f:requests:
              .:
              f:cpu:
              f:memory:
        f:apiUrl:
        f:networkZone:
        f‌‌
          .:
          f:classicFullStack:
            .:
            f:args:
              .:
              v:"--set-host-group=easytravel-k8s":
            f:autoUpdate:
            f:env:
            f:priorityClassName:
            f:tolerations:
            f:version:
        f:skipCertCheck:
    Manager:         kubectl-client-side-apply
    Operation:       Update
    Time:            2023-08-23T22:45:07Z
  Resource Version:  5773727
  UID:               dfae8c69-e729-43a6-ba80-27bc0c107407
Spec:
  Active Gate:
    Capabilities:
      routing
      kubernetes-monitoring
      dynatrace-api
    Group:  easytravel-k8s
    Image:
    Resources:
      Limits:
        Cpu:     1000m
        Memory:  1.5Gi
      Requests:
        Cpu:     500m
        Memory:  512Mi
  API URL:       https://{environmentid}.live.dynatrace.com/api
  Network Zone:  easytravel-k8s
  One Agent:
    Classic Full Stack:
      Args:
        --set-host-group=easytravel-k8s
      Auto Update:  false
      Env:
        Name:               ONEAGENT_ENABLE_VOLUME_STORAGE
        Value:              false
      Priority Class Name:  priority-class
      Tolerations:
        Effect:     NoSchedule
        Key:        node-role.kubernetes.io/master
        Operator:   Exists
        Effect:     NoSchedule
        Key:        node-role.kubernetes.io/control-plane
        Operator:   Exists
      Version:      1.261.204
  Skip Cert Check:  true
Status:
  Active Gate:
    Connection Info Status:
      Endpoints:           https://{environmentid}.live.dynatrace.com/communication,https://{environmentid}.live.dynatrace.com/communication,https://{environmentid}.live.dynatrace.com/communication,https://{environmentid}.live.dynatrace.com/communication,https://{environmentid}.live.dynatrace.com/communication,https://{environmentid}.live.dynatrace.com:443/communication
      Last Request:        2023-08-25T23:14:08Z
      Tenant UUID:         my_saas_tenant
    Image ID:              my_saas_tenant.live.dynatrace.com/linux/activegate:latest
    Last Probe Timestamp:  2023-08-25T23:14:08Z
    Source:                tenant-registry
    Version:               1.271.124.20230804-163137
  Code Modules:
  Conditions:
    Last Transition Time:  2023-08-23T16:08:55Z
    Message:
    Reason:                TokenReady
    Status:                True
    Type:                  Tokens
  Dynatrace API:
    Last Token Scope Request:  2023-08-25T23:14:07Z
  Kube System UUID:            f051541a-6975-4083-b7c6-fe4cb7c2b108
  One Agent:
    Connection Info Status:
      Communication Hosts:
        Host:        10.101.115.7
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com
        Port:        443
        Protocol:    https://{environmentid}.live.dynatrace.com/communication;https://{environmentid}.live.dynatrace.com/communication;https://{environmentid}.live.dynatrace.com/communication;https://{environmentid}.live.dynatrace.com/communication;https://{environmentid}.live.dynatrace.com/communication;https://{environmentid}.live.dynatrace.com:443
      Last Request:  2023-08-25T23:14:08Z
      Tenant UUID:   my_saas_tenant
    Image ID:        my_saas_tenant.live.dynatrace.com/linux/oneagent:latest@sha256:c698160b505779dc9e6367d4bf57820be740283de6670c09074d87dfa2550038
    Instances:
      Kube - Master - Easy - Travel:
        Ip Address:  10.8.160.113
        Pod Name:    easytravel-k8s-oneagent-nzl4p
      kube-node-easy-travel-1:
        Ip Address:  10.8.160.114
        Pod Name:    easytravel-k8s-oneagent-b2t8m
      kube-node-easy-travel-2:
        Ip Address:               10.8.160.115
        Pod Name:                 easytravel-k8s-oneagent-drkgc
    Last Instance Status Update:  2023-08-23T22:29:39Z
    Last Probe Timestamp:         2023-08-23T22:19:35Z
    Source:                       custom-image
  Phase:                          Error
  Synthetic:
  Updated Timestamp:  2023-08-25T23:14:10Z
Events:               

 

 

Hello @dannemca ,

Already put the describe result here: https://gist.github.com/agylpradipta/03da90ac978173ad1581c9fefaebb219

 

Note: my_saas_tenant in that file actually contain my env id but I replaced it.

Can you please show us the pod status and their logs?

kubectl get all -n dynatrace

 

Site Reliability Engineer @ Kyndryl

Featured Posts