Skip to content

Instantly share code, notes, and snippets.

@sgringwe
Last active February 12, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgringwe/24823673f777697cae713717e46e2285 to your computer and use it in GitHub Desktop.
Save sgringwe/24823673f777697cae713717e46e2285 to your computer and use it in GitHub Desktop.
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: ingress-lister
namespace: monitoring
labels:
app: ingress-lister
spec:
schedule: "0 17 * * *" # daily
jobTemplate:
spec:
template:
metadata:
labels:
app: ingress-lister
spec:
restartPolicy: Never
serviceAccountName: ingress-lister
containers:
- name: ingress-lister
image: "docker.io/yourname/yourdockerimage:latest"
imagePullPolicy: Always
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment