forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[incubator/azuremonitor-containers] updates related to agent ciprod05…
…262020 and win-ciprod05262020-2 release (helm#22718) * chart updates for may release Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * update to use affinity to consistent with aks yaml Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * fix issue with - Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * expose parameter to set custommount path for container log Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * fix pr feedback Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * update to use mcr image for china cloud Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * minor text updates Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * fix lineendings in files Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com> * fix new line issue Signed-off-by: Ganga Mahesh Siddem <gangams@microsoft.com>
- Loading branch information
Showing
10 changed files
with
214 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ spec: | |
scope: Namespaced | ||
names: | ||
plural: healthstates | ||
kind: HealthState | ||
kind: HealthState |
93 changes: 93 additions & 0 deletions
93
incubator/azuremonitor-containers/templates/omsagent-daemonset-windows.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,93 @@ | ||
{{- if and (ne .Values.omsagent.secret.key "<your_workspace_key>") (ne .Values.omsagent.secret.wsid "<your_workspace_id>") (or (ne .Values.omsagent.env.clusterName "<your_cluster_name>") (ne .Values.omsagent.env.clusterId "<your_cluster_id>"))}} | ||
apiVersion: apps/v1 | ||
kind: DaemonSet | ||
metadata: | ||
name: omsagent-win | ||
namespace: kube-system | ||
labels: | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
component: oms-agent | ||
tier: node | ||
spec: | ||
updateStrategy: | ||
type: RollingUpdate | ||
selector: | ||
matchLabels: | ||
dsName: "omsagent-ds" | ||
template: | ||
metadata: | ||
labels: | ||
dsName: "omsagent-ds" | ||
annotations: | ||
agentVersion: {{ .Values.omsagent.image.tagWindows }} | ||
dockerProviderVersion: {{ .Values.omsagent.image.dockerProviderVersion }} | ||
schema-versions: "v1" | ||
spec: | ||
{{- if .Values.omsagent.rbac }} | ||
serviceAccountName: omsagent | ||
{{- end }} | ||
containers: | ||
- name: omsagent-win | ||
{{- if eq (.Values.omsagent.domain | lower) "opinsights.azure.cn" }} | ||
image: "mcr.azk8s.cn/azuremonitor/containerinsights/ciprod:{{ .Values.omsagent.image.tagWindows }}" | ||
{{- else }} | ||
image: {{ printf "%s:%s" .Values.omsagent.image.repo .Values.omsagent.image.tagWindows }} | ||
{{- end }} | ||
imagePullPolicy: IfNotPresent | ||
resources: | ||
{{ toYaml .Values.omsagent.resources.daemonset | indent 9 }} | ||
env: | ||
{{- if ne .Values.omsagent.env.clusterId "<your_cluster_id>" }} | ||
- name: AKS_RESOURCE_ID | ||
value: {{ .Values.omsagent.env.clusterId | quote }} | ||
{{- if ne .Values.omsagent.env.clusterRegion "<your_cluster_region>" }} | ||
- name: AKS_REGION | ||
value: {{ .Values.omsagent.env.clusterRegion | quote }} | ||
{{- end }} | ||
{{- else }} | ||
- name: ACS_RESOURCE_NAME | ||
value: {{ .Values.omsagent.env.clusterName | quote }} | ||
{{- end }} | ||
- name: CONTROLLER_TYPE | ||
value: "DaemonSet" | ||
- name: HOSTNAME | ||
volumeMounts: | ||
- mountPath: C:\ProgramData\docker\containers | ||
name: docker-windows-containers | ||
readOnly: true | ||
- mountPath: C:\var #Read + Write access on this for position file | ||
name: docker-windows-kuberenetes-container-logs | ||
- mountPath: C:\etc\config\settings | ||
name: settings-vol-config | ||
readOnly: true | ||
- mountPath: C:\etc\omsagent-secret | ||
name: omsagent-secret | ||
readOnly: true | ||
livenessProbe: | ||
exec: | ||
command: | ||
- cmd | ||
- /c | ||
- C:\opt\omsagentwindows\scripts\cmd\livenessProbe.cmd | ||
periodSeconds: 60 | ||
initialDelaySeconds: 180 | ||
{{- with .Values.omsagent.daemonsetwindows.affinity }} | ||
affinity: {{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
volumes: | ||
- name: docker-windows-kuberenetes-container-logs | ||
hostPath: | ||
path: C:\var | ||
- name: docker-windows-containers | ||
hostPath: | ||
path: C:\ProgramData\docker\containers | ||
- name: settings-vol-config | ||
configMap: | ||
name: container-azm-ms-agentconfig | ||
optional: true | ||
- name: omsagent-secret | ||
secret: | ||
secretName: omsagent-secret | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,4 +47,3 @@ roleRef: | |
name: omsagent-reader | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- 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
Oops, something went wrong.