@@ -453,65 +453,65 @@ spec:
453
453
periodSeconds : 60
454
454
timeoutSeconds : 15
455
455
# Only in sidecar scraping mode
456
- # - name: omsagent-prometheus
457
- # image: "mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01312022"
458
- # imagePullPolicy: IfNotPresent
459
- # resources:
460
- # limits:
461
- # cpu: 500m
462
- # memory: 1Gi
463
- # requests:
464
- # cpu: 75m
465
- # memory: 225Mi
466
- # env:
467
- # # azure devops pipeline uses AKS_RESOURCE_ID and AKS_REGION hence ensure to uncomment these
468
- # - name: AKS_CLUSTER_NAME
469
- # value: "VALUE_AKS_CLUSTER_NAME"
470
- # - name: AKS_RESOURCE_ID
471
- # value: "VALUE_AKS_RESOURCE_ID_VALUE"
472
- # - name: AKS_REGION
473
- # value: "VALUE_AKS_RESOURCE_REGION_VALUE"
474
- # - name: AKS_NODE_RESOURCE_GROUP
475
- # value: "VALUE_AKS_NODE_RESOURCE_GROUP"
476
- # #Uncomment below two lines for ACS clusters and set the cluster names manually. Also comment out the above two lines for ACS clusters
477
- # #- name: ACS_RESOURCE_NAME
478
- # # value: "my_acs_cluster_name"
479
- # - name: CONTAINER_TYPE
480
- # value: "PrometheusSidecar"
481
- # - name: CONTROLLER_TYPE
482
- # value: "DaemonSet"
483
- # - name: NODE_IP
484
- # valueFrom:
485
- # fieldRef:
486
- # fieldPath: status.hostIP
487
- # # Update this with the user assigned msi client id for omsagent
488
- # - name: USER_ASSIGNED_IDENTITY_CLIENT_ID
489
- # value: "VALUE_USER_ASSIGNED_IDENTITY_CLIENT_ID_VALUE"
490
- # - name: USING_AAD_MSI_AUTH
491
- # value: "false"
492
- # securityContext:
493
- # privileged: true
494
- # volumeMounts:
495
- # - mountPath: /etc/kubernetes/host
496
- # name: azure-json-path
497
- # - mountPath: /etc/omsagent-secret
498
- # name: omsagent-secret
499
- # readOnly: true
500
- # - mountPath: /etc/config/settings
501
- # name: settings-vol-config
502
- # readOnly: true
503
- # - mountPath: /etc/config/osm-settings
504
- # name: osm-settings-vol-config
505
- # readOnly: true
506
- # livenessProbe:
507
- # exec:
508
- # command:
509
- # - /bin/bash
510
- # - -c
511
- # - /opt/livenessprobe.sh
512
- # initialDelaySeconds: 60
513
- # periodSeconds: 60
514
- # timeoutSeconds: 15
456
+ - name : omsagent-prometheus
457
+ image : " mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod01312022"
458
+ imagePullPolicy : IfNotPresent
459
+ resources :
460
+ limits :
461
+ cpu : 500m
462
+ memory : 1Gi
463
+ requests :
464
+ cpu : 75m
465
+ memory : 225Mi
466
+ env :
467
+ # azure devops pipeline uses AKS_RESOURCE_ID and AKS_REGION hence ensure to uncomment these
468
+ - name : AKS_CLUSTER_NAME
469
+ value : " VALUE_AKS_CLUSTER_NAME"
470
+ - name : AKS_RESOURCE_ID
471
+ value : " VALUE_AKS_RESOURCE_ID_VALUE"
472
+ - name : AKS_REGION
473
+ value : " VALUE_AKS_RESOURCE_REGION_VALUE"
474
+ - name : AKS_NODE_RESOURCE_GROUP
475
+ value : " VALUE_AKS_NODE_RESOURCE_GROUP"
476
+ # Uncomment below two lines for ACS clusters and set the cluster names manually. Also comment out the above two lines for ACS clusters
477
+ # - name: ACS_RESOURCE_NAME
478
+ # value: "my_acs_cluster_name"
479
+ - name : CONTAINER_TYPE
480
+ value : " PrometheusSidecar"
481
+ - name : CONTROLLER_TYPE
482
+ value : " DaemonSet"
483
+ - name : NODE_IP
484
+ valueFrom :
485
+ fieldRef :
486
+ fieldPath : status.hostIP
487
+ # Update this with the user assigned msi client id for omsagent
488
+ - name : USER_ASSIGNED_IDENTITY_CLIENT_ID
489
+ value : " VALUE_USER_ASSIGNED_IDENTITY_CLIENT_ID_VALUE"
490
+ - name : USING_AAD_MSI_AUTH
491
+ value : " false"
492
+ securityContext :
493
+ privileged : true
494
+ volumeMounts :
495
+ - mountPath : /etc/kubernetes/host
496
+ name : azure-json-path
497
+ - mountPath : /etc/omsagent-secret
498
+ name : omsagent-secret
499
+ readOnly : true
500
+ - mountPath : /etc/config/settings
501
+ name : settings-vol-config
502
+ readOnly : true
503
+ - mountPath : /etc/config/osm-settings
504
+ name : osm-settings-vol-config
505
+ readOnly : true
506
+ livenessProbe :
507
+ exec :
508
+ command :
509
+ - /bin/bash
510
+ - -c
511
+ - /opt/livenessprobe.sh
512
+ initialDelaySeconds : 60
513
+ periodSeconds : 60
514
+ timeoutSeconds : 15
515
515
affinity :
516
516
nodeAffinity :
517
517
requiredDuringSchedulingIgnoredDuringExecution :
@@ -634,7 +634,7 @@ spec:
634
634
value : " VALUE_USER_ASSIGNED_IDENTITY_CLIENT_ID_VALUE"
635
635
# Add the below environment variable to true only in sidecar enabled regions, else set it to false
636
636
- name : SIDECAR_SCRAPING_ENABLED
637
- value : " false "
637
+ value : " true "
638
638
- name : USING_AAD_MSI_AUTH
639
639
value : " false"
640
640
securityContext :
@@ -811,7 +811,7 @@ spec:
811
811
fieldRef :
812
812
fieldPath : status.hostIP
813
813
- name : SIDECAR_SCRAPING_ENABLED
814
- value : " false "
814
+ value : " true "
815
815
# Update this with the user assigned msi client id for omsagent
816
816
- name : USER_ASSIGNED_IDENTITY_CLIENT_ID
817
817
value : " VALUE_USER_ASSIGNED_IDENTITY_CLIENT_ID_VALUE"
0 commit comments