all repos — janny @ e7f6e7ae2e5128a4f9fa6f2f4b0eb8c8ae558f4d

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"