-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate agent daemonsets on windows for container insights an…
…d application signals (#90)
- Loading branch information
Showing
5 changed files
with
130 additions
and
55 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
...bservability/templates/windows/cloudwatch-agent-windows-container-insights-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,51 @@ | ||
{{- if .Values.agent.enabled }} | ||
{{- $clusterName := .Values.clusterName | required ".Values.clusterName is required." -}} | ||
{{- $region := .Values.region | required ".Values.region is required." -}} | ||
{{- $config := `{"logs":{"metrics_collected":{"kubernetes":{"enhanced_container_insights":true}}}}` | fromJson -}} | ||
|
||
apiVersion: cloudwatch.aws.amazon.com/v1alpha1 | ||
kind: AmazonCloudWatchAgent | ||
metadata: | ||
name: {{ template "cloudwatch-agent.name" . }}-windows-container-insights | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
podSecurityContext: | ||
windowsOptions: | ||
hostProcess: true | ||
runAsUserName: "NT AUTHORITY\\System" | ||
hostNetwork: true | ||
image: {{ template "cloudwatch-agent.image" . }} | ||
workingDir: "%CONTAINER_SANDBOX_MOUNT_POINT%\\Program Files\\Amazon\\AmazonCloudWatchAgent" | ||
mode: daemonset | ||
serviceAccount: {{ template "cloudwatch-agent.serviceAccountName" . }} | ||
nodeSelector: | ||
kubernetes.io/os: windows | ||
config: {{ include "cloudwatch-agent.modify-config" (merge (dict "Config" $config) .) }} | ||
{{- with .Values.agent.resources }} | ||
resources: {{- toYaml . | nindent 4}} | ||
{{- end }} | ||
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 | ||
- name: RUN_IN_CONTAINER | ||
value: "True" | ||
- name: RUN_AS_HOST_PROCESS_CONTAINER | ||
value: "True" | ||
{{- with .Values.tolerations }} | ||
tolerations: {{- toYaml . | nindent 2}} | ||
{{- end }} | ||
{{- end }} |
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