This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from 3scale/feat/enable-service-account-iam-rol…
…e-auth feat: enable IAM role based AWS authentication
- Loading branch information
Showing
12 changed files
with
175 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: aws-nlb-helper-operator | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
name: aws-nlb-helper-operator | ||
template: | ||
metadata: | ||
labels: | ||
name: aws-nlb-helper-operator | ||
spec: | ||
serviceAccountName: aws-nlb-helper-operator | ||
containers: | ||
- name: aws-nlb-helper-operator | ||
# Replace this with the built image name | ||
image: REPLACE_IMAGE | ||
command: | ||
- aws-nlb-helper-operator | ||
imagePullPolicy: Always | ||
env: | ||
- name: OPERATOR_NAME | ||
value: "aws-nlb-helper-operator" | ||
- name: WATCH_NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name | ||
- name: AWS_REGION | ||
valueFrom: | ||
secretKeyRef: | ||
name: aws-nlb-helper-iam | ||
key: AWS_REGION | ||
resources: | ||
limits: | ||
cpu: 150m | ||
memory: 128Mi | ||
requests: | ||
cpu: 50m | ||
memory: 64Mi | ||
securityContext: | ||
# Required for accessing the service acccount token | ||
fsGroup: 65534 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: aws-nlb-helper-operator | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
- services | ||
- services/finalizers | ||
- endpoints | ||
- persistentvolumeclaims | ||
- events | ||
- configmaps | ||
- secrets | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
- daemonsets | ||
- replicasets | ||
- statefulsets | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- watch | ||
- apiGroups: | ||
- monitoring.coreos.com | ||
resources: | ||
- servicemonitors | ||
verbs: | ||
- "get" | ||
- "create" | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments/finalizers | ||
resourceNames: | ||
- aws-nlb-helper-operator | ||
verbs: | ||
- "update" | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- replicasets | ||
- deployments | ||
verbs: | ||
- get |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: aws-nlb-helper-operator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: aws-nlb-helper-operator | ||
roleRef: | ||
kind: Role | ||
name: aws-nlb-helper-operator | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
annotations: | ||
# Replace this with the AWS role ARN created for the AWS NLB helper | ||
eks.amazonaws.com/role-arn: AWS_IAM_ROLE_ARN | ||
name: aws-nlb-helper-operator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ package version | |
|
||
var ( | ||
// Version of the aws-nlb-helper operator | ||
Version = "0.0.1" | ||
Version = "0.0.4" | ||
) |