all repos — janny @ a5e17725e7d2ea9c0d165c5c9e96d5da10f782c0

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