karaokards/deployments/kubernetes/deploy.yaml

63 lines
1.5 KiB
YAML
Raw Normal View History

apiVersion: apps/v1
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:
- image: imartyn/karaokardbot:0.0.3-linux-amd64
imagePullPolicy: IfNotPresent
name: kardbot
2020-02-14 10:42:38 +00:00
ports:
- name: web
containerPort: 5353
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/twitch/
name: oauth
- mountPath: /app/strings.json
name: extracards
subPath: strings.json
- mountPath: /data
name: data
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
name: extracards
name: extracards
- name: data
persistentVolumeClaim:
claimName: kkard-data