Files
charts/bitnami/metrics-server/templates/metrics-api-service.yaml
Rob Jefferson 18b423cded [bitnami/metrics-server]: add insecureSkipTLSVerify and caBundle (#7590)
* metrics-server: add insecureSkipTLSVerify and caBundle

* Make suggested README changes; add clarifications

Co-authored-by: Rob Jefferson <rojeffer@cisco.com>
Co-authored-by: Alejandro Moreno <amorenoc@vmware.com>
2021-09-28 09:08:43 +02:00

30 lines
1.0 KiB
YAML

{{- if .Values.apiService.create -}}
{{- if semverCompare "<1.19-0" (include "common.capabilities.kubeVersion" .) }}
apiVersion: apiregistration.k8s.io/v1beta1
{{- else }}
apiVersion: apiregistration.k8s.io/v1
{{- end }}
kind: APIService
metadata:
name: v1beta1.metrics.k8s.io
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
service:
name: {{ template "common.names.fullname" . }}
namespace: {{ .Release.Namespace }}
group: metrics.k8s.io
version: v1beta1
insecureSkipTLSVerify: {{ .Values.apiService.insecureSkipTLSVerify | default true }}
{{- if .Values.apiService.caBundle }}
caBundle: {{ .Values.apiService.caBundle }}
{{- end }}
groupPriorityMinimum: 100
versionPriority: 100
{{- end -}}