Skip to content

Commit

Permalink
helm chart testing
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowplum committed Jan 11, 2025
1 parent c1cea53 commit 2d3dfd3
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 107 deletions.
132 changes: 25 additions & 107 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,115 +56,33 @@ jobs:
kubectl --namespace aerospike create secret generic aerospike-secret \
--from-literal=features.conf="$(echo "${{ secrets.FEATURES_CONF }}")"
kubectl apply -f - <<-EOF
apiVersion: asdb.aerospike.com/v1
kind: AerospikeCluster
metadata:
name: aerospike-cluster
namespace: aerospike
spec:
size: 1
image: aerospike/aerospike-server-enterprise:7.0.0.5
podSpec:
multiPodPerHost: true
storage:
filesystemVolumePolicy:
cascadeDelete: true
initMethod: deleteFiles
volumes:
- name: workdir
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 3Gi
aerospike:
path: /opt/aerospike
- name: nsvol1
aerospike:
path: /mnt/disks/test
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: nsvol2
aerospike:
path: /mnt/disks/avs-index
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: nsvol3
aerospike:
path: /mnt/disks/avs-data
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: nsvol4
aerospike:
path: /mnt/disks/avs-meta
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: aerospike-config-secret
source:
secret:
secretName: aerospike-secret
aerospike:
path: /etc/aerospike/secret
aerospikeConfig:
service:
feature-key-file: /etc/aerospike/secret/features.conf
# security: {}
network:
service:
port: 3000
fabric:
port: 3001
heartbeat:
port: 3002
namespaces:
- name: test
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/test/test.dat
- name: avs-index
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/avs-index/avs-index.dat
- name: avs-data
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/avs-data/avs-data.dat
- name: avs-meta
nsup-period: 600
nsup-threads: 2
evict-tenths-pct: 5
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/avs-meta/avs-meta.dat
EOF
kubectl apply -f ci/aerospike.yaml --wait
- name: Setup avs prerequisites
run: |
echo "Deploy MetalLB"
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.14.4/config/manifests/metallb-native.yaml
kubectl wait --namespace metallb-system \
--for=condition=ready pod \
--selector=app=metallb \
--timeout=90s
kubectl apply -f "charts/aerospike-vector-search/kind/config/metallb-config.yaml"
echo "Deploying Istio"
helm repo add istio https://istio-release.storage.googleapis.com/charts
helm repo update
helm install istio-base istio/base --namespace istio-system --set defaultRevision=default --create-namespace --wait
helm install istiod istio/istiod --namespace istio-system --create-namespace --wait
helm install istio-ingress istio/gateway \
--values "charts/aerospike-vector-search/kind/config/istio-ingressgateway-values.yaml" \
--namespace istio-ingress \
--create-namespace \
--wait
kubectl apply -f "charts/aerospike-vector-search/kind/config/gateway.yaml" --wait
kubectl apply -f "charts/aerospike-vector-search/kind/config/virtual-service-vector-search.yaml" --wait
- name: Run chart-testing (install)
run: |
cd chart/aerospike-vector-search
Expand Down
42 changes: 42 additions & 0 deletions charts/aerospike-vector-search/ci/avs-kind-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
aerospikeVectorSearchConfig:
cluster:
cluster-name: "avs-db-1"
feature-key-file: "/etc/aerospike-vector-search/features.conf"
service:
ports:
5000:
addresses:
"0.0.0.0"
manage:
ports:
5040: { }
interconnect:
ports:
5001:
addresses:
"0.0.0.0"
aerospike:
seeds:
- aerospike-cluster-0-0.aerospike-cluster.aerospike.svc.cluster.local:
port: 3000
logging:
# file: /var/log/aerospike-vector-search/aerospike-vector-search.log
enable-console-logging: false
format: simple
max-history: 30
levels:
metrics-ticker: info
root: info
ticker-interval: 10

securityContext:
allowPrivilegeEscalation: false
runAsUser: 0

service:
enabled: false
type: ClusterIP
ports:
- name: "svc-port"
port: 5000
targetPort: 5000
104 changes: 104 additions & 0 deletions ci/aerospike.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
apiVersion: asdb.aerospike.com/v1
kind: AerospikeCluster
metadata:
name: aerospike-cluster
namespace: aerospike
spec:
size: 1
image: aerospike/aerospike-server-enterprise:7.0.0.5
podSpec:
multiPodPerHost: true
storage:
filesystemVolumePolicy:
cascadeDelete: true
initMethod: deleteFiles
volumes:
- name: workdir
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 3Gi
aerospike:
path: /opt/aerospike
- name: nsvol1
aerospike:
path: /mnt/disks/test
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: nsvol2
aerospike:
path: /mnt/disks/avs-index
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: nsvol3
aerospike:
path: /mnt/disks/avs-data
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: nsvol4
aerospike:
path: /mnt/disks/avs-meta
source:
persistentVolume:
storageClass: standard
volumeMode: Filesystem
size: 16G
- name: aerospike-config-secret
source:
secret:
secretName: aerospike-secret
aerospike:
path: /etc/aerospike/secret
aerospikeConfig:
service:
feature-key-file: /etc/aerospike/secret/features.conf
# security: {}
network:
service:
port: 3000
fabric:
port: 3001
heartbeat:
port: 3002
namespaces:
- name: test
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/test/test.dat
- name: avs-index
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/avs-index/avs-index.dat
- name: avs-data
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/avs-data/avs-data.dat
- name: avs-meta
nsup-period: 600
nsup-threads: 2
evict-tenths-pct: 5
replication-factor: 2
storage-engine:
type: device
filesize: 17179869184
files:
- /mnt/disks/avs-meta/avs-meta.dat

0 comments on commit 2d3dfd3

Please sign in to comment.