Skip to content

Commit f2cfcc0

Browse files
authored
[CHORE](foundation): Add pod identity service account (#7502)
## Summary - create the Foundation ServiceAccount when the service is enabled - run the Foundation pod under that account so EKS Pod Identity can inject AWS credentials and region ## Validation - rendered the chart with Foundation enabled - confirmed the Deployment references the emitted ServiceAccount
1 parent f56f4b1 commit f2cfcc0

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

k8s/distributed-chroma/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ apiVersion: v2
1616
name: distributed-chroma
1717
description: A helm chart for distributed Chroma
1818
type: application
19-
version: 0.1.91
19+
version: 0.1.92
2020
appVersion: "0.4.24"
2121
keywords:
2222
- chroma

k8s/distributed-chroma/templates/foundation-service.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{{- if (and .Values.foundationService .Values.foundationService.enabled) -}}
22
---
33
apiVersion: v1
4+
kind: ServiceAccount
5+
metadata:
6+
name: foundation-service-serviceaccount
7+
namespace: {{ .Values.namespace }}
8+
---
9+
apiVersion: v1
410
kind: ConfigMap
511
metadata:
612
name: foundation-server-config
@@ -25,6 +31,7 @@ spec:
2531
labels:
2632
app: foundation-server
2733
spec:
34+
serviceAccountName: foundation-service-serviceaccount
2835
containers:
2936
- name: foundation-server
3037
image: "{{ .Values.foundationService.image.repository }}:{{ .Values.foundationService.image.tag }}"

0 commit comments

Comments
 (0)