2020-02-20 17:07:12 +00:00
|
|
|
apiVersion: apps/v1
|
2020-02-12 15:50:45 +00:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: kardbot
|
|
|
|
name: kardbot
|
|
|
|
namespace: karaokards
|
|
|
|
spec:
|
|
|
|
progressDeadlineSeconds: 600
|
|
|
|
replicas: 1
|
|
|
|
revisionHistoryLimit: 10
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
run: kardbot
|
|
|
|
strategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxSurge: 25%
|
|
|
|
maxUnavailable: 25%
|
|
|
|
type: RollingUpdate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
creationTimestamp: null
|
|
|
|
labels:
|
|
|
|
run: kardbot
|
|
|
|
spec:
|
|
|
|
containers:
|
2020-02-21 18:28:11 +00:00
|
|
|
- image: imartyn/karaokardbot:devel
|
2020-02-12 15:50:45 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
name: kardbot
|
2020-02-14 10:42:38 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 5353
|
2020-02-12 15:50:45 +00:00
|
|
|
resources: {}
|
|
|
|
terminationMessagePath: /dev/termination-log
|
|
|
|
terminationMessagePolicy: File
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/twitch/
|
|
|
|
name: oauth
|
|
|
|
- mountPath: /app/strings.json
|
|
|
|
name: extracards
|
|
|
|
subPath: strings.json
|
2020-02-21 18:28:11 +00:00
|
|
|
- mountPath: /app/config.json
|
|
|
|
name: config
|
|
|
|
subPath: config.json
|
2020-02-20 17:07:12 +00:00
|
|
|
- mountPath: /data
|
|
|
|
name: data
|
2020-02-12 15:50:45 +00:00
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
restartPolicy: Always
|
|
|
|
schedulerName: default-scheduler
|
|
|
|
securityContext: {}
|
|
|
|
terminationGracePeriodSeconds: 30
|
|
|
|
volumes:
|
|
|
|
- name: oauth
|
|
|
|
secret:
|
|
|
|
defaultMode: 420
|
|
|
|
secretName: twitchoauth
|
|
|
|
- configMap:
|
|
|
|
defaultMode: 420
|
|
|
|
items:
|
|
|
|
- key: strings.json
|
|
|
|
path: strings.json
|
2020-02-21 18:28:11 +00:00
|
|
|
name: kardconfig
|
2020-02-12 15:50:45 +00:00
|
|
|
name: extracards
|
2020-02-21 18:28:11 +00:00
|
|
|
- configMap:
|
|
|
|
defaultMode: 420
|
|
|
|
items:
|
|
|
|
- key: config.json
|
|
|
|
path: config.json
|
|
|
|
name: kardconfig
|
|
|
|
name: config
|
2020-02-20 17:07:12 +00:00
|
|
|
- name: data
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: kkard-data
|