Skip to content

Commit

Permalink
Use DSPA custom ca cert on MLMD and Persistence Agent clients
Browse files Browse the repository at this point in the history
Signed-off-by: Helber Belmiro <[email protected]>
  • Loading branch information
hbelmiro committed Nov 4, 2024
1 parent 0e775db commit 40ca5ed
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/internal/persistence-agent/deployment.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ spec:
- "--namespace={{.Namespace}}"
- "--mlPipelineServiceHttpPort=8888"
- "--mlPipelineServiceGRPCPort=8887"
{{ if and .CustomCABundle .PodToPodTLS }}
- "--caCertPath={{ .PiplinesCABundleMountPath }}"
{{ end }}
livenessProbe:
exec:
command:
Expand Down Expand Up @@ -96,6 +99,10 @@ spec:
- mountPath: /var/run/secrets/kubeflow/tokens/persistenceagent-sa-token
name: persistenceagent-sa-token
subPath: ds-pipeline-persistenceagent-{{.Name}}-token
{{ if and .CustomCABundle .PodToPodTLS }}
- mountPath: {{ .CustomCABundleRootMountPath }}
name: ca-bundle
{{ end }}
serviceAccountName: ds-pipeline-persistenceagent-{{.Name}}
volumes:
- name: persistenceagent-sa-token
Expand All @@ -105,3 +112,8 @@ spec:
audience: pipelines.kubeflow.org
expirationSeconds: 3600
path: ds-pipeline-persistenceagent-{{.Name}}-token
{{ if and .CustomCABundle .PodToPodTLS }}
- name: ca-bundle
configMap:
name: {{ .CustomCABundle.ConfigMapName }}
{{ end }}

0 comments on commit 40ca5ed

Please sign in to comment.