Skip to content

Commit

Permalink
fix: use service accounts, not kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Aug 30, 2024
1 parent b33c119 commit d366fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
18 changes: 1 addition & 17 deletions charts/mint/templates/ensemble-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ spec:
selector:
app: {{ include "mint.prefix" . }}-ensemble-manager
---
apiVersion: v1
kind: Secret
metadata:
name: {{ include "mint.prefix" . }}-kubeconfig
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/resource-policy": keep
type: Opaque
data:
config: {{ .Files.Get "kubeconfig" | b64enc | quote }}
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -52,6 +41,7 @@ spec:
labels:
app: {{ include "mint.prefix" . }}-ensemble-manager
spec:
serviceAccountName: {{ .Values.components.ensemble_manager.serviceAccountName }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand All @@ -65,9 +55,6 @@ spec:
- name: storage
persistentVolumeClaim:
claimName: {{ include "mint.prefix" . }}-ensemble-manager
- name: kubeconfig
secret:
secretName: {{ include "mint.prefix" . }}-kubeconfig
initContainers:
- name: volume-mount-hack
image: busybox
Expand Down Expand Up @@ -101,9 +88,6 @@ spec:
- name: config
mountPath: /home/node/app/config.json
subPath: config.json
- name: kubeconfig
mountPath: /home/node/.kube
readOnly: true
- name: files
{{- with .Values.components.ensemble_manager }}
image: "nginx"
Expand Down
1 change: 1 addition & 0 deletions charts/mint/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ components:
tag: 17dcd41412f97525425e4377b8c0dbd6e2088458
pullPolicy: IfNotPresent
resources: {}
serviceAccountName: default
environment:
data_dir: /var/mint
data_url: http://localhost:30010/data
Expand Down

0 comments on commit d366fb6

Please sign in to comment.