blob: 05b720b8ae6f178e217577934a47c8424bf95015 [file] [log] [blame]
Richard Jankowskic3c291c2018-02-02 13:57:33 -05001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: nginx-ingress-controller
Richard Jankowskid4454382018-02-08 16:21:43 -05005 namespace: voltha
Richard Jankowskic3c291c2018-02-02 13:57:33 -05006spec:
7 replicas: 1
8 selector:
9 matchLabels:
10 app: ingress-nginx
11 template:
12 metadata:
13 labels:
14 app: ingress-nginx
15 annotations:
Stephane Barbarie2d4e07f2018-03-26 16:46:45 -040016 cni: "calico"
Richard Jankowskic3c291c2018-02-02 13:57:33 -050017 prometheus.io/port: '10254'
18 prometheus.io/scrape: 'true'
19 spec:
20 serviceAccountName: nginx-ingress-serviceaccount
21 initContainers:
22 - command:
23 - sh
24 - -c
25 - sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range="1024 65535"
26 image: alpine:3.6
27 imagePullPolicy: IfNotPresent
28 name: sysctl
29 securityContext:
30 privileged: true
31 containers:
32 - name: nginx-ingress-controller
33 image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.10.2
34 args:
35 - /nginx-ingress-controller
36 - --default-backend-service=$(POD_NAMESPACE)/default-http-backend
37 - --configmap=$(POD_NAMESPACE)/nginx-configuration
38 - --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
39 - --udp-services-configmap=$(POD_NAMESPACE)/udp-services
40 - --annotations-prefix=nginx.ingress.kubernetes.io
41 env:
42 - name: POD_NAME
43 valueFrom:
44 fieldRef:
45 fieldPath: metadata.name
46 - name: POD_NAMESPACE
47 valueFrom:
48 fieldRef:
49 fieldPath: metadata.namespace
50 ports:
51 - name: http
52 containerPort: 80
53 - name: https
54 containerPort: 443
55 livenessProbe:
56 failureThreshold: 3
57 httpGet:
58 path: /healthz
59 port: 10254
60 scheme: HTTP
61 initialDelaySeconds: 10
62 periodSeconds: 10
63 successThreshold: 1
64 timeoutSeconds: 1
65 readinessProbe:
66 failureThreshold: 3
67 httpGet:
68 path: /healthz
69 port: 10254
70 scheme: HTTP
71 periodSeconds: 10
72 successThreshold: 1
73 timeoutSeconds: 1