Skip to content

Commit

Permalink
added samples per cloud provider #2
Browse files Browse the repository at this point in the history
  • Loading branch information
akyriako committed Dec 6, 2024
1 parent 2f69934 commit 13a2ebb
Show file tree
Hide file tree
Showing 7 changed files with 161 additions and 29 deletions.
6 changes: 5 additions & 1 deletion config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## Append samples of your project ##
resources:
- ts_v1alpha1_typesensecluster.yaml
- ts_v1alpha1_typesensecluster_aws.yaml
- ts_v1alpha1_typesensecluster_azure.yaml
- ts_v1alpha1_typesensecluster_bm.yaml
- ts_v1alpha1_typesensecluster_kind.yaml
- ts_v1alpha1_typesensecluster_opentelekomcloud.yaml
# +kubebuilder:scaffold:manifestskustomizesamples
30 changes: 2 additions & 28 deletions config/samples/ts_v1alpha1_typesensecluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,5 @@ spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: 10Mi
storageClassName: typesense-local-path
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-2
spec:
image: typesense/typesense:26.0
replicas: 3
storage:
storageClassName: typesense-local-path
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-4
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
storageClassName: iscsi
size: 100Mi
storageClassName: standard
27 changes: 27 additions & 0 deletions config/samples/ts_v1alpha1_typesensecluster_aws.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-1
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: 100Mi
storageClassName: gp2
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-2
spec:
image: typesense/typesense:27.1
replicas: 1
storage:
size: 100Mi
storageClassName: gp2
26 changes: 26 additions & 0 deletions config/samples/ts_v1alpha1_typesensecluster_azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-1
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: 10Mi
storageClassName: managed-csi
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-2
spec:
image: typesense/typesense:26.0
replicas: 1
storage:
storageClassName: managed-csi
27 changes: 27 additions & 0 deletions config/samples/ts_v1alpha1_typesensecluster_bm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-1
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: 100Mi
storageClassName: iscsi
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-2
spec:
image: typesense/typesense:27.1
replicas: 1
storage:
size: 100Mi
storageClassName: nfs
35 changes: 35 additions & 0 deletions config/samples/ts_v1alpha1_typesensecluster_kind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: typesense-local-path
provisioner: rancher.io/local-path
reclaimPolicy: Delete
allowVolumeExpansion: false
volumeBindingMode: WaitForFirstConsumer
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-1
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: 10Mi
storageClassName: typesense-local-path
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-2
spec:
image: typesense/typesense:26.0
replicas: 1
storage:
storageClassName: typesense-local-path
39 changes: 39 additions & 0 deletions config/samples/ts_v1alpha1_typesensecluster_opentelekomcloud.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-1
spec:
image: typesense/typesense:27.1
replicas: 3
storage:
size: 10Mi
storageClassName: csi-disk
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-2
spec:
image: typesense/typesense:26.0
replicas: 1
storage:
storageClassName: csi-disk
---
apiVersion: ts.opentelekomcloud.com/v1alpha1
kind: TypesenseCluster
metadata:
labels:
app.kubernetes.io/name: typesense-operator
app.kubernetes.io/managed-by: kustomize
name: cluster-3
spec:
image: typesense/typesense:26.0
replicas: 3
storage:
storageClassName: csi-obs

0 comments on commit 13a2ebb

Please sign in to comment.