-
Notifications
You must be signed in to change notification settings - Fork 0
/
secret-sync-operator-v1.0.yaml
81 lines (81 loc) · 1.87 KB
/
secret-sync-operator-v1.0.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
80
81
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: secret-sync-operator
namespace: default
labels:
razee/watch-resource: detail
imagePullSecrets:
- name: bluemix-default-secret
- name: bluemix-default-secret-regional
- name: bluemix-default-secret-international
- name: default-icr-io
- name: default-us-icr-io
- name: default-uk-icr-io
- name: default-de-icr-io
- name: default-au-icr-io
- name: default-jp-icr-io
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: secret-sync-operator
labels:
razee/watch-resource: detail
rules:
- apiGroups: [""]
resources: ["secrets", "configmaps"]
verbs: ["*"]
- apiGroups: [""]
resources: ["namespaces", "pods", "replicasets"]
verbs: ["get"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: secret-sync-operator
labels:
razee/watch-resource: detail
subjects:
- kind: ServiceAccount
name: secret-sync-operator
namespace: default
roleRef:
kind: ClusterRole
name: secret-sync-operator
apiGroup: rbac.authorization.k8s.io
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: secret-sync-operator
namespace: default
labels:
razee/watch-resource: detail
spec:
replicas: 1
selector:
matchLabels:
name: secret-sync-operator
template:
metadata:
labels:
name: secret-sync-operator
spec:
serviceAccountName: secret-sync-operator
containers:
- name: secret-sync-operator
image: us.icr.io/armada-sigex/secret-sync-operator:1.0
command:
- secret-sync-operator
imagePullPolicy: Always
env:
- name: WATCH_NAMESPACE
value: ""
- name: OPERATOR_NAME
value: "secret-sync-operator"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name