Created
November 24, 2021 10:09
-
-
Save janakiramm/7eb295185a157add51c03984a2e5a696 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Triton deployment | |
cat <<EOF > triton-deploy.yaml | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: triton | |
name: triton | |
namespace: model-server | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: triton | |
template: | |
metadata: | |
labels: | |
app: triton | |
spec: | |
containers: | |
- image: nvcr.io/nvidia/tritonserver:21.09-py3 | |
name: tritonserver | |
command: ["/bin/bash"] | |
args: ["-c", "cp /var/run/secrets/kubernetes.io/serviceaccount/ca.crt /usr/local/share/ca-certificates && update-ca-certificates && /opt/tritonserver/bin/tritonserver --model-store=s3://https://minio.model-registry.svc.cluster.local:443/models/ --strict-model-config=false"] | |
env: | |
- name: AWS_ACCESS_KEY_ID | |
valueFrom: | |
secretKeyRef: | |
name: aws-credentials | |
key: AWS_ACCESS_KEY_ID | |
- name: AWS_SECRET_ACCESS_KEY | |
valueFrom: | |
secretKeyRef: | |
name: aws-credentials | |
key: AWS_SECRET_ACCESS_KEY | |
ports: | |
- containerPort: 8000 | |
name: http | |
- containerPort: 8001 | |
name: grpc | |
- containerPort: 8002 | |
name: metrics | |
volumeMounts: | |
- mountPath: /dev/shm | |
name: dshm | |
volumes: | |
- name: dshm | |
emptyDir: | |
medium: Memory | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @janakiramm
Thanks for your script to guide how to deploy MinIO from S3 to Triton server.
I am wondering if my minIO and Triton server are on localhost, is it possible to deploy Triton with MinIO as the model store as well?
Thank you!!