all repos — janny @ 4f685e1161bc6eb5e47c4922d15d620d28bccd0f

clean up Kubernetes resources after a set TTL

deploy/deployment.yaml (view raw)

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