Skip to content

Commit b648757

Browse files
committed
🚀 deploy snapshot controller
1 parent cb574ab commit b648757

File tree

4 files changed

+54
-4
lines changed

4 files changed

+54
-4
lines changed

apps/snapshot_controller.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from transpire import kustomize
2+
from transpire.utils import get_versions
3+
4+
name = "snapshot-controller"
5+
namespace = "kube-system"
6+
7+
def objects():
8+
yield from kustomize.build_kustomization_from_versions(
9+
name="snapshot-controller-crds",
10+
versions=get_versions(__file__),
11+
)
12+
13+
yield from kustomize.build_kustomization_from_versions(
14+
name="snapshot-controller",
15+
versions=get_versions(__file__),
16+
)

apps/velero.py

+27-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from transpire import helm
22
from transpire.utils import get_versions
33

4+
name = "velero"
5+
46
values = {
57
# At least one plugin provider image is required.
68
"initContainers": [
@@ -27,18 +29,39 @@
2729
},
2830
],
2931
},
30-
3132
],
33+
"deployNodeAgent": "true",
3234
"configuration": {
33-
"backupStorageLocation": [],
35+
"backupStorageLocation": [
36+
{
37+
"name": "default",
38+
"provider": "velero.io/aws",
39+
"bucket": "velero",
40+
"credential": {"key": "aws-config", "name": "minio-credentials"},
41+
"config": {
42+
"region": "minio",
43+
"s3ForcePathStyle": "true",
44+
"s3Url": "http://hal.ocf.berkeley.edu:9000",
45+
},
46+
}
47+
],
3448
"volumeSnapshotLocation": [],
3549
},
3650
}
3751

38-
name = "velero"
39-
4052

4153
def objects():
54+
yield {
55+
"apiVersion": "ricoberger.de/v1alpha1",
56+
"kind": "VaultSecret",
57+
"metadata": {"name": "minio-credentials"},
58+
"spec": {
59+
"keys": ["aws-config"],
60+
"path": f"kvv2/{name}/minio-credentials",
61+
"type": "Opaque",
62+
},
63+
}
64+
4265
yield from helm.build_chart_from_versions(
4366
name="velero",
4467
versions=get_versions(__file__),

apps/versions.toml

+10
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,16 @@ version = "1.13.6"
9797
helm = "https://charts.rook.io/release"
9898
chart = "rook-ceph"
9999

100+
[snapshot-controller]
101+
version = "v7.0.1"
102+
repo_url = "https://github.com/kubernetes-csi/external-snapshotter.git/"
103+
path = "deploy/kubernetes/snapshot-controller"
104+
105+
[snapshot-controller-crds]
106+
version = "v7.0.1"
107+
repo_url = "https://github.com/kubernetes-csi/external-snapshotter.git/"
108+
path = "client/config/crd"
109+
100110
[teleport]
101111
version = "14.2.4"
102112
helm = "https://charts.releases.teleport.dev"

cluster.toml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ postgres-operator = { path = "apps/postgres_operator.py" }
3434
ocf-io = { path = "apps/ocf_io.py" }
3535
rabbitmq = { path = "apps/rabbitmq.py" }
3636
rook = { path = "apps/rook.py" }
37+
snapshot-controller = { path = "apps/snapshot_controller.py" }
3738
teleport = { path = "apps/teleport.py" }
3839
vault = { path = "apps/vault.py" }
3940
vault-secrets-operator = { path = "apps/vault_secrets_operator.py" }

0 commit comments

Comments
 (0)