incubator/azuremonitor-containers - July 2019 chart release (#15771)

* Signed-off-by: Vishwanath Narasimhan <visnara@microsoft.com>

July agent release

* Fix readme.
Signed-off-by: Vishwanath Narasimhan <visnara@microsoft.com>
This commit is contained in:
Vishwanath
2019-07-30 10:25:36 -07:00
committed by Kubernetes Prow Robot
parent 68a3a9a1e5
commit 6e648bb757
7 changed files with 63 additions and 36 deletions
+5 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: 4.0.0-0
appVersion: 5.0.0-0
description: Helm chart for deploying Azure Monitor container monitoring agent in Kubernetes
name: azuremonitor-containers
version: 0.6.0
version: 1.0.0
keywords:
- monitoring
- azuremonitor
@@ -16,6 +16,9 @@ keywords:
- kubernetesmonitoring
- acs-engine
- aks-engine
- containerlogs
- containerhealth
- containermonitoring
home: https://docs.microsoft.com/en-us/azure/monitoring/monitoring-container-health
icon: https://raw.githubusercontent.com/Microsoft/OMS-docker/ci_feature/img/azuremonitor-containers.svg
sources:
+6 -1
View File
@@ -59,9 +59,14 @@ The following table lists the configurable parameters of the MSOMS chart and the
| `omsagent.secret.key` | Azure Log analytics workspace key | Does not have a default value, needs to be provided |
| `omsagent.domain` | Azure Log analytics cloud domain (public / govt) | opinsights.azure.com (Public cloud as default), opinsights.azure.us (Govt Cloud) |
| `omsagent.env.clusterName` | Name of your cluster | Does not have a default value, needs to be provided. If AKS-Engine or ACS-Engine K8S cluster, it is recommended to provide either one of the below as cluster name, to be able to use Azure Container monitoring User experience (aka.ms/azmon-containers) <br/> <br/> - Azure Resource group resource ID of ACS-Engine cluster <br/> - Provide a friendly name here and ensure this name is used to 'tag' the cluster master node(s) - see step-3 in pre-requisites above |
|`omsagent.env.doNotCollectKubeSystemLogs`| Disable collecting logs from containers in 'kube-system' namespace | true|
| `omsagent.rbac` | rbac enabled/disabled | true (i.e enabled) |
### Note
Parameter `omsagent.env.doNotCollectKubeSystemLogs` has been removed starting chart version 1.0.0. Refer to 'Agent data collection settings' section below to configure it using configmap.
## Agent data collection settings
Staring with chart version 1.0.0, agent data collection settings are controlled thru a config map. Refer to documentation about agent data collection settings [here](https://docs.microsoft.com/en-us/azure/azure-monitor/insights/container-insights-agent-config)
You can create a Azure Loganalytics workspace from portal.azure.com and get its ID & PRIMARY KEY from 'Advanced Settings' tab in the Ux.
@@ -4,9 +4,10 @@ kind: DaemonSet
metadata:
name: omsagent
namespace: kube-system
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
updateStrategy:
type: RollingUpdate
@@ -17,21 +18,20 @@ spec:
annotations:
agentVersion: {{ .Values.omsagent.image.tag }}
dockerProviderVersion: {{ .Values.omsagent.image.dockerProviderVersion }}
schema-versions: "v1"
spec:
{{- if .Values.omsagent.rbac }}
serviceAccountName: omsagent
{{- end }}
containers:
- name: omsagent
image: "microsoft/oms:{{ .Values.omsagent.image.tag }}"
image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:{{ .Values.omsagent.image.tag }}"
imagePullPolicy: IfNotPresent
resources:
{{ toYaml .Values.omsagent.resources.daemonset | indent 9 }}
env:
- name: ACS_RESOURCE_NAME
value: {{ .Values.omsagent.env.clusterName | quote }}
- name: DISABLE_KUBE_SYSTEM_LOG_COLLECTION
value: {{ .Values.omsagent.env.doNotCollectKubeSystemLogs | quote }}
- name: CONTROLLER_TYPE
value: "DaemonSet"
- name: NODE_IP
@@ -60,12 +60,15 @@ spec:
- mountPath: /etc/omsagent-secret
name: omsagent-secret
readOnly: true
- mountPath: /etc/config/settings
name: settings-vol-config
readOnly: true
livenessProbe:
exec:
command:
- /bin/bash
- -c
- (ps -ef | grep omsagent | grep -v "grep") && (ps -ef | grep td-agent-bit | grep -v "grep")
- "/opt/livenessprobe.sh"
initialDelaySeconds: 60
periodSeconds: 60
nodeSelector:
@@ -98,4 +101,8 @@ spec:
- name: omsagent-secret
secret:
secretName: omsagent-secret
- name: settings-vol-config
configMap:
name: container-azm-ms-agentconfig
optional: true
{{- end }}
@@ -4,9 +4,10 @@ kind: Deployment
metadata:
name: omsagent-rs
namespace: kube-system
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
replicas: 1
selector:
@@ -21,21 +22,20 @@ spec:
annotations:
agentVersion: {{ .Values.omsagent.image.tag }}
dockerProviderVersion: {{ .Values.omsagent.image.dockerProviderVersion }}
schema-versions: "v1"
spec:
{{- if .Values.omsagent.rbac }}
serviceAccountName: omsagent
{{- end }}
containers:
- name: omsagent
image: "microsoft/oms:{{ .Values.omsagent.image.tag }}"
image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:{{ .Values.omsagent.image.tag }}"
imagePullPolicy: IfNotPresent
resources:
{{ toYaml .Values.omsagent.resources.deployment | indent 9 }}
env:
- name: ACS_RESOURCE_NAME
value: {{ .Values.omsagent.env.clusterName | quote }}
- name: DISABLE_KUBE_SYSTEM_LOG_COLLECTION
value: {{ .Values.omsagent.env.doNotCollectKubeSystemLogs | quote }}
- name: CONTROLLER_TYPE
value: "ReplicaSet"
- name: NODE_IP
@@ -63,12 +63,15 @@ spec:
readOnly: true
- mountPath : /etc/config
name: omsagent-rs-config
- mountPath: /etc/config/settings
name: settings-vol-config
readOnly: true
livenessProbe:
exec:
command:
- /bin/bash
- -c
- ps -ef | grep omsagent | grep -v "grep"
- "/opt/livenessprobe.sh"
initialDelaySeconds: 60
periodSeconds: 60
nodeSelector:
@@ -96,4 +99,8 @@ spec:
- name: omsagent-rs-config
configMap:
name: omsagent-rs-config
- name: settings-vol-config
configMap:
name: container-azm-ms-agentconfig
optional: true
{{- end }}
@@ -4,29 +4,34 @@ kind: ServiceAccount
metadata:
name: omsagent
namespace: kube-system
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: omsagent-reader
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
rules:
- apiGroups: [""]
resources: ["pods", "events", "nodes", "namespaces", "services"]
verbs: ["list"]
verbs: ["list", "get", "watch"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: omsagentclusterrolebinding
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
subjects:
- kind: ServiceAccount
name: omsagent
@@ -223,7 +223,8 @@ data:
metadata:
name: omsagent-rs-config
namespace: kube-system
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
labels:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- end }}
@@ -6,9 +6,9 @@
## ref: https://github.com/Microsoft/OMS-docker/tree/ci_feature_prod
omsagent:
image:
tag: "ciprod04232019"
tag: "ciprod07092019"
pullPolicy: IfNotPresent
dockerProviderVersion: "4.0.0-0"
dockerProviderVersion: "6.0.0-0"
agentVersion: "1.10.0.1"
## To get your workspace id and key do the following
## You can create a Azure Loganalytics workspace from portal.azure.com and get its ID & PRIMARY KEY from 'Advanced Settings' tab in the Ux.
@@ -19,7 +19,6 @@ omsagent:
domain: opinsights.azure.com
env:
clusterName: <my_Acs-engine_k8s_cluster_RG_ResourceID>
doNotCollectKubeSystemLogs: "true"
rbac: true
## Configure resource requests and limits
@@ -28,15 +27,15 @@ omsagent:
resources:
daemonset:
requests:
cpu: 50m
cpu: 75m
memory: 225Mi
limits:
cpu: 150m
memory: 300Mi
memory: 600Mi
deployment:
requests:
cpu: 50m
memory: 100Mi
memory: 175Mi
limits:
cpu: 150m
memory: 500Mi