aboutsummaryrefslogtreecommitdiff
path: root/k8s/job.yml
blob: e5cf4ebb410801a18ff782db14241ab9639ffeb0 (plain)
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
29
30
31
apiVersion: batch/v1
kind: Job
metadata:
  name: christinewebsite-ping
  namespace: apps
  labels:
    app: christinewebsite
spec:
  template:
    spec:
      containers:
      - name: ping-bing
        image: xena/alpine
        command:
          - "busybox"
          - "wget"
          - "-O"
          - "-"
          - "-q"
          - "https://www.bing.com/ping?sitemap=https://christine.website/sitemap.xml"
      - name: ping-google
        image: xena/alpine
        command:
          - "busybox"
          - "wget"
          - "-O"
          - "-"
          - "-q"
          - "https://www.google.com/ping?sitemap=https://christine.website/sitemap.xml"
      restartPolicy: Never
  backoffLimit: 4