forked from zalando-incubator/kube-aws-iam-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment_with_role.yaml
49 lines (49 loc) · 1.32 KB
/
deployment_with_role.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-aws-iam-controller
namespace: kube-system
labels:
application: kube-aws-iam-controller
version: latest
spec:
replicas: 1
selector:
matchLabels:
application: kube-aws-iam-controller
template:
metadata:
labels:
application: kube-aws-iam-controller
version: latest
spec:
serviceAccountName: kube-aws-iam-controller
containers:
- name: kube-aws-iam-controller
image: registry.opensource.zalan.do/teapot/kube-aws-iam-controller:latest
env:
# must be set for the AWS SDK/AWS CLI to find the credentials file.
- name: AWS_SHARED_CREDENTIALS_FILE
value: /meta/aws-iam/credentials
volumeMounts:
- name: aws-iam-credentials
mountPath: /meta/aws-iam
readOnly: true
resources:
limits:
cpu: 25m
memory: 100Mi
requests:
cpu: 25m
memory: 100Mi
volumes:
- name: aws-iam-credentials
secret:
secretName: kube-aws-iam-controller-iam-role # name of the AWSIAMRole resource
---
apiVersion: zalando.org/v1
kind: AWSIAMRole
metadata:
name: kube-aws-iam-controller-iam-role
spec:
roleReference: <arn-of-the-iam-role> # AWS IAM role name or full ARN