-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
53 lines (53 loc) · 1.2 KB
/
deployment.yml
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: v1
kind: ServiceAccount
metadata:
namespace: default
name: kasa-lights-operator-serviceaccount
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kasa-lights-operator-role-cluster
rules:
- apiGroups: [""]
resources: [events]
verbs: [create]
- apiGroups: [kvecchione.dev]
resources: [kasalights]
verbs: [list, watch, patch]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kasa-lights-operator-rolebinding-cluster
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kasa-lights-operator-role-cluster
subjects:
- kind: ServiceAccount
name: kasa-lights-operator-serviceaccount
namespace: default
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kasa-lights-operator
namespace: default
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
application: kasa-lights-operator
template:
metadata:
labels:
application: kasa-lights-operator
spec:
serviceAccountName: kasa-lights-operator-serviceaccount
containers:
- name: kasa-lights-operator
image: ghcr.io/kvecchione/kasa-lights-operator:latest