Skip to content

Commit a7c495e

Browse files
authored
feat(weavier-gcp): add gcs backup (#634)
1 parent 9d7fa34 commit a7c495e

File tree

18 files changed

+159
-52
lines changed

18 files changed

+159
-52
lines changed

weaviate/helm/weaviate/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: weaviate
33
description: helm chart for weaviate
44
type: application
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: 1.18.0
77
dependencies:
88
- name: weaviate

weaviate/helm/weaviate/templates/serviceaccount.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

weaviate/helm/weaviate/values.yaml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
# # This is a YAML-formatted file.
33
# # Declare variables to be passed into your templates.
44

5-
nameOverride: ""
6-
fullnameOverride: ""
7-
8-
serviceAccount:
9-
# Specifies whether a service account should be created
10-
create: true
11-
# Annotations to add to the service account
12-
annotations: {}
13-
# The name of the service account to use.
14-
# If not set and create is true, a name is generated using the fullname template
15-
name: ""
16-
175
ingress:
186
enabled: true
197
className: "nginx"
@@ -36,4 +24,3 @@ weaviate:
3624
protocol: TCP
3725
port: 80
3826
type: ClusterIP
39-
annotations: {}

weaviate/helm/weaviate/values.yaml.tpl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
{{ $isGcp := or (eq .Provider "google") (eq .Provider "gcp") }}
2+
13
ingress:
24
hosts:
35
- host: {{ .Values.hostname }}
@@ -8,3 +10,13 @@ ingress:
810
- secretName: weaviate-tls
911
hosts:
1012
- {{ .Values.hostname }}
13+
14+
weaviate:
15+
backups:
16+
{{ if $isGcp }}
17+
gcs:
18+
enabled: true
19+
envconfig:
20+
BACKUP_GCS_BUCKET: {{ .Values.weaviateBucket }}
21+
BACKUP_GCS_USE_AUTH: "true"
22+
{{ end }}

weaviate/plural/recipes/weaviate-gcp.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ sections:
1212
- name: hostname
1313
type: DOMAIN
1414
documentation: the fully qualified domain name your Weaviate instance will be available at
15+
- name: weaviateBucket
16+
type: BUCKET
17+
documentation: gcs bucket for storing weaviate backups
18+
default: weaviate
1519
items:
1620
- type: TERRAFORM
1721
name: kube

weaviate/terraform/aws/deps.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: plural.sh/v1alpha1
2+
kind: Dependencies
3+
metadata:
4+
description: weaviate aws setup
5+
version: 0.1.0
6+
spec:
7+
dependencies:
8+
- name: aws-bootstrap
9+
repo: bootstrap
10+
type: terraform
11+
version: '>= 0.1.1'
12+
providers:
13+
- aws

weaviate/terraform/kube/main.tf renamed to weaviate/terraform/aws/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,13 @@ resource "kubernetes_namespace" "weaviate" {
88
}
99
}
1010

11+
resource "kubernetes_service_account" "weaviate" {
12+
metadata {
13+
name = "weaviate"
14+
namespace = var.namespace
15+
}
16+
17+
depends_on = [
18+
kubernetes_namespace.weaviate
19+
]
20+
}
File renamed without changes.
File renamed without changes.

weaviate/terraform/azure/deps.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: plural.sh/v1alpha1
2+
kind: Dependencies
3+
metadata:
4+
description: weaviate azure setup
5+
version: 0.1.0
6+
spec:
7+
dependencies:
8+
- name: azure-bootstrap
9+
repo: bootstrap
10+
type: terraform
11+
version: '>= 0.1.1'
12+
providers:
13+
- azure

0 commit comments

Comments
 (0)