Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
Fix deployer helm chart so that runtime picks the correct docker image (
Browse files Browse the repository at this point in the history
LangStream#180)

* Fix Deployer Helm Chart

1. Fix the deployer helm chart so that the runtime picks the proper docker image.
2. minio-dev.yaml picks a volume that is read only in GKE.
3. Update instructions

* Yet another place to provide the runtime image
  • Loading branch information
dave2wave committed Aug 5, 2023
1 parent cfc5334 commit dd87099
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ brew install minikube
minikube start
```


Deploy MinIO (S3 BlobStorage implementation for local testing)

```
Expand Down Expand Up @@ -94,9 +93,20 @@ minikube image load datastax/sga-runtime:latest-dev
minikube image load datastax/sga-api-gateway:latest-dev
```

If you want to use the docker images you just built, then use helm/examples/local.yaml values file:
If you want to use the docker images you just built, use `helm/examples/local.yaml` values file:

```
helm install sga helm/sga --values helm/examples/lcoal.yaml --wait --timeout 60s
```

## Deploying to GKE or similar K8s test cluster

Instead of `minio-dev.yaml` use the `helm/examples/minio-gke.yaml` file:

```
kubectl apply -f helm/examples/minio-gke.yaml
```

## Deploying to a Persistent Cluster

TODO: instructions on configuring with S3.
62 changes: 62 additions & 0 deletions helm/examples/minio-gke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
apiVersion: v1
kind: Namespace
metadata:
name: minio-dev # Change this value if you want a different namespace name
labels:
name: minio-dev # Change this value to match metadata.name
---
# Deploys a new MinIO Pod into the metadata.namespace Kubernetes namespace
#
# The `spec.containers[0].args` contains the command run on the pod
# The `/data` directory corresponds to the `spec.containers[0].volumeMounts[0].mountPath`
# That mount path corresponds to a Kubernetes HostPath which binds `/data` to a local drive or volume on the worker node where the pod runs
# For GKE and other cloud deployments let the node provide writable storage for the `localvolume`
#
apiVersion: v1
kind: Pod
metadata:
labels:
app: minio
name: minio
namespace: minio-dev # Change this value to match the namespace metadata.name
spec:
containers:
- name: minio
image: quay.io/minio/minio:latest
command:
- /bin/bash
- -c
args:
- minio server /data --console-address :9090
volumeMounts:
- mountPath: /data
name: localvolume # Corresponds to the `spec.volumes` Persistent Volume
ports:
- containerPort: 9090
protocol: TCP
name: console
- containerPort: 9000
protocol: TCP
name: s3
volumes:
- name: localvolume
---
apiVersion: v1
kind: Service
metadata:
labels:
app: minio
name: minio
namespace: minio-dev # Change this value to match the namespace metadata.name
spec:
ports:
- port: 9090
protocol: TCP
targetPort: 9090
name: console
- port: 9000
protocol: TCP
targetPort: 9000
name: s3
selector:
app: minio
9 changes: 9 additions & 0 deletions helm/examples/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ deployer:
tag: 0.0.1-alpha
app:
config:
application.storage.apps.configuration.namespaceprefix: sga-
application.storage.apps.configuration.deployer-runtime.image: public.ecr.aws/y3i6u2n7/datastax-public/sga-runtime:0.0.1-alpha
application.storage.apps.configuration.deployer-runtime.image-pull-policy: IfNotPresent
agentResources: {}
clusterRuntime:
kubernetes:
namespace-prefix: sga-
image: public.ecr.aws/y3i6u2n7/datastax-public/sga-runtime:0.0.1-alpha
image-pull-policy: IfNotPresent
codeStorage:
type: s3
endpoint: http://minio.minio-dev.svc.cluster.local:9000
Expand Down

0 comments on commit dd87099

Please sign in to comment.