-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
69 lines (61 loc) · 1.17 KB
/
deploy.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
apiVersion: v1
kind: Secret
metadata:
name: cf-api-key
namespace: kube-system
data:
CF_API_KEY: YOUR_API_KEY_IN_BASE64
CF_API_EMAIL: YOUR_API_EMAIL_IN_BASE64
type: Opaque
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: cf-dns-bot
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cf-dns-bot
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cf-dns-bot
subjects:
- kind: ServiceAccount
name: cf-dns-bot
namespace: kube-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cf-dns-bot
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cf-dns-bot
namespace: kube-system
spec:
selector:
matchLabels:
app: dns-mgr
replicas: 1
template:
metadata:
labels:
app: dns-mgr
spec:
serviceAccountName: cf-dns-bot
automountServiceAccountToken: true
containers:
- name: cf-dns-bot
image: deinstapel/cf-dns-bot:v2
envFrom:
- secretRef:
name: cf-api-key