feat: add kubezero-addons module with metallb as first member

This commit is contained in:
Stefan Reimer 2021-09-02 19:08:08 +02:00
parent a729c539a4
commit fe46c756ae
7 changed files with 92 additions and 2 deletions

View File

@ -0,0 +1,20 @@
apiVersion: v2
name: kubezero-addons
description: KubeZero umbrella chart for various optional cluster addons
type: application
version: 0.0.1
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:
- kubezero
- fuse-device-plugin
- metallb
- k8s-ecr-login-renew
maintainers:
- name: Quarky9
dependencies:
- name: metallb
version: 0.10.2
repository: https://metallb.github.io/metallb
condition: metallb.enabled
kubeVersion: ">= 1.18.0"

View File

@ -0,0 +1,35 @@
# kubezero-addons
![Version: 0.0.1](https://img.shields.io/badge/Version-0.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
KubeZero umbrella chart for various optional cluster addons
**Homepage:** <https://kubezero.com>
## Maintainers
| Name | Email | Url |
| ---- | ------ | --- |
| Quarky9 | | |
## Requirements
Kubernetes: `>= 1.18.0`
| Repository | Name | Version |
|------------|------|---------|
| https://metallb.github.io/metallb | metallb | 0.10.2 |
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| metallb.configInline | object | `{}` | |
| metallb.controller.nodeSelector."node-role.kubernetes.io/master" | string | `""` | |
| metallb.controller.tolerations[0].effect | string | `"NoSchedule"` | |
| metallb.controller.tolerations[0].key | string | `"node-role.kubernetes.io/master"` | |
| metallb.enabled | bool | `true` | |
| metallb.psp.create | bool | `false` | |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)

View File

@ -0,0 +1,18 @@
metallb:
enabled: true
psp:
create: false
controller:
tolerations:
- key: node-role.kubernetes.io/master
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/master: ""
configInline: {}
# address-pools:
# - name: my-ip-space
# protocol: layer2
# addresses:
# - 192.168.42.0/24

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero
description: KubeZero - Bootstrap and ArgoCD Root App of Apps chart
type: application
version: 1.20.8-7
version: 1.20.8-8
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:

View File

@ -0,0 +1,13 @@
{{- define "addons-values" }}
{{- with index .Values "addons" "metallb" }}
metallb:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}
{{- define "addons-argo" }}
{{- end }}
{{ include "kubezero-app.app" . }}

View File

@ -1,7 +1,7 @@
{{- if and ( not .Values.argocdAppName ) ( not .Values.installKubeZero ) }}
# if no ArgoCD is used, only render the global values.yaml for all kubezero modules
{{- $artifacts := list "calico" "cert-manager" "kiam" "aws-ebs-csi-driver" "aws-efs-csi-driver" "istio" "istio-ingress" "metrics" "logging" "argocd" "storage" }}
{{- $artifacts := list "addons" "calico" "cert-manager" "kiam" "aws-ebs-csi-driver" "aws-efs-csi-driver" "istio" "istio-ingress" "metrics" "logging" "argocd" "storage" }}
{{- range $artifacts }}
{{- if index $.Values . }}

View File

@ -6,6 +6,10 @@ kubezero:
HighAvailableControlplane: false
addons:
enabled: false
targetRevision: 0.0.1
calico:
enabled: false
crds: true