You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.7 KiB

  1. # Application Load Balancer (ALB) Ingress Controller Deployment Manifest.
  2. # This manifest details sensible defaults for deploying an ALB Ingress Controller.
  3. # GitHub: https://github.com/coreos/alb-ingress-controller
  4. ---
  5. apiVersion: apps/v1
  6. kind: Deployment
  7. metadata:
  8. name: alb-ingress-controller
  9. labels:
  10. k8s-app: alb-ingress-controller
  11. # Namespace the ALB Ingress Controller should run in. Does not impact which
  12. # namespaces it's able to resolve ingress resource for. For limiting ingress
  13. # namespace scope, see --watch-namespace.
  14. namespace: {{ alb_ingress_controller_namespace }}
  15. spec:
  16. replicas: 1
  17. selector:
  18. matchLabels:
  19. k8s-app: alb-ingress-controller
  20. strategy:
  21. rollingUpdate:
  22. maxSurge: 1
  23. maxUnavailable: 1
  24. type: RollingUpdate
  25. template:
  26. metadata:
  27. creationTimestamp: null
  28. labels:
  29. k8s-app: alb-ingress-controller
  30. spec:
  31. containers:
  32. - args:
  33. # Limit the namespace where this ALB Ingress Controller deployment will
  34. # resolve ingress resources. If left commented, all namespaces are used.
  35. #- --watch-namespace=your-k8s-namespace
  36. # Setting the ingress-class flag below will ensure that only ingress resources with the
  37. # annotation kubernetes.io/ingress.class: "alb" are respected by the controller. You may
  38. # choose any class you'd like for this controller to respect.
  39. - --ingress-class=alb
  40. # Name of your cluster. Used when naming resources created
  41. # by the ALB Ingress Controller, providing distinction between
  42. # clusters.
  43. - --cluster-name={{ cluster_name }}
  44. # Enables logging on all outbound requests sent to the AWS API.
  45. # If logging is desired, set to true.
  46. # - ---aws-api-debug
  47. {% if alb_ingress_aws_debug %}
  48. - --aws-api-debug
  49. {% endif %}
  50. # Maximum number of times to retry the aws calls.
  51. # defaults to 10.
  52. # - --aws-max-retries=10
  53. # AWS region this ingress controller will operate in.
  54. # If unspecified, it will be discovered from ec2metadata.
  55. # List of regions: http://docs.aws.amazon.com/general/latest/gr/rande.html#vpc_region
  56. {% if alb_ingress_aws_region is defined %}
  57. - --aws-region={{ alb_ingress_aws_region }}
  58. {% endif %}
  59. image: "{{ alb_ingress_image_repo }}:{{ alb_ingress_image_tag }}"
  60. imagePullPolicy: {{ k8s_image_pull_policy }}
  61. name: server
  62. resources: {}
  63. terminationMessagePath: /dev/termination-log
  64. dnsPolicy: ClusterFirst
  65. restartPolicy: Always
  66. securityContext: {}
  67. terminationGracePeriodSeconds: 30
  68. {% if rbac_enabled %}
  69. serviceAccountName: alb-ingress
  70. {% endif %}