Skip to content

Instantly share code, notes, and snippets.

@oindrillac
Last active July 13, 2022 14:47
Show Gist options
  • Save oindrillac/bd7bab14b189d22bb2af6b42fa23901d to your computer and use it in GitHub Desktop.
Save oindrillac/bd7bab14b189d22bb2af6b42fa23901d to your computer and use it in GitHub Desktop.
apiVersion: machinelearning.seldon.io/v1
kind: SeldonDeployment
metadata:
name: ttm-model-test2
spec:
name: ttm-model-test2
predictors:
- componentSpecs:
- spec:
containers:
- image: quay.io/supathak/github-ttm-test:v2
name: ttm-model-test2-clf
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 1Gi
limits:
cpu: 500m
memory: 2Gi
env:
- name: GUNICORN_WORKERS
value: '1'
- name: GUNICORN_THREADS
value: '2'
- name: S3_ENDPOINT
valueFrom:
secretKeyRef:
key: S3_ENDPOINT
name: thoth-github-pr-ttm
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
key: S3_ACCESS_KEY
name: thoth-github-pr-ttm
- name: S3_SECRET_KEY
valueFrom:
secretKeyRef:
key: S3_SECRET_KEY
name: thoth-github-pr-ttm
- name: S3_BUCKET
valueFrom:
secretKeyRef:
key: S3_BUCKET
name: thoth-github-pr-ttm
- name: S3_MODEL_KEY
valueFrom:
secretKeyRef:
key: S3_MODEL_KEY
name: thoth-github-pr-ttm
svcOrchSpec:
resources:
requests:
cpu: 100m
memory: 1Gi
limits:
cpu: 500m
memory: 2Gi
graph:
children: []
endpoint:
type: REST
name: ttm-model-test2-clf
type: MODEL
name: ttm-model-test2-predictor
replicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment