## nginx configuration ## Ref: https://github.com/kubernetes/ingress/blob/master/controllers/nginx/configuration.md ## controller: kind: Deployment hostNetwork: true service: type: NodePort nodePorts: http: 30080 https: 30443 targetPorts: http: http https: https tolerations: - key: node-role.kubernetes.io/master operator: Equal value: "true" effect: NoSchedule - key: unschedulable operator: Equal value: "true" effect: NoSchedule affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: [ @apiserver@ ] podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app operator: In values: - nginx-ingress - key: component operator: In values: - controller topologyKey: kubernetes.io/hostname namespaces: [] replicaCount: 1 minAvailable: 1 metrics: enabled: true serviceMonitor.enabled: true # TCP service key:value pairs # Ref: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/tcp ## tcp: {} # 8080: "default/example-tcp-svc:9000" # UDP service key:value pairs # Ref: https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx/examples/udp ## udp: {} # 53: "kube-system/kube-dns:53"