-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify operator integration test to use yaml instead of helm templati…
…ng. (#162) * Modify operator integration test to use yaml instead of helm templating. * Added missing file. * Updated to latest.
- Loading branch information
Showing
2 changed files
with
81 additions
and
1 deletion.
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
80 changes: 80 additions & 0 deletions
80
integration-tests/manifests/cloudwatch-agent-daemonset.yaml
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,80 @@ | ||
apiVersion: cloudwatch.aws.amazon.com/v1alpha1 | ||
kind: AmazonCloudWatchAgent | ||
metadata: | ||
name: cloudwatch-agent | ||
namespace: amazon-cloudwatch | ||
spec: | ||
mode: daemonset | ||
serviceAccount: cloudwatch-agent | ||
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:latest | ||
config: | | ||
{ | ||
"agent": { | ||
"region": "${REGION}", | ||
"debug": true | ||
}, | ||
"traces": { | ||
"traces_collected": { | ||
"app_signals": {} | ||
} | ||
}, | ||
"logs": { | ||
"metrics_collected": { | ||
"app_signals": {} | ||
} | ||
} | ||
} | ||
volumeMounts: | ||
- mountPath: /rootfs | ||
name: rootfs | ||
readOnly: true | ||
- mountPath: /var/run/docker.sock | ||
name: dockersock | ||
readOnly: true | ||
- mountPath: /run/containerd/containerd.sock | ||
name: containerdsock | ||
- mountPath: /var/lib/docker | ||
name: varlibdocker | ||
readOnly: true | ||
- mountPath: /sys | ||
name: sys | ||
readOnly: true | ||
- mountPath: /dev/disk | ||
name: devdisk | ||
readOnly: true | ||
volumes: | ||
- name: rootfs | ||
hostPath: | ||
path: / | ||
- hostPath: | ||
path: /var/run/docker.sock | ||
name: dockersock | ||
- hostPath: | ||
path: /var/lib/docker | ||
name: varlibdocker | ||
- hostPath: | ||
path: /run/containerd/containerd.sock | ||
name: containerdsock | ||
- hostPath: | ||
path: /sys | ||
name: sys | ||
- hostPath: | ||
path: /dev/disk/ | ||
name: devdisk | ||
env: | ||
- name: K8S_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: HOST_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: HOST_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: K8S_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace |