Skip to content

Commit 5b57e85

Browse files
authored
Merge pull request #816 from mgoodness/kustomize
Add kustomization.yaml
2 parents 72962fc + e109d4e commit 5b57e85

File tree

3 files changed

+20
-24
lines changed

3 files changed

+20
-24
lines changed

docs/examples/alb-ingress-controller.yaml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,17 @@ metadata:
1212
# namespace scope, see --watch-namespace.
1313
namespace: kube-system
1414
spec:
15-
replicas: 1
1615
selector:
1716
matchLabels:
1817
app: alb-ingress-controller
19-
strategy:
20-
rollingUpdate:
21-
maxSurge: 1
22-
maxUnavailable: 1
23-
type: RollingUpdate
2418
template:
2519
metadata:
26-
creationTimestamp: null
2720
labels:
2821
app: alb-ingress-controller
2922
spec:
3023
containers:
31-
- args:
24+
- name: alb-ingress-controller
25+
args:
3226
# Limit the namespace where this ALB Ingress Controller deployment will
3327
# resolve ingress resources. If left commented, all namespaces are used.
3428
# - --watch-namespace=your-k8s-namespace
@@ -38,16 +32,17 @@ spec:
3832
# choose any class you'd like for this controller to respect.
3933
- --ingress-class=alb
4034

35+
# REQUIRED
4136
# Name of your cluster. Used when naming resources created
4237
# by the ALB Ingress Controller, providing distinction between
4338
# clusters.
44-
- --cluster-name=devCluster
39+
# - --cluster-name=devCluster
4540

4641
# AWS VPC ID this ingress controller will use to create AWS resources.
4742
# If unspecified, it will be discovered from ec2metadata.
4843
# - --aws-vpc-id=vpc-xxxxxx
4944

50-
# AWS region this ingress controller will operate in.
45+
# AWS region this ingress controller will operate in.
5146
# If unspecified, it will be discovered from ec2metadata.
5247
# List of regions: http://docs.aws.amazon.com/general/latest/gr/rande.html#vpc_region
5348
# - --aws-region=us-west-1
@@ -58,27 +53,18 @@ spec:
5853
# Maximum number of times to retry the aws calls.
5954
# defaults to 10.
6055
# - --aws-max-retries=10
61-
env:
56+
# env:
6257
# AWS key id for authenticating with the AWS API.
6358
# This is only here for examples. It's recommended you instead use
6459
# a project like kube2iam for granting access.
6560
#- name: AWS_ACCESS_KEY_ID
6661
# value: KEYVALUE
67-
62+
6863
# AWS key secret for authenticating with the AWS API.
6964
# This is only here for examples. It's recommended you instead use
7065
# a project like kube2iam for granting access.
7166
#- name: AWS_SECRET_ACCESS_KEY
7267
# value: SECRETVALUE
7368
# Repository location of the ALB Ingress Controller.
7469
image: docker.io/amazon/aws-alb-ingress-controller:v1.1.0
75-
imagePullPolicy: Always
76-
name: server
77-
resources: {}
78-
terminationMessagePath: /dev/termination-log
79-
dnsPolicy: ClusterFirst
80-
restartPolicy: Always
81-
securityContext: {}
82-
terminationGracePeriodSeconds: 30
83-
serviceAccountName: alb-ingress
84-
serviceAccount: alb-ingress
70+
serviceAccountName: alb-ingress-controller

docs/examples/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
commonLabels:
2+
app: alb-ingress-controller
3+
4+
namespace: kube-system
5+
6+
resources:
7+
- alb-ingress-controller.yaml
8+
- rbac-role.yaml

docs/examples/rbac-role.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
apiVersion: rbac.authorization.k8s.io/v1
23
kind: ClusterRole
34
metadata:
@@ -48,13 +49,14 @@ roleRef:
4849
name: alb-ingress-controller
4950
subjects:
5051
- kind: ServiceAccount
51-
name: alb-ingress
52+
name: alb-ingress-controller
5253
namespace: kube-system
5354
---
5455
apiVersion: v1
5556
kind: ServiceAccount
5657
metadata:
5758
labels:
5859
app: alb-ingress-controller
59-
name: alb-ingress
60+
name: alb-ingress-controller
6061
namespace: kube-system
62+
...

0 commit comments

Comments
 (0)