-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdeploy-model-registry.sh
More file actions
executable file
·47 lines (42 loc) · 1.08 KB
/
deploy-model-registry.sh
File metadata and controls
executable file
·47 lines (42 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
# Load .env file
set -a
. .env
# Arguments: name_of_registry
if [ "$#" -ne 1 ]; then
echo "Usage: deploy-model-registry.sh name_of_registry"
exit 1
fi
MODEL_REGISTRY_NAME="$1"
# Create the application object
cat <<EOF | oc apply -f -
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: model-registry-${MODEL_REGISTRY_NAME}
namespace: ${ARGOCD_NAMESPACE}
annotations:
argocd.argoproj.io/compare-options: IgnoreExtraneous
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
project: default
destination:
server: 'https://kubernetes.default.svc'
namespace: ${NAMESPACE_NAME}
source:
path: gitops/model-registry
repoURL: https://github.com/alpha-hack-program/model-serving-utils.git
targetRevision: main
helm:
values: |
registry:
name: ${MODEL_REGISTRY_NAME}
registryDb:
databaseName: ${DATABASE_NAME}
databaseUser: ${DATABASE_USER}
databasePassword: ${DATABASE_PASSWORD}
syncPolicy:
automated:
# prune: true
selfHeal: true
EOF