summaryrefslogtreecommitdiff
path: root/contrib/k8s-emc/_graveyard_/ingress-ds.yml
blob: 885a81200de22f4bdcfcaf418b16749ae97e8ee3 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
apiVersion: apps/v1
kind: DaemonSet
metadata:
  namespace: emc
  name: ingress-nginx-controller
  labels:
    app: nginx
    tier: ingress
spec:
  selector:
    matchLabels:
      app: nginx
      tier: ingress
  template:
    metadata:
      labels:
        app: nginx
        tier: ingress
      annotations:
        prometheus.io/port: '10254'
        prometheus.io/scrape: 'true'
    spec:
      serviceAccountName: ingress-nginx
      nodeSelector:
        streaming.spreadspace.org/zone: dist-lb
      hostNetwork: true
      dnsPolicy: ClusterFirstWithHostNet
      containers:
      - name: nginx-controller
        image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.18.0
        args:
        - /nginx-ingress-controller
        - --default-backend-service=$(POD_NAMESPACE)/ingress-default-http-backend
        - --configmap=$(POD_NAMESPACE)/ingress-nginx-config
        - --tcp-services-configmap=$(POD_NAMESPACE)/ingress-tcp-config
        - --udp-services-configmap=$(POD_NAMESPACE)/ingress-udp-config
        - --annotations-prefix=nginx.ingress.kubernetes.io
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
        ports:
        - name: http
          containerPort: 80
        - name: https
          containerPort: 443
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 10254
            scheme: HTTP
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 10254
            scheme: HTTP
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1