Skip to content

Commit

Permalink
Update dynakube samples (#4160)
Browse files Browse the repository at this point in the history
Co-authored-by: StefanHauth <[email protected]>
Co-authored-by: Stefan Hauth <[email protected]>
  • Loading branch information
3 people authored Dec 6, 2024
1 parent 655da81 commit 2d2f1d9
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 0 deletions.
18 changes: 18 additions & 0 deletions assets/samples/dynakube/v1beta3/applicationMonitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

oneAgent:
applicationMonitoring: {}

activeGate:
capabilities:
- routing
- kubernetes-monitoring
- dynatrace-api
18 changes: 18 additions & 0 deletions assets/samples/dynakube/v1beta3/classicFullStack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

oneAgent:
classicFullStack: {}

activeGate:
capabilities:
- routing
- kubernetes-monitoring
- dynatrace-api
18 changes: 18 additions & 0 deletions assets/samples/dynakube/v1beta3/cloudNativeFullStack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

oneAgent:
cloudNativeFullStack: {}

activeGate:
capabilities:
- routing
- kubernetes-monitoring
- dynatrace-api
18 changes: 18 additions & 0 deletions assets/samples/dynakube/v1beta3/hostMonitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

oneAgent:
hostMonitoring: {}

activeGate:
capabilities:
- routing
- kubernetes-monitoring
- dynatrace-api
15 changes: 15 additions & 0 deletions assets/samples/dynakube/v1beta3/kubernetesObservability.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
# annotations:
# feature.dynatrace.com/k8s-app-enabled: "true"
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

activeGate:
capabilities:
- kubernetes-monitoring
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

kspm: {}

activeGate:
tlsSecretName: <ag-tls-name>

capabilities:
- kubernetes-monitoring

customProperties:
value: |
[kubernetes_monitoring]
kubernetes_configuration_dataset_pipeline_enabled = true
kubernetes_configuration_dataset_pipeline_include_node_config = true
templates: {}
# Required in combination with kspm enabled.
# As there is no image available in public registry yet, this field is required if you want to run kspm.
#
# kspmNodeConfigurationCollector:
# imageRef:
# repository: <image-repo>
# tag: <image-tag>
24 changes: 24 additions & 0 deletions assets/samples/dynakube/v1beta3/logMonitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

# The `logMonitoring` section is used to configure log collection via the OneAgent Log module.
# it can be used with any other DynaKube mode, e.g. applicationMonitoring.
# Available with Dynatrace version 1.306+ and OneAgent 1.305+

logMonitoring: {}

templates: {}
# Required in combination with logMonitoring enabled.
# As there is no image available in public registry yet, this field is required if you want to run logMonitoring.
#
# logMonitoring:
# imageRef:
# repository: <image-repo>
# tag: <image-tag>
49 changes: 49 additions & 0 deletions assets/samples/dynakube/v1beta3/multipleDynakubes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube-application-monitoring
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

oneAgent:
applicationMonitoring:
namespaceSelector:
matchLabels:
monitor: applicationMonitoring

activeGate:
capabilities:
- kubernetes-monitoring
---

apiVersion: dynatrace.com/v1beta3
kind: DynaKube
metadata:
name: dynakube-cloud-native
namespace: dynatrace
spec:
apiUrl: https://ENVIRONMENTID.live.dynatrace.com/api

# Link to api reference for further information: https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/reference/dynakube-parameters

oneAgent:
cloudNativeFullStack:
namespaceSelector:
matchLabels:
monitor: cloudNativeFullStack

tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Exists

activeGate:
capabilities:
- routing
- dynatrace-api

0 comments on commit 2d2f1d9

Please sign in to comment.