Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: nginx-ingress-controller |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 5 | namespace: voltha |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 6 | spec: |
| 7 | replicas: 1 |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: ingress-nginx |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: ingress-nginx |
| 15 | annotations: |
Stephane Barbarie | 2d4e07f | 2018-03-26 16:46:45 -0400 | [diff] [blame] | 16 | cni: "calico" |
Richard Jankowski | c3c291c | 2018-02-02 13:57:33 -0500 | [diff] [blame] | 17 | 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 |