-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
56 lines (56 loc) · 1.22 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: appsignal-kubernetes
spec:
replicas: 1
selector:
matchLabels:
app: appsignal-kubernetes
template:
metadata:
labels:
app: appsignal-kubernetes
spec:
serviceAccountName: appsignal-kubernetes-service-account
containers:
- name: appsignal-kubernetes
image: appsignal/appsignal-kubernetes:0.2.0
imagePullPolicy: IfNotPresent
env:
- name: APPSIGNAL_API_KEY
valueFrom:
secretKeyRef:
name: appsignal
key: api-key
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: appsignal-kubernetes-service-account
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: appsignal-kubernetes-role
rules:
- apiGroups: [""]
resources:
- nodes
- "nodes/proxy"
verbs:
- get
- list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: appsignal-kubernetes-cluster-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: appsignal-kubernetes-role
subjects:
- kind: ServiceAccount
name: appsignal-kubernetes-service-account
namespace: default