Skip to content

Instantly share code, notes, and snippets.

@kjhenner
Created July 8, 2020 04:07
Show Gist options
  • Save kjhenner/df4ad9b8be947225f0c21fc428dfc649 to your computer and use it in GitHub Desktop.
Save kjhenner/df4ad9b8be947225f0c21fc428dfc649 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: starbucks-bot-debug
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: starbucks-bot-core
template:
metadata:
labels:
app: starbucks-bot-core
spec:
imagePullSecrets:
- name: regcred
nodeSelector:
"beta.kubernetes.io/os": linux
volumes:
- name: azurefileshare
azureFile:
secretName: azure-storage
shareName: models
readOnly: false
containers:
- name: starbucks-bot-core
image: kittai/ngchat-rasax:starbucksbot-0.0.1
imagePullPolicy: Always
volumeMounts:
- name: azurefileshare
mountPath: /mnt/models
readOnly: true
workingDir: /opt/seasalt/ngChat/bots/starbucks
#command: ['rasa', 'run', '--model', '/mnt/models/bots/starbucks/', '--credentials', 'credentials.yml', '--endpoints', 'endpoints.yml', '-vv']
command: ["/bin/bash", "-ec", "while :; do echo '.'; sleep 5 ; done"]
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 250m
memory: 2048Mi
ports:
- containerPort: 5005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment