feat: make operators work on GKE
This commit is contained in:
parent
432781511d
commit
f3371d2685
@ -2,7 +2,7 @@ gitea:
|
|||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
image:
|
image:
|
||||||
tag: 1.22.4
|
tag: 1.22.6
|
||||||
rootless: true
|
rootless: true
|
||||||
|
|
||||||
repliaCount: 1
|
repliaCount: 1
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: kubezero-lib
|
name: kubezero-lib
|
||||||
description: KubeZero helm library - common helm functions and blocks
|
description: KubeZero helm library - common helm functions and blocks
|
||||||
type: library
|
type: library
|
||||||
version: 0.2.0
|
version: 0.2.1
|
||||||
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:
|
||||||
@ -10,4 +10,4 @@ keywords:
|
|||||||
maintainers:
|
maintainers:
|
||||||
- name: Stefan Reimer
|
- name: Stefan Reimer
|
||||||
email: stefan@zero-downtime.net
|
email: stefan@zero-downtime.net
|
||||||
kubeVersion: ">= 1.20.0"
|
kubeVersion: ">= 1.30.0"
|
||||||
|
@ -2,7 +2,7 @@ kubezero-lib
|
|||||||
============
|
============
|
||||||
KubeZero helm library - common helm functions and blocks
|
KubeZero helm library - common helm functions and blocks
|
||||||
|
|
||||||
Current chart version is `0.1.0`
|
Current chart version is `0.2.1`
|
||||||
|
|
||||||
Source code can be found [here](https://kubezero.com)
|
Source code can be found [here](https://kubezero.com)
|
||||||
|
|
||||||
|
10
charts/kubezero-lib/templates/_commons.tpl
Normal file
10
charts/kubezero-lib/templates/_commons.tpl
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{{- /*
|
||||||
|
maps pods to the kube control-plane
|
||||||
|
*/ -}}
|
||||||
|
{{- define "kubezero-lib.control-plane" -}}
|
||||||
|
nodeSelector:
|
||||||
|
node-role.kubernetes.io/control-plane: ""
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
effect: NoSchedule
|
||||||
|
{{- end -}}
|
@ -25,9 +25,9 @@ Common naming functions
|
|||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{- /*
|
||||||
Selector labels
|
Selector labels
|
||||||
*/}}
|
*/ -}}
|
||||||
{{- define "kubezero-lib.selectorLabels" -}}
|
{{- define "kubezero-lib.selectorLabels" -}}
|
||||||
app.kubernetes.io/name: {{ include "kubezero-lib.name" . }}
|
app.kubernetes.io/name: {{ include "kubezero-lib.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
@ -49,7 +49,7 @@ This takes an array of three values:
|
|||||||
- the top context
|
- the top context
|
||||||
- the template name of the overrides (destination)
|
- the template name of the overrides (destination)
|
||||||
- the template name of the base (source)
|
- the template name of the base (source)
|
||||||
*/}}
|
*/ -}}
|
||||||
{{- define "kubezero-lib.util.merge" -}}
|
{{- define "kubezero-lib.util.merge" -}}
|
||||||
{{- $top := first . -}}
|
{{- $top := first . -}}
|
||||||
{{- $overrides := fromYaml (include (index . 1) $top) | default (dict ) -}}
|
{{- $overrides := fromYaml (include (index . 1) $top) | default (dict ) -}}
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: kubezero-operators
|
name: kubezero-operators
|
||||||
description: Various operators supported by KubeZero
|
description: Various operators supported by KubeZero
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.7
|
version: 0.1.8
|
||||||
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:
|
||||||
|
@ -13,28 +13,12 @@ opensearch-operator:
|
|||||||
- name: SKIP_INIT_CONTAINER
|
- name: SKIP_INIT_CONTAINER
|
||||||
value: "true"
|
value: "true"
|
||||||
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
|
|
||||||
eck-operator:
|
eck-operator:
|
||||||
enabled: false
|
enabled: false
|
||||||
installCRDs: false
|
installCRDs: false
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
|
|
||||||
cloudnative-pg:
|
cloudnative-pg:
|
||||||
enabled: false
|
enabled: false
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
|
|
||||||
monitoring:
|
monitoring:
|
||||||
podMonitorEnabled: false
|
podMonitorEnabled: false
|
||||||
@ -51,12 +35,6 @@ strimzi-kafka-operator:
|
|||||||
leaderElection:
|
leaderElection:
|
||||||
enable: false
|
enable: false
|
||||||
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 20m
|
cpu: 20m
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: kubezero
|
name: kubezero
|
||||||
description: KubeZero - Root App of Apps chart
|
description: KubeZero - Root App of Apps chart
|
||||||
type: application
|
type: application
|
||||||
version: 1.30.6
|
version: 1.31.4-alpha
|
||||||
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:
|
||||||
@ -13,6 +13,6 @@ maintainers:
|
|||||||
email: stefan@zero-downtime.net
|
email: stefan@zero-downtime.net
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: kubezero-lib
|
- name: kubezero-lib
|
||||||
version: ">= 0.1.6"
|
version: ">= 0.2.1"
|
||||||
repository: https://cdn.zero-downtime.net/charts
|
repository: https://cdn.zero-downtime.net/charts
|
||||||
kubeVersion: ">= 1.26.0-0"
|
kubeVersion: ">= 1.29.0-0"
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
.PHONY: sync
|
|
||||||
|
|
||||||
sync:
|
|
||||||
rm -rf scripts templates
|
|
||||||
cp -r ../../kubezero/charts/kubezero/* .
|
|
@ -1,6 +1,6 @@
|
|||||||
# kubezero
|
# kubezero
|
||||||
|
|
||||||
![Version: 1.30.5](https://img.shields.io/badge/Version-1.30.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
|
![Version: 1.31.3](https://img.shields.io/badge/Version-1.31.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
|
||||||
|
|
||||||
KubeZero - Root App of Apps chart
|
KubeZero - Root App of Apps chart
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ Kubernetes: `>= 1.26.0-0`
|
|||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://cdn.zero-downtime.net/charts | kubezero-lib | >= 0.1.6 |
|
| https://cdn.zero-downtime.net/charts | kubezero-lib | >= 0.2.1 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
@ -32,16 +32,16 @@ Kubernetes: `>= 1.26.0-0`
|
|||||||
| addons.external-dns.enabled | bool | `false` | |
|
| addons.external-dns.enabled | bool | `false` | |
|
||||||
| addons.forseti.enabled | bool | `false` | |
|
| addons.forseti.enabled | bool | `false` | |
|
||||||
| addons.sealed-secrets.enabled | bool | `false` | |
|
| addons.sealed-secrets.enabled | bool | `false` | |
|
||||||
| addons.targetRevision | string | `"0.8.9"` | |
|
| addons.targetRevision | string | `"0.8.11"` | |
|
||||||
| argo.argo-cd.enabled | bool | `false` | |
|
| argo.argo-cd.enabled | bool | `false` | |
|
||||||
| argo.argo-cd.istio.enabled | bool | `false` | |
|
| argo.argo-cd.istio.enabled | bool | `false` | |
|
||||||
| argo.argocd-image-updater.enabled | bool | `false` | |
|
| argo.argocd-image-updater.enabled | bool | `false` | |
|
||||||
| argo.enabled | bool | `false` | |
|
| argo.enabled | bool | `false` | |
|
||||||
| argo.namespace | string | `"argocd"` | |
|
| argo.namespace | string | `"argocd"` | |
|
||||||
| argo.targetRevision | string | `"0.2.4"` | |
|
| argo.targetRevision | string | `"0.2.6"` | |
|
||||||
| cert-manager.enabled | bool | `false` | |
|
| cert-manager.enabled | bool | `false` | |
|
||||||
| cert-manager.namespace | string | `"cert-manager"` | |
|
| cert-manager.namespace | string | `"cert-manager"` | |
|
||||||
| cert-manager.targetRevision | string | `"0.9.9"` | |
|
| cert-manager.targetRevision | string | `"0.9.10"` | |
|
||||||
| falco.enabled | bool | `false` | |
|
| falco.enabled | bool | `false` | |
|
||||||
| falco.k8saudit.enabled | bool | `false` | |
|
| falco.k8saudit.enabled | bool | `false` | |
|
||||||
| falco.targetRevision | string | `"0.1.2"` | |
|
| falco.targetRevision | string | `"0.1.2"` | |
|
||||||
@ -54,35 +54,35 @@ Kubernetes: `>= 1.26.0-0`
|
|||||||
| istio-ingress.enabled | bool | `false` | |
|
| istio-ingress.enabled | bool | `false` | |
|
||||||
| istio-ingress.gateway.service | object | `{}` | |
|
| istio-ingress.gateway.service | object | `{}` | |
|
||||||
| istio-ingress.namespace | string | `"istio-ingress"` | |
|
| istio-ingress.namespace | string | `"istio-ingress"` | |
|
||||||
| istio-ingress.targetRevision | string | `"0.22.3-1"` | |
|
| istio-ingress.targetRevision | string | `"0.23.2"` | |
|
||||||
| istio-private-ingress.chart | string | `"kubezero-istio-gateway"` | |
|
| istio-private-ingress.chart | string | `"kubezero-istio-gateway"` | |
|
||||||
| istio-private-ingress.enabled | bool | `false` | |
|
| istio-private-ingress.enabled | bool | `false` | |
|
||||||
| istio-private-ingress.gateway.service | object | `{}` | |
|
| istio-private-ingress.gateway.service | object | `{}` | |
|
||||||
| istio-private-ingress.namespace | string | `"istio-ingress"` | |
|
| istio-private-ingress.namespace | string | `"istio-ingress"` | |
|
||||||
| istio-private-ingress.targetRevision | string | `"0.22.3-1"` | |
|
| istio-private-ingress.targetRevision | string | `"0.23.2"` | |
|
||||||
| istio.enabled | bool | `false` | |
|
| istio.enabled | bool | `false` | |
|
||||||
| istio.namespace | string | `"istio-system"` | |
|
| istio.namespace | string | `"istio-system"` | |
|
||||||
| istio.targetRevision | string | `"0.22.3-1"` | |
|
| istio.targetRevision | string | `"0.23.2"` | |
|
||||||
| kubezero.defaultTargetRevision | string | `"*"` | |
|
| kubezero.defaultTargetRevision | string | `"*"` | |
|
||||||
| kubezero.gitSync | object | `{}` | |
|
| kubezero.gitSync | object | `{}` | |
|
||||||
| kubezero.repoURL | string | `"https://cdn.zero-downtime.net/charts"` | |
|
| kubezero.repoURL | string | `"https://cdn.zero-downtime.net/charts"` | |
|
||||||
| kubezero.server | string | `"https://kubernetes.default.svc"` | |
|
| kubezero.server | string | `"https://kubernetes.default.svc"` | |
|
||||||
| logging.enabled | bool | `false` | |
|
| logging.enabled | bool | `false` | |
|
||||||
| logging.namespace | string | `"logging"` | |
|
| logging.namespace | string | `"logging"` | |
|
||||||
| logging.targetRevision | string | `"0.8.12"` | |
|
| logging.targetRevision | string | `"0.8.13"` | |
|
||||||
| metrics.enabled | bool | `false` | |
|
| metrics.enabled | bool | `false` | |
|
||||||
| metrics.istio.grafana | object | `{}` | |
|
| metrics.istio.grafana | object | `{}` | |
|
||||||
| metrics.istio.prometheus | object | `{}` | |
|
| metrics.istio.prometheus | object | `{}` | |
|
||||||
| metrics.kubezero.prometheus.prometheusSpec.additionalScrapeConfigs | list | `[]` | |
|
| metrics.kubezero.prometheus.prometheusSpec.additionalScrapeConfigs | list | `[]` | |
|
||||||
| metrics.namespace | string | `"monitoring"` | |
|
| metrics.namespace | string | `"monitoring"` | |
|
||||||
| metrics.targetRevision | string | `"0.10.0"` | |
|
| metrics.targetRevision | string | `"0.10.2"` | |
|
||||||
| network.cilium.cluster | object | `{}` | |
|
| network.cilium.cluster | object | `{}` | |
|
||||||
| network.enabled | bool | `true` | |
|
| network.enabled | bool | `true` | |
|
||||||
| network.retain | bool | `true` | |
|
| network.retain | bool | `true` | |
|
||||||
| network.targetRevision | string | `"0.5.5"` | |
|
| network.targetRevision | string | `"0.5.5"` | |
|
||||||
| operators.enabled | bool | `false` | |
|
| operators.enabled | bool | `false` | |
|
||||||
| operators.namespace | string | `"operators"` | |
|
| operators.namespace | string | `"operators"` | |
|
||||||
| operators.targetRevision | string | `"0.1.4"` | |
|
| operators.targetRevision | string | `"0.1.6"` | |
|
||||||
| storage.aws-ebs-csi-driver.enabled | bool | `false` | |
|
| storage.aws-ebs-csi-driver.enabled | bool | `false` | |
|
||||||
| storage.aws-efs-csi-driver.enabled | bool | `false` | |
|
| storage.aws-efs-csi-driver.enabled | bool | `false` | |
|
||||||
| storage.enabled | bool | `false` | |
|
| storage.enabled | bool | `false` | |
|
||||||
@ -90,7 +90,10 @@ Kubernetes: `>= 1.26.0-0`
|
|||||||
| storage.k8up.enabled | bool | `false` | |
|
| storage.k8up.enabled | bool | `false` | |
|
||||||
| storage.lvm-localpv.enabled | bool | `false` | |
|
| storage.lvm-localpv.enabled | bool | `false` | |
|
||||||
| storage.snapshotController.enabled | bool | `false` | |
|
| storage.snapshotController.enabled | bool | `false` | |
|
||||||
| storage.targetRevision | string | `"0.8.8"` | |
|
| storage.targetRevision | string | `"0.8.9"` | |
|
||||||
| telemetry.enabled | bool | `false` | |
|
| telemetry.enabled | bool | `false` | |
|
||||||
| telemetry.namespace | string | `"telemetry"` | |
|
| telemetry.namespace | string | `"telemetry"` | |
|
||||||
| telemetry.targetRevision | string | `"0.4.0"` | |
|
| telemetry.targetRevision | string | `"0.4.1"` | |
|
||||||
|
|
||||||
|
----------------------------------------------
|
||||||
|
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
|
||||||
|
@ -10,26 +10,13 @@ cert-manager:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- if eq .Values.global.platform "aws" }}
|
{{- if eq .Values.global.platform "aws" }}
|
||||||
# map everything to the control-plane
|
{{- include "kubezero-lib.control-plane" . | nindent 2 }}
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
tolerations:
|
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
|
|
||||||
webhook:
|
webhook:
|
||||||
tolerations:
|
{{- include "kubezero-lib.control-plane" . | nindent 4 }}
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
|
|
||||||
cainjector:
|
cainjector:
|
||||||
tolerations:
|
{{- include "kubezero-lib.control-plane" . | nindent 4 }}
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
nodeSelector:
|
|
||||||
node-role.kubernetes.io/control-plane: ""
|
|
||||||
|
|
||||||
extraEnv:
|
extraEnv:
|
||||||
- name: AWS_REGION
|
- name: AWS_REGION
|
||||||
|
@ -13,19 +13,15 @@ istiod:
|
|||||||
telemetry:
|
telemetry:
|
||||||
enabled: {{ $.Values.metrics.enabled }}
|
enabled: {{ $.Values.metrics.enabled }}
|
||||||
pilot:
|
pilot:
|
||||||
{{- if eq .Values.global.platform "aws" }}
|
{{- if eq .Values.global.platform "aws" }}
|
||||||
nodeSelector:
|
{{- include "kubezero-lib.control-plane" . | nindent 4 }}
|
||||||
node-role.kubernetes.io/control-plane: ""
|
{{- end }}
|
||||||
tolerations:
|
{{- if .Values.global.highAvailable }}
|
||||||
- key: node-role.kubernetes.io/control-plane
|
|
||||||
effect: NoSchedule
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.global.highAvailable }}
|
|
||||||
replicaCount: 2
|
replicaCount: 2
|
||||||
{{- else }}
|
{{- else }}
|
||||||
extraContainerArgs:
|
extraContainerArgs:
|
||||||
- --leader-elect=false
|
- --leader-elect=false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with index .Values "istio" "kiali-server" }}
|
{{- with index .Values "istio" "kiali-server" }}
|
||||||
kiali-server:
|
kiali-server:
|
||||||
|
@ -2,16 +2,28 @@
|
|||||||
|
|
||||||
{{- with index .Values "operators" "opensearch-operator" }}
|
{{- with index .Values "operators" "opensearch-operator" }}
|
||||||
opensearch-operator:
|
opensearch-operator:
|
||||||
|
{{- if eq $.Values.global.platform "aws" }}
|
||||||
|
{{- include "kubezero-lib.control-plane" . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with index .Values "operators" "eck-operator" }}
|
{{- with index .Values "operators" "eck-operator" }}
|
||||||
eck-operator:
|
eck-operator:
|
||||||
|
{{- if eq $.Values.global.platform "aws" }}
|
||||||
|
{{- include "kubezero-lib.control-plane" . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- with index .Values "operators" "cloudnative-pg" }}
|
{{- with index .Values "operators" "cloudnative-pg" }}
|
||||||
cloudnative-pg:
|
cloudnative-pg:
|
||||||
|
{{- if eq $.Values.global.platform "aws" }}
|
||||||
|
{{- include "kubezero-lib.control-plane" . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
|
|
||||||
{{- with $.Values.metrics }}
|
{{- with $.Values.metrics }}
|
||||||
@ -22,6 +34,10 @@ cloudnative-pg:
|
|||||||
|
|
||||||
{{- with index .Values "operators" "strimzi-kafka-operator" }}
|
{{- with index .Values "operators" "strimzi-kafka-operator" }}
|
||||||
strimzi-kafka-operator:
|
strimzi-kafka-operator:
|
||||||
|
{{- if eq $.Values.global.platform "aws" }}
|
||||||
|
{{- include "kubezero-lib.control-plane" . | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- toYaml . | nindent 2 }}
|
{{- toYaml . | nindent 2 }}
|
||||||
|
|
||||||
{{- with $.Values.metrics }}
|
{{- with $.Values.metrics }}
|
||||||
|
9
charts/kubezero/update.sh
Executable file
9
charts/kubezero/update.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
. ../../scripts/lib-update.sh
|
||||||
|
|
||||||
|
login_ecr_public
|
||||||
|
update_helm
|
||||||
|
|
||||||
|
update_docs
|
@ -96,7 +96,7 @@ telemetry:
|
|||||||
operators:
|
operators:
|
||||||
enabled: false
|
enabled: false
|
||||||
namespace: operators
|
namespace: operators
|
||||||
targetRevision: 0.1.6
|
targetRevision: 0.1.8
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Loading…
Reference in New Issue
Block a user