Skip to content

Instantly share code, notes, and snippets.

@marcosdiez
Created January 30, 2019 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosdiez/d6943375c6d8b1dc607529e42d01f44e to your computer and use it in GitHub Desktop.
Save marcosdiez/d6943375c6d8b1dc607529e42d01f44e to your computer and use it in GitHub Desktop.
alb-ingress-controller.yaml
# Application Load Balancer (ALB) Ingress Controller Deployment Manifest.
# This manifest details sensible defaults for deploying an ALB Ingress Controller.
# GitHub: https://github.com/kubernetes-sigs/aws-alb-ingress-controller
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: alb-ingress-controller
name: alb-ingress-controller
# Namespace the ALB Ingress Controller should run in. Does not impact which
# namespaces it's able to resolve ingress resource for. For limiting ingress
# namespace scope, see --watch-namespace.
namespace: kube-system
spec:
selector:
matchLabels:
app: alb-ingress-controller
template:
metadata:
labels:
app: alb-ingress-controller
spec:
containers:
- name: alb-ingress-controller
args:
# - /server
- --default-tags=Creator=mdiez,Decription=Test ALB
# Limit the namespace where this ALB Ingress Controller deployment will
# resolve ingress resources. If left commented, all namespaces are used.
# - --watch-namespace=your-k8s-namespace
# Setting the ingress-class flag below ensures that only ingress resources with the
# annotation kubernetes.io/ingress.class: "alb" are respected by the controller. You may
# choose any class you'd like for this controller to respect.
- --ingress-class=alb
- --force-alb-name=k8s-alb
# REQUIRED
# Name of your cluster. Used when naming resources created
# by the ALB Ingress Controller, providing distinction between
# clusters.
- --cluster-name=devCluster
# - --cluster-name=edrk8e
# AWS VPC ID this ingress controller will use to create AWS resources.
# If unspecified, it will be discovered from ec2metadata.
# - --aws-vpc-id=vpc-xxxxxx
# AWS region this ingress controller will operate in.
# If unspecified, it will be discovered from ec2metadata.
# List of regions: http://docs.aws.amazon.com/general/latest/gr/rande.html#vpc_region
# - --aws-region=us-west-1
# Enables logging on all outbound requests sent to the AWS API.
# If logging is desired, set to true.
# - ---aws-api-debug
# Maximum number of times to retry the aws calls.
# defaults to 10.
# - --aws-max-retries=10
env:
# AWS key id for authenticating with the AWS API.
# This is only here for examples. It's recommended you instead use
# a project like kube2iam for granting access.
- name: AWS_ACCESS_KEY_ID
value: "XXXXXXXXXXXXXXXXXXXXXX"
# AWS key secret for authenticating with the AWS API.
# This is only here for examples. It's recommended you instead use
# a project like kube2iam for granting access.
- name: AWS_SECRET_ACCESS_KEY
value: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXx"
# Repository location of the ALB Ingress Controller.
# image: docker.io/amazon/aws-alb-ingress-controller:v1.1.0
#image: 636700535426.dkr.ecr.us-east-1.amazonaws.com/mdieztest:alb_1
image: docker.io/marcosdiez/aws-alb-ingress-controller:v1.1.0-single-alb
imagePullPolicy: Always
#name: server
#resources: {}
#terminationMessagePath: /dev/termination-log
#dnsPolicy: ClusterFirst
#restartPolicy: Always
#securityContext: {}
#terminationGracePeriodSeconds: 30
#serviceAccountName: alb-ingress
#serviceAccount: alb-ingress
serviceAccountName: alb-ingress-controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment