Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rhods #11

Merged
merged 35 commits into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e0afd01
add dspa instance
strangiato Jul 10, 2023
203df8d
update branch
strangiato Jul 10, 2023
65af919
add dsp instance
strangiato Jul 10, 2023
62afce0
remove pipeline run
strangiato Jul 18, 2023
7b34754
new line eof
strangiato Jul 18, 2023
b702e16
update to service
strangiato Jul 18, 2023
ad23caa
test copy obc job
strangiato Jul 20, 2023
89d9930
fix rbac
strangiato Jul 20, 2023
c8e0675
move job into overlay
strangiato Jul 20, 2023
1c3f9f5
switch to role
strangiato Jul 20, 2023
d9f9287
update namespaces
strangiato Jul 20, 2023
ab57947
add new line eof
strangiato Jul 20, 2023
6c0cbf1
update app details
strangiato Jul 20, 2023
e95d426
cr to role
strangiato Jul 20, 2023
76253d0
cleanup waves
strangiato Jul 20, 2023
ac2a5a1
fix sa ns
strangiato Jul 20, 2023
7109e04
update env vars
strangiato Jul 20, 2023
5b3d346
update namespace correctly
strangiato Jul 20, 2023
7003455
strip out extra stuff
strangiato Jul 20, 2023
68e2152
switch to tools pod
strangiato Jul 20, 2023
5efd7c4
test output
strangiato Jul 20, 2023
da85e53
update patch
strangiato Jul 20, 2023
f92f179
fix missing pipe
strangiato Jul 20, 2023
5ea3a07
fix wordwrap
strangiato Jul 20, 2023
c34a717
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Jul 21, 2023
2c7d77c
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Jul 21, 2023
b9f0076
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Jul 21, 2023
d6a3144
update to manual patch
strangiato Jul 21, 2023
e98c20d
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Aug 3, 2023
c37e189
revert to auto sync
strangiato Aug 3, 2023
eabe190
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Aug 3, 2023
a34a2e6
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Aug 3, 2023
be49c5f
[OpenShift Pipeline] Updating Values YAML Image tag to 301eae8-1-2023…
Aug 3, 2023
4097ad9
update to main branch
strangiato Aug 17, 2023
6b880e2
Merge branch 'main' into rhods
strangiato Aug 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/argocd/applications/base/datascience-buckets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ metadata:
name: datascience-buckets
spec:
destination:
namespace: mlops-demo-datascience
server: https://kubernetes.default.svc
project: mlops-demo-datascience
project: default
source:
path: environments/datascience/components/buckets/overlays/default
repoURL: patch-me-see-tenant-overlays
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: datascience-pipelines-instance
spec:
destination:
namespace: mlops-demo-pipelines
server: https://kubernetes.default.svc
project: mlops-demo-pipelines
source:
path: environments/pipelines/components/datascience-pipelines/overlays/default
repoURL: patch-me-see-tenant-overlays
targetRevision: patch-me-see-tenant-overlays
syncPolicy:
automated:
prune: false
selfHeal: true
3 changes: 2 additions & 1 deletion components/argocd/applications/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization

resources:
- datascience-buckets.yaml
- datascience-pipelines-instance.yaml
- grafana-applicationset.yaml
- iris-inference-service-applicationset.yaml
- iris-message-generator-applicationset.yaml
Expand All @@ -14,4 +15,4 @@ resources:
- mlops-demo-pipeline-tasks.yaml
- mlops-demo-pipelines-rbac.yaml
- mlops-demo-pipelines.yaml
- odh-application.yaml
# - odh-application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ resources:
- iris-inference-service-eventlistener-route.yaml
- iris-inference-service-imagestream.yaml
- iris-inference-service-pipeline.yaml
- iris-inference-service-pipelinerun.yaml
# - iris-inference-service-pipelinerun.yaml
- iris-inference-service-trigger-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ spec:
description: 3.9-ubi8
name: PYTHON_VERSION
type: string
- default: 'https://ds-pipeline-ui-mlops-demo-datascience.apps.cluster-rn5gs.rn5gs.sandbox742.opentlc.com/'
description: The endpoint URL for Kubeflow
- default: 'https://ds-pipeline-pipelines-definition.mlops-demo-pipelines.svc.cluster.local:8443/'
description: The endpoint URL for ds-pipeline-pipelines-definition
name: KUBEFLOW_ENDPOINT
type: string
tasks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
description: The location of the script to be executed
- name: KUBEFLOW_ENDPOINT
description: The endpoint URL for Kubeflow
default: "https://ds-pipeline-ui.mlops-demo-datascience.svc.cluster.local:8443"
default: "https://ds-pipeline-pipelines-definition:8443"
- name: DEFAULT_STORAGE_CLASS
description: The storage class Kubeflow will utilize for PVC creation
default: "ocs-storagecluster-ceph-rbd"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: mlops-demo-datascience

resources:
- model-bucket.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: batch/v1
kind: Job
metadata:
name: copy-obc
namespace: mlops-demo-datascience
generateName: copy-obc
annotations:
argocd.argoproj.io/hook: PostSync
spec:
template:
spec:
containers:
- name: copy-obc
image: image-registry.openshift-image-registry.svc:5000/openshift/tools
env:
- name: TARGET_NAMESPACE
value: 'mlops-demo-pipelines'
- name: OBC_NAME
value: 'iris-model'
command:
- /bin/bash
- -c
- |
echo "Copy secret ${OBC_NAME} to namespace ${TARGET_NAMESPACE}"
oc get secret ${OBC_NAME} -o json | \
jq 'del(.metadata["namespace","creationTimestamp","resourceVersion","selfLink","uid","ownerReferences","finalizers"])' | \
oc apply -f - -n ${TARGET_NAMESPACE}
echo "Copy configmap ${OBC_NAME} to namespace ${TARGET_NAMESPACE}"
oc get configmap ${OBC_NAME} -o json | \
jq 'del(.metadata["namespace","creationTimestamp","resourceVersion","selfLink","uid","ownerReferences","finalizers"])' | \
oc apply -f - -n ${TARGET_NAMESPACE}
restartPolicy: Never
serviceAccount: copy-obc
serviceAccountName: copy-obc
backoffLimit: 4
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- copy-obc-job.yaml
- rbac.yaml
- service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: copy-obc
namespace: mlops-demo-datascience
rules:
- apiGroups: [""]
resources:
- secrets
- configmaps
verbs:
- get
- list
- patch
- create
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: copy-obc
namespace: mlops-demo-datascience
subjects:
- kind: ServiceAccount
name: copy-obc
namespace: mlops-demo-datascience
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: copy-obc
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: copy-obc
namespace: mlops-demo-pipelines
rules:
- apiGroups: [""]
resources:
- secrets
- configmaps
verbs:
- get
- list
- patch
- create
- update
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: copy-obc
namespace: mlops-demo-pipelines
subjects:
- kind: ServiceAccount
name: copy-obc
namespace: mlops-demo-datascience
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: copy-obc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: copy-obc
namespace: mlops-demo-datascience
annotations:
argocd.argoproj.io/sync-wave: "-10"
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: mlops-demo-datascience

resources:
- ../../base
- copy-obc-job/
2 changes: 1 addition & 1 deletion environments/dev/charts/iris-inference-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ iris-inference-service:
repository: image-registry.openshift-image-registry.svc:5000/mlops-demo-pipelines/iris-inference-service
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "301eae8-1-20230803-222243"
tag: "301eae8-1-20230803-225748"
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- pipeline-defenition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: datasciencepipelinesapplications.opendatahub.io/v1alpha1
kind: DataSciencePipelinesApplication
metadata:
name: pipelines-definition
spec:
apiServer:
stripEOF: true
dbConfigConMaxLifetimeSec: 120
applyTektonCustomResource: true
deploy: true
enableSamplePipeline: false
autoUpdatePipelineDefaultVersion: true
archiveLogs: false
terminateStatus: Cancelled
enableOauth: true
trackArtifacts: true
collectMetrics: true
injectDefaultScript: true
database:
mariaDB:
deploy: true
pipelineDBName: mlpipeline
pvcSize: 10Gi
username: mlpipeline
objectStorage:
minio:
bucket: data-science-pipelines
deploy: true
image: quay.io/minio/minio:RELEASE.2023-06-19T19-52-50Z
pvcSize: 10Gi
persistenceAgent:
deploy: true
numWorkers: 2
scheduledWorkflow:
cronScheduleTimezone: UTC
deploy: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: mlops-demo-pipelines

resources:
- ../../base
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ iris-inference-service:
repository: image-registry.openshift-image-registry.svc:5000/mlops-demo-pipelines/iris-inference-service
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "301eae8-1-20230511-150435"
tag: "301eae8-1-20230803-225748"
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ iris-inference-service:
repository: image-registry.openshift-image-registry.svc:5000/mlops-demo-pipelines/iris-inference-service
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "301eae8-1-20230511-150435"
tag: "301eae8-1-20230803-225748"