feat: integrate Gemini into storage module, remove timecapsule

This commit is contained in:
Stefan Reimer 2021-08-31 17:25:50 +02:00
parent 7b10c5f0d0
commit a6d215b599
20 changed files with 34 additions and 88 deletions

View File

@ -1,13 +1,15 @@
apiVersion: v2
name: kubezero-storage
description: KubeZero umbrella chart for all things storage, eg. openEBS-lvm
description: KubeZero umbrella chart for all things storage incl. backup, eg. openEBS-lvm, gemini
type: application
version: 0.2.0
version: 0.3.0
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:
- kubezero
- gemini
- openEBS
- lvm
maintainers:
- name: Quarky9
dependencies:
@ -15,4 +17,8 @@ dependencies:
version: 0.8.0
repository: https://openebs.github.io/lvm-localpv
condition: lvm-localpv.enabled
- name: gemini
version: 0.0.7
condition: gemini.enabled
# repository: https://charts.fairwinds.com/stable
kubeVersion: ">= 1.18.0"

View File

@ -6,4 +6,4 @@ maintainers:
- email: robertb@fairwinds.com
name: rbren
name: gemini
version: 0.0.6
version: 0.0.7

View File

@ -1,8 +1,9 @@
{{- if index .Values "lvm-localpv" "enabled" }}
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: openebs-lvm
{{- if .Values.storageClass.default }}
{{- if index .Values "lvm-localpv" "storageClass" "default" }}
annotations:
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
@ -10,6 +11,7 @@ volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
parameters:
storage: lvm
vgpattern: {{ default "openebs.*" .Values.storageClass.vgpattern }}
vgpattern: {{ default "openebs.*" ( index .Values "lvm-localpv" "storageClass" "vgpattern") }}
fsType: xfs
provisioner: local.csi.openebs.io
{{- end }}

View File

@ -1,10 +1,9 @@
#!/bin/bash
set -ex
export VERSION=2.11.2
# Gemini
rm -rf charts/gemini
helm pull fairwinds-stable/gemini --untar --untardir charts
#rm -rf charts/gemini
#helm pull fairwinds-stable/gemini --untar --untardir charts
# Patch for istiod to control plane
#patch -p0 -i run-on-controller.patch --no-backup-if-mismatch
# Patch to run gemini on controller nodes
patch -p0 -i gemini.patch --no-backup-if-mismatch

View File

@ -1,5 +1,5 @@
lvm-localpv:
enabled: true
enabled: false
lvmNode:
nodeSelector:
@ -16,6 +16,18 @@ lvm-localpv:
nodeSelector:
node-role.kubernetes.io/master: ""
storageClass:
vgpattern: ""
default: true
storageClass:
vgpattern: ""
default: false
gemini:
enabled: false
# verbosity: 1
resources:
requests:
memory: 32Mi
cpu: 20m
limits:
memory: 128Mi
cpu: 400m

View File

@ -1,17 +0,0 @@
apiVersion: v2
name: kubezero-timecapsule
description: KubeZero umbrella chart for all things backup
type: application
version: 0.1.0
home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords:
- kubezero
- gemini
maintainers:
- name: Quarky9
dependencies:
- name: gemini
version: 0.0.6
# repository: https://charts.fairwinds.com/stable
kubeVersion: ">= 1.18.0"

View File

@ -1,33 +0,0 @@
# kubezero-timecapsule
![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
KubeZero umbrella chart for all things backup
**Homepage:** <https://kubezero.com>
## Maintainers
| Name | Email | Url |
| ---- | ------ | --- |
| Quarky9 | | |
## Requirements
Kubernetes: `>= 1.18.0`
| Repository | Name | Version |
|------------|------|---------|
| | gemini | 0.0.6 |
## Values
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| gemini.resources.limits.cpu | string | `"400m"` | |
| gemini.resources.limits.memory | string | `"128Mi"` | |
| gemini.resources.requests.cpu | string | `"20m"` | |
| gemini.resources.requests.memory | string | `"32Mi"` | |
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)

View File

@ -1,10 +0,0 @@
#!/bin/bash
set -ex
export VERSION=0.0.6
rm -rf charts/gemini
helm pull fairwinds-stable/gemini --untar --untardir charts
# Patch for istiod to control plane
patch -p0 -i run-on-controller.patch --no-backup-if-mismatch

View File

@ -1,13 +0,0 @@
gemini:
#image:
# tag: "0.1.1"
# verbosity: 1
resources:
requests:
memory: 32Mi
cpu: 20m
limits:
memory: 128Mi
cpu: 400m