Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
implementing feedback for metrics-server chart. Bumped chart version,…
Browse files Browse the repository at this point in the history
… updated metric-server-service template with server.labels value

Signed-off-by: Ryan Hartje <ryan.hartje@microsoft.com>
  • Loading branch information
goshlanguage committed May 16, 2019
1 parent 3728a7f commit 87e45a4
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 11 deletions.
4 changes: 2 additions & 2 deletions stable/metrics-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
appVersion: 0.3.1
appVersion: 0.3.2
description: Metrics Server is a cluster-wide aggregator of resource usage data.
name: metrics-server
version: 2.5.2
version: 2.8.0
keywords:
- metrics-server
home: https://github.com/kubernetes-incubator/metrics-server
Expand Down
2 changes: 1 addition & 1 deletion stable/metrics-server/templates/metric-server-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
chart: {{ template "metrics-server.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.serviceLabels }}
{{- with .Values.service.labels }}
{{ toYaml . | indent 4}}
{{- end }}
spec:
Expand Down
53 changes: 45 additions & 8 deletions stable/metrics-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ hostNetwork:

image:
repository: gcr.io/google_containers/metrics-server-amd64
tag: v0.3.1
tag: v0.3.2
pullPolicy: IfNotPresent

args:
- --logtostderr
imagePullSecrets: []
# - registrySecretName

args: []
# enable this if you have self-signed certificates, see: https://github.com/kubernetes-incubator/metrics-server
# - --kubelet-insecure-tls

Expand All @@ -47,14 +49,11 @@ affinity: {}
replicas: 1

podAnnotations: {}
# The following annotations guarantee scheduling for critical add-on pods.
# See more at: https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
# scheduler.alpha.kubernetes.io/critical-pod: ''
# priorityClassName: system-node-critical

serviceLabels: {}
# Enable the next two labels to show metrics-server when running kubectl cluster-info
# kubernetes.io/cluster-service: "true"
# kubernetes.io/name: metrics-server

extraVolumeMounts: []
# - name: secrets
# mountPath: /etc/kubernetes/secrets
Expand All @@ -64,3 +63,41 @@ extraVolumes: []
# - name: secrets
# secret:
# secretName: kube-apiserver

livenessProbe:
httpGet:
path: /healthz
port: https
scheme: HTTPS
initialDelaySeconds: 20

readinessProbe:
httpGet:
path: /healthz
port: https
scheme: HTTPS
initialDelaySeconds: 20

securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["all"]
readOnlyRootFilesystem: true
runAsGroup: 10001
runAsNonRoot: true
runAsUser: 10001

service:
annotations: {}
labels: {}
# Add these labels to have metrics-server show up in `kubectl cluster-info`
# kubernetes.io/cluster-service: "true"
# kubernetes.io/name: metrics-server
port: 443
type: ClusterIP

podDisruptionBudget:
# https://kubernetes.io/docs/tasks/run-application/configure-pdb/
enabled: false
minAvailable:
maxUnavailable:

0 comments on commit 87e45a4

Please sign in to comment.