github.com/jlmeeker/kismatic@v1.10.1-0.20180612190640-57f9005a1f1a/ansible/roles/nginx-ingress/templates/default-backend.yaml (about) 1 --- 2 apiVersion: apps/v1 3 kind: DaemonSet 4 metadata: 5 name: default-http-backend 6 namespace: kube-system 7 labels: 8 app: default-http-backend 9 spec: 10 selector: 11 matchLabels: 12 app: default-http-backend 13 template: 14 metadata: 15 labels: 16 app: default-http-backend 17 annotations: 18 kismatic/version: "{{ kismatic_short_version }}" 19 spec: 20 nodeSelector: 21 kismatic/ingress: "true" 22 terminationGracePeriodSeconds: 60 23 containers: 24 - name: default-http-backend 25 # Any image is permissable as long as: 26 # 1. It serves a 404 page at / 27 # 2. It serves 200 on a /healthz endpoint 28 image: {{ images.defaultbackend }} 29 imagePullPolicy: IfNotPresent 30 livenessProbe: 31 httpGet: 32 path: /healthz 33 port: 8080 34 scheme: HTTP 35 initialDelaySeconds: 30 36 timeoutSeconds: 5 37 ports: 38 - containerPort: 8080 39 resources: 40 limits: 41 cpu: 10m 42 memory: 20Mi 43 requests: 44 cpu: 10m 45 memory: 20Mi 46 --- 47 apiVersion: v1 48 kind: Service 49 metadata: 50 name: default-http-backend 51 namespace: kube-system 52 spec: 53 ports: 54 # the port that this service should serve on 55 - port: 80 56 targetPort: 8080 57 selector: 58 app: default-http-backend