-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathcyclops-observer.yaml
53 lines (53 loc) · 1.27 KB
/
cyclops-observer.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cyclops-observer
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: cyclops-observer
role: cyclops-observer
template:
metadata:
labels:
app: cyclops-observer
role: cyclops-observer
spec:
serviceAccountName: cyclops
containers:
- name: cyclops-observer
image: ghcr.io/atlassian-labs/cyclops:v1.5.0
command:
- /bin/observer
- --namespace=kube-system # namespace of CNRs to generate
- --namespaces=kube-system,monitoring # namespaces for daemonsets to watch for changes
- --check-interval=15m
- --wait-interval=3m
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: AWS_REGION
value: us-east-1
# Required for leader election
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
---
apiVersion: v1
kind: Service
metadata:
labels:
role: cyclops-observer
app: cyclops-observer
name: cyclops-observer
namespace: kube-system
spec:
ports:
- port: 80
targetPort: 8080
selector:
role: cyclops-observer