This repository has been archived by the owner on Jul 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
operator.yaml
79 lines (79 loc) · 1.63 KB
/
operator.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: microdc-dynamodb-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: microdc-dynamodb-operator
subjects:
- kind: ServiceAccount
name: microdc-dynamodb-operator
namespace: microdc
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: microdc-dynamodb-operator
rules:
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- aws.microdc.io
resources:
- dynamodbs
verbs:
- "*"
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- "*"
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: microdc-dynamodb-operator
namespace: microdc
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: microdc-dynamodb-operator
namespace: microdc
spec:
replicas: 1
template:
metadata:
labels:
app: microdc-dynamodb-operator
annotations:
iam.amazonaws.com/role: microdc-dynamodb-operator
spec:
serviceAccountName: microdc-dynamodb-operator
containers:
- name: operator
image: 982704890815.dkr.ecr.ap-southeast-2.amazonaws.com/dynamodb-controller:latest
env:
- name: AWS_DEFAULT_REGION
value: ap-southeast-2
resources:
requests:
memory: 128Mi
cpu: 50m
limits:
memory: 128Mi
cpu: 50m