blob: 5b86979fe1fa34ed473ae403205823f22ee8171e [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:
16 prometheus.io/port: '10254'
17 prometheus.io/scrape: 'true'
18 spec:
19 serviceAccountName: nginx-ingress-serviceaccount
20 initContainers:
21 - command:
22 - sh
23 - -c
24 - sysctl -w net.core.somaxconn=32768; sysctl -w net.ipv4.ip_local_port_range="1024 65535"
25 image: alpine:3.6
26 imagePullPolicy: IfNotPresent
27 name: sysctl
28 securityContext:
29 privileged: true
30 containers:
31 - name: nginx-ingress-controller
32 image: quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.10.2
33 args:
34 - /nginx-ingress-controller
35 - --default-backend-service=$(POD_NAMESPACE)/default-http-backend
36 - --configmap=$(POD_NAMESPACE)/nginx-configuration
37 - --tcp-services-configmap=$(POD_NAMESPACE)/tcp-services
38 - --udp-services-configmap=$(POD_NAMESPACE)/udp-services
39 - --annotations-prefix=nginx.ingress.kubernetes.io
40 env:
41 - name: POD_NAME
42 valueFrom:
43 fieldRef:
44 fieldPath: metadata.name
45 - name: POD_NAMESPACE
46 valueFrom:
47 fieldRef:
48 fieldPath: metadata.namespace
49 ports:
50 - name: http
51 containerPort: 80
52 - name: https
53 containerPort: 443
54 livenessProbe:
55 failureThreshold: 3
56 httpGet:
57 path: /healthz
58 port: 10254
59 scheme: HTTP
60 initialDelaySeconds: 10
61 periodSeconds: 10
62 successThreshold: 1
63 timeoutSeconds: 1
64 readinessProbe:
65 failureThreshold: 3
66 httpGet:
67 path: /healthz
68 port: 10254
69 scheme: HTTP
70 periodSeconds: 10
71 successThreshold: 1
72 timeoutSeconds: 1