Merge pull request 'Version bump cert-manager, argo-cd, new EFS multi PVC feature and switch to new kube-prometheus charts' (#28) from kube-prometheus into master

Reviewed-on: ZeroDownTime/kubezero#28
This commit is contained in:
Stefan Reimer 2020-10-21 12:32:49 +00:00
commit 9674395ac3
9 changed files with 33 additions and 27 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v2 apiVersion: v2
description: KubeZero ArgoCD Helm chart to install ArgoCD itself and the KubeZero ArgoCD Application description: KubeZero ArgoCD Helm chart to install ArgoCD itself and the KubeZero ArgoCD Application
name: kubezero-argo-cd name: kubezero-argo-cd
version: 0.5.6 version: 0.5.7
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:
@ -15,6 +15,6 @@ dependencies:
version: ">= 0.1.3" version: ">= 0.1.3"
repository: https://zero-down-time.github.io/kubezero/ repository: https://zero-down-time.github.io/kubezero/
- name: argo-cd - name: argo-cd
version: 2.8.0 version: 2.9.3
repository: https://argoproj.github.io/argo-helm repository: https://argoproj.github.io/argo-helm
kubeVersion: ">= 1.17.0" kubeVersion: ">= 1.17.0"

View File

@ -31,14 +31,14 @@ argo-cd:
global: global:
image: image:
tag: v1.7.7 tag: v1.7.8
controller: controller:
args: args:
statusProcessors: "4" statusProcessors: "4"
operationProcessors: "2" operationProcessors: "2"
appResyncPeriod: "300" appResyncPeriod: "300"
# logFormat: json logFormat: json
metrics: metrics:
enabled: false enabled: false
@ -63,7 +63,7 @@ argo-cd:
memory: 256Mi memory: 256Mi
repoServer: repoServer:
# logFormat: json logFormat: json
metrics: metrics:
enabled: false enabled: false
serviceMonitor: serviceMonitor:
@ -79,7 +79,7 @@ argo-cd:
effect: NoSchedule effect: NoSchedule
server: server:
# logFormat: json logFormat: json
config: config:
# argo-cd.server.config.url -- ArgoCD hostname to be exposed via Istio # argo-cd.server.config.url -- ArgoCD hostname to be exposed via Istio
url: argocd.example.com url: argocd.example.com

View File

@ -1,3 +1,4 @@
{{- if .Values.PersistentVolume }}
{{- if .Values.PersistentVolume.create }} {{- if .Values.PersistentVolume.create }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolume kind: PersistentVolume
@ -17,3 +18,4 @@ spec:
driver: efs.csi.aws.com driver: efs.csi.aws.com
volumeHandle: {{ .Values.PersistentVolume.EfsId }} volumeHandle: {{ .Values.PersistentVolume.EfsId }}
{{- end }} {{- end }}
{{- end }}

View File

@ -19,7 +19,7 @@ StorageClass:
# volumeHandle: "<efs-id>:/path2" # volumeHandle: "<efs-id>:/path2"
# Deprecated and removed with next release # Deprecated and removed with next release
PersistentVolume: # PersistentVolume:
create: false # create: false
EfsId: "" # EfsId: ""
Name: "" # Name: ""

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-cert-manager name: kubezero-cert-manager
description: KubeZero Umbrella Chart for cert-manager description: KubeZero Umbrella Chart for cert-manager
type: application type: application
version: 0.3.6 version: 0.4.0
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:
@ -15,6 +15,6 @@ dependencies:
version: ">= 0.1.3" version: ">= 0.1.3"
repository: https://zero-down-time.github.io/kubezero/ repository: https://zero-down-time.github.io/kubezero/
- name: cert-manager - name: cert-manager
version: 0.15.1 version: 1.0.3
repository: https://charts.jetstack.io repository: https://charts.jetstack.io
kubeVersion: ">= 1.16.0" kubeVersion: ">= 1.16.0"

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-metrics name: kubezero-metrics
description: KubeZero Umbrella Chart for prometheus-operator description: KubeZero Umbrella Chart for prometheus-operator
type: application type: application
version: 0.1.4 version: 0.2.0
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:
@ -15,10 +15,10 @@ dependencies:
- name: kubezero-lib - name: kubezero-lib
version: ">= 0.1.3" version: ">= 0.1.3"
repository: https://zero-down-time.github.io/kubezero/ repository: https://zero-down-time.github.io/kubezero/
- name: prometheus-operator - name: kube-prometheus-stack
version: 9.3.1 version: 10.0.1
repository: https://kubernetes-charts.storage.googleapis.com/ repository: https://prometheus-community.github.io/helm-charts
- name: prometheus-adapter - name: prometheus-adapter
version: 2.5.0 version: 2.7.0
repository: https://kubernetes-charts.storage.googleapis.com/ repository: https://prometheus-community.github.io/helm-charts
kubeVersion: ">= 1.16.0" kubeVersion: ">= 1.16.0"

View File

@ -31,5 +31,5 @@ spec:
http: http:
- route: - route:
- destination: - destination:
host: metrics-prometheus-operato-prometheus host: metrics-kube-prometheus-st-prometheus
{{- end }} {{- end }}

View File

@ -11,7 +11,7 @@ prometheus:
url: "" url: ""
gateway: istio-system/ingressgateway gateway: istio-system/ingressgateway
prometheus-operator: kube-prometheus-stack:
defaultRules: defaultRules:
create: true create: true
@ -60,9 +60,9 @@ prometheus-operator:
prometheusOperator: prometheusOperator:
enabled: true enabled: true
#image: #image:
# tag: v0.41.0 # tag: v0.42.1
#prometheusConfigReloaderImage: #prometheusConfigReloaderImage:
# tag: v0.41.0 # tag: v0.42.1
# Run on controller nodes # Run on controller nodes
tolerations: tolerations:
@ -148,7 +148,7 @@ prometheus-operator:
# Metrics adapter # Metrics adapter
prometheus-adapter: prometheus-adapter:
prometheus: prometheus:
url: http://metrics-prometheus-operato-prometheus url: http://metrics-kube-prometheus-st-prometheus
tolerations: tolerations:
- key: node-role.kubernetes.io/master - key: node-role.kubernetes.io/master
effect: NoSchedule effect: NoSchedule
@ -160,8 +160,8 @@ prometheus-adapter:
default: false default: false
resource: resource:
cpu: cpu:
containerQuery: sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[5m])) by (<<.GroupBy>>) containerQuery: sum(irate(container_cpu_usage_seconds_total{<<.LabelMatchers>>,container!="POD",container!="",pod!=""}[3m])) by (<<.GroupBy>>)
nodeQuery: sum(1 - irate(node_cpu_seconds_total{mode="idle"}[5m]) * on(namespace, pod) group_left(node) node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>}) by (<<.GroupBy>>) nodeQuery: sum(1 - irate(node_cpu_seconds_total{mode="idle"}[3m]) * on(namespace, pod) group_left(node) node_namespace_pod:kube_pod_info:{<<.LabelMatchers>>}) by (<<.GroupBy>>)
resources: resources:
overrides: overrides:
node: node:
@ -183,4 +183,4 @@ prometheus-adapter:
pod: pod:
resource: pod resource: pod
containerLabel: container containerLabel: container
window: 5m window: 3m

View File

@ -78,18 +78,22 @@ kubezero:
aws-efs-csi-driver: aws-efs-csi-driver:
enabled: {{ index .Values "aws-efs-csi-driver" "enabled" }} enabled: {{ index .Values "aws-efs-csi-driver" "enabled" }}
values: values:
{{- with index .Values "aws-efs-csi-driver" "nodeSelector" }}
aws-efs-csi-driver: aws-efs-csi-driver:
nodeSelector: nodeSelector:
node.kubernetes.io/csi.efs.fs: {{ index .Values "aws-efs-csi-driver" "EfsId" }} {{- toYaml . | nindent 10 }}
{{- end }}
{{- with index .Values "aws-efs-csi-driver" "PersistentVolumes" }} {{- with index .Values "aws-efs-csi-driver" "PersistentVolumes" }}
PersistentVolumes: PersistentVolumes:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}
{{- if index .Values "aws-efs-csi-driver" "PersistentVolume" }}
PersistentVolume: PersistentVolume:
create: true create: true
EfsId: {{ index .Values "aws-efs-csi-driver" "EfsId" }} EfsId: {{ index .Values "aws-efs-csi-driver" "EfsId" }}
Name: {{ default "kubezero-efs-pv" ( index .Values "aws-efs-csi-driver" "PVName" ) }} Name: {{ default "kubezero-efs-pv" ( index .Values "aws-efs-csi-driver" "PVName" ) }}
{{- end }} {{- end }}
{{- end }}
istio: istio:
enabled: {{ .Values.istio.enabled }} enabled: {{ .Values.istio.enabled }}