imfreedom/k8s-cluster

Update minio

2020-12-31, Gary Kramlich
cbf061580037
Update minio
# wasdead is a discord bot that auto announces live stream updates.
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
namespace: reaperworld
name: wasdead
spec:
minAvailable: 1
selector:
matchLabels:
app: wasdead
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: reaperworld
name: wasdead
labels:
app: wasdead
keel.sh/policy: force
keel.sh/trigger: poll
annotations:
keel.sh/pollSchedule: "@every 10m"
spec:
replicas: 1
selector:
matchLabels:
app: wasdead
strategy:
type: Recreate
template:
metadata:
labels:
app: wasdead
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- www
topologyKey: failure-domain.beta.kubernetes.io/region
weight: 100
containers:
- name: wasdead
image: rwgrim/wasdead:latest
imagePullPolicy: Always
env:
- name: DISCORD_TOKEN
valueFrom:
secretKeyRef:
name: wasdead
key: discord_token
- name: TWITCH_CLIENT_ID
valueFrom:
secretKeyRef:
name: wasdead
key: twitch_client_id
- name: TWITCH_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: wasdead
key: twitch_client_secret
- name: YOUTUBE_API_KEY
valueFrom:
secretKeyRef:
name: wasdead
key: youtube_api_key
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
volumeMounts:
- mountPath: /db
name: wasdead
readOnly: false
securityContext:
fsGroup: 9000
runAsUser: 9000
volumes:
- name: wasdead
persistentVolumeClaim:
claimName: wasdead
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: reaperworld
name: wasdead
labels:
app: wasdead
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---