-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Datadog agent to Kube cluster (#8)
* Add datadog to cluster_manifest * Thank you james * Ansible is magic Co-authored-by: james-otten <[email protected]> --------- Co-authored-by: james-otten <[email protected]>
- Loading branch information
1 parent
428da48
commit 44dc994
Showing
11 changed files
with
125 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Deploy Environments | ||
permissions: read-all | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy_dev3: | ||
name: Deploy dev3 | ||
uses: ./.github/workflows/deploy_k8s_cluster.yaml | ||
with: | ||
environment: dev3 | ||
secrets: inherit | ||
if: github.ref == 'refs/heads/main' | ||
|
||
deploy_prod1: | ||
name: Deploy prod1 | ||
uses: ./.github/workflows/deploy_k8s_cluster.yaml | ||
with: | ||
environment: prod1 | ||
secrets: inherit | ||
if: github.ref == 'refs/heads/main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
ansible/roles/k8s-cluster-helm/files/cluster_manifest.yaml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: datadoghq.com/v2alpha1 | ||
kind: DatadogAgent | ||
metadata: | ||
name: datadog | ||
namespace: datadog | ||
spec: | ||
global: | ||
credentials: | ||
apiSecret: | ||
secretName: datadog-api-key | ||
keyName: api-key | ||
features: | ||
apm: | ||
enabled: true | ||
logCollection: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
ansible/roles/k8s-cluster-helm/templates/cluster_manifest.yaml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: longhorn-system | ||
--- | ||
apiVersion: helm.cattle.io/v1 | ||
kind: HelmChart | ||
metadata: | ||
name: longhorn | ||
namespace: longhorn-system | ||
spec: | ||
repo: https://charts.longhorn.io | ||
chart: longhorn | ||
targetNamespace: longhorn-system | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: datadog | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: datadog-api-key | ||
namespace: datadog | ||
type: Opaque | ||
data: | ||
api-key: {{ DATADOG_API_KEY }} | ||
--- | ||
apiVersion: helm.cattle.io/v1 | ||
kind: HelmChart | ||
metadata: | ||
name: datadog-operator | ||
namespace: datadog | ||
spec: | ||
repo: https://helm.datadoghq.com | ||
chart: datadog-operator | ||
targetNamespace: datadog | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters