all repos — janny @ 0d6df5bfac2c32e7db092d8ed4ecd19811ef25f3

clean up Kubernetes resources after a set TTL

deploy/deployment.yaml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
apiVersion: apps/v1
kind: Deployment
metadata:
  name: janny
  labels:
    app: janny
spec:
  selector:
    matchLabels:
      app: janny
  replicas: 1
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: janny
    spec:
      serviceAccountName: janny
      containers:
        - name: janny
          image: janny:latest
          imagePullPolicy: IfNotPresent
          args:
            - "--included-resources"
            - "deployments,services,ingresses"
            - "--namespaces"
            - "default"