Skip to content

Commit

Permalink
visualization server wants kubernetes serivce account too (kubeflow#2822
Browse files Browse the repository at this point in the history
)

* visualization server wants kubernetes serivce account too

* add ksa for visualization server and use this ksa for standalone and
hosted deployment of visualization server

* Use server name its ksa name

* add sa to pipeline.yaml
  • Loading branch information
jingzhang36 authored and Jeffwan committed Dec 9, 2020
1 parent 5be0346 commit 4d55eb4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ metadata:
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ml-pipeline-visualizationserver
labels:
app.kubernetes.io/name: {{ .Release.Name }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ml-pipeline
labels:
Expand Down Expand Up @@ -608,6 +615,7 @@ spec:
name: ml-pipeline-visualizationserver
ports:
- containerPort: 8888
serviceAccountName: ml-pipeline-visualizationserver
---
apiVersion: apps/v1beta2
kind: Deployment
Expand Down
1 change: 1 addition & 0 deletions manifests/kustomize/base/pipeline/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ resources:
- ml-pipeline-viewer-crd-deployment.yaml
- ml-pipeline-viewer-crd-sa.yaml
- ml-pipeline-visualization-deployment.yaml
- ml-pipeline-visualization-sa.yaml
- ml-pipeline-visualization-service.yaml
- pipeline-runner-role.yaml
- pipeline-runner-rolebinding.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ spec:
name: ml-pipeline-visualizationserver
ports:
- containerPort: 8888
serviceAccountName: ml-pipeline-visualizationserver
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: ml-pipeline-visualizationserver
2 changes: 1 addition & 1 deletion manifests/kustomize/gcp-workload-identity-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SYSTEM_GSA=${SYSTEM_GSA:-$CLUSTER_NAME-kfp-system}
USER_GSA=${USER_GSA:-$CLUSTER_NAME-kfp-user}

# Kubernetes Service Account (KSA)
SYSTEM_KSA=(ml-pipeline-ui)
SYSTEM_KSA=(ml-pipeline-ui ml-pipeline-visualizationserver)
USER_KSA=(pipeline-runner default) # default service account is used for container building, TODO: give it a specific name

cat <<EOF
Expand Down

0 comments on commit 4d55eb4

Please sign in to comment.