Merge pull request #53319 from kairen/update-monitoring
Automatic merge from submit-queue (batch tested with PRs 53247, 53319). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. [cluster-monitoring addon] Update monitoring-influxdb-grafana to latest version **What this PR does / why we need it**: In cluster-monitoring addon, the `monitoring-influxdb-grafana` part of the content is too old, so I modified some file to update, this has been tested on v1.7.7, v1.8.0. **Special notes for your reviewer**: **Release note**: ```release-note Update Influxdb image to latest version. Update Grafana image to latest version. Change influxdb-grafana-controller resource to Deployment. ```
This commit is contained in:
		@@ -13,7 +13,7 @@ spec:
 | 
				
			|||||||
  # type: LoadBalancer
 | 
					  # type: LoadBalancer
 | 
				
			||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
    - port: 80
 | 
					    - port: 80
 | 
				
			||||||
      targetPort: 3000
 | 
					      protocol: TCP
 | 
				
			||||||
 | 
					      targetPort: ui
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    k8s-app: influxGrafana
 | 
					    k8s-app: influxGrafana
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
apiVersion: v1
 | 
					kind: Deployment
 | 
				
			||||||
kind: ReplicationController
 | 
					apiVersion: extensions/v1beta1
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: monitoring-influxdb-grafana-v4
 | 
					  name: monitoring-influxdb-grafana-v4
 | 
				
			||||||
  namespace: kube-system
 | 
					  namespace: kube-system
 | 
				
			||||||
@@ -11,20 +11,26 @@ metadata:
 | 
				
			|||||||
spec:
 | 
					spec:
 | 
				
			||||||
  replicas: 1
 | 
					  replicas: 1
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    k8s-app: influxGrafana
 | 
					    matchLabels:
 | 
				
			||||||
    version: v4
 | 
					      k8s-app: influxGrafana
 | 
				
			||||||
 | 
					      version: v4
 | 
				
			||||||
  template:
 | 
					  template:
 | 
				
			||||||
    metadata:
 | 
					    metadata:
 | 
				
			||||||
      labels:
 | 
					      labels:
 | 
				
			||||||
        k8s-app: influxGrafana
 | 
					        k8s-app: influxGrafana
 | 
				
			||||||
        version: v4
 | 
					        version: v4
 | 
				
			||||||
        kubernetes.io/cluster-service: "true"
 | 
					      annotations:
 | 
				
			||||||
 | 
					        scheduler.alpha.kubernetes.io/critical-pod: ''
 | 
				
			||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
 | 
					      tolerations:
 | 
				
			||||||
 | 
					      - key: node-role.kubernetes.io/master
 | 
				
			||||||
 | 
					        effect: NoSchedule
 | 
				
			||||||
 | 
					      - key: "CriticalAddonsOnly"
 | 
				
			||||||
 | 
					        operator: "Exists"
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
        - image: gcr.io/google_containers/heapster-influxdb-amd64:v1.1.1
 | 
					        - name: influxdb
 | 
				
			||||||
          name: influxdb
 | 
					          image: gcr.io/google_containers/heapster-influxdb-amd64:v1.3.3
 | 
				
			||||||
          resources:
 | 
					          resources:
 | 
				
			||||||
            # keep request = limit to keep this container in guaranteed class
 | 
					 | 
				
			||||||
            limits:
 | 
					            limits:
 | 
				
			||||||
              cpu: 100m
 | 
					              cpu: 100m
 | 
				
			||||||
              memory: 500Mi
 | 
					              memory: 500Mi
 | 
				
			||||||
@@ -32,13 +38,15 @@ spec:
 | 
				
			|||||||
              cpu: 100m
 | 
					              cpu: 100m
 | 
				
			||||||
              memory: 500Mi
 | 
					              memory: 500Mi
 | 
				
			||||||
          ports:
 | 
					          ports:
 | 
				
			||||||
            - containerPort: 8083
 | 
					            - name: http
 | 
				
			||||||
            - containerPort: 8086
 | 
					              containerPort: 8083
 | 
				
			||||||
 | 
					            - name: api
 | 
				
			||||||
 | 
					              containerPort: 8086
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
          - name: influxdb-persistent-storage
 | 
					          - name: influxdb-persistent-storage
 | 
				
			||||||
            mountPath: /data
 | 
					            mountPath: /data
 | 
				
			||||||
        - image: gcr.io/google_containers/heapster-grafana-amd64:v4.0.2
 | 
					        - name: grafana
 | 
				
			||||||
          name: grafana
 | 
					          image: gcr.io/google_containers/heapster-grafana-amd64:v4.4.3
 | 
				
			||||||
          env:
 | 
					          env:
 | 
				
			||||||
          resources:
 | 
					          resources:
 | 
				
			||||||
            # keep request = limit to keep this container in guaranteed class
 | 
					            # keep request = limit to keep this container in guaranteed class
 | 
				
			||||||
@@ -64,6 +72,9 @@ spec:
 | 
				
			|||||||
              value: Admin
 | 
					              value: Admin
 | 
				
			||||||
            - name: GF_SERVER_ROOT_URL
 | 
					            - name: GF_SERVER_ROOT_URL
 | 
				
			||||||
              value: /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
 | 
					              value: /api/v1/proxy/namespaces/kube-system/services/monitoring-grafana/
 | 
				
			||||||
 | 
					          ports:
 | 
				
			||||||
 | 
					          - name: ui
 | 
				
			||||||
 | 
					            containerPort: 3000
 | 
				
			||||||
          volumeMounts:
 | 
					          volumeMounts:
 | 
				
			||||||
          - name: grafana-persistent-storage
 | 
					          - name: grafana-persistent-storage
 | 
				
			||||||
            mountPath: /var
 | 
					            mountPath: /var
 | 
				
			||||||
@@ -72,4 +83,3 @@ spec:
 | 
				
			|||||||
        emptyDir: {}
 | 
					        emptyDir: {}
 | 
				
			||||||
      - name: grafana-persistent-storage
 | 
					      - name: grafana-persistent-storage
 | 
				
			||||||
        emptyDir: {}
 | 
					        emptyDir: {}
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
@@ -17,4 +17,3 @@ spec:
 | 
				
			|||||||
      targetPort: 8086
 | 
					      targetPort: 8086
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    k8s-app: influxGrafana
 | 
					    k8s-app: influxGrafana
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user