imfreedom/k8s-cluster

4e5cc0ed6a50
Parents 2ecc0a2ee5ef
Children c9994e3bd90b
Remove the wasdead bot as it's being retired
  • +0 -106
    50-wasdead.yaml
  • --- a/50-wasdead.yaml Sun Jan 03 06:48:18 2021 -0600
    +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
    @@ -1,106 +0,0 @@
    -# 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
    ----