-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeploy-operator.yaml
More file actions
96 lines (96 loc) · 2.47 KB
/
Copy pathdeploy-operator.yaml
File metadata and controls
96 lines (96 loc) · 2.47 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
apiVersion: v1
kind: Namespace
metadata:
name: neon-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: neon-operator
namespace: neon-operator
labels:
name: neon-operator
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
name: neon-operator
spec:
serviceAccountName: neon-operator
containers:
- name: neon-operator
image: ghcr.io/itsbalamurali/neon-operator:main
imagePullPolicy: Always
# livenessProbe:
# httpGet:
# path: /healthz
# port: 8080
# readinessProbe:
# httpGet:
# path: /healthz
# port: 8080
# resources:
# limits:
# cpu: 200m
# memory: 500Mi
# requests:
# cpu: 200m
# memory: 500Mi
selector:
matchLabels:
name: neon-operator
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: neon-operator
namespace: neon-operator
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: neon-operator
rules:
- apiGroups: [ 'kopf.dev' ]
resources: [ 'clusterkopfpeerings' ]
verbs: [ 'list', 'watch', 'patch', 'get' ]
- apiGroups: [ apiextensions.k8s.io ]
resources: [ customresourcedefinitions ]
verbs: [ list, watch ]
- apiGroups: [ '' ]
resources: [ namespaces ]
verbs: [ list, watch ]
- apiGroups: [ admissionregistration.k8s.io/v1, admissionregistration.k8s.io/v1beta1 ]
resources: [ validatingwebhookconfigurations, mutatingwebhookconfigurations ]
verbs: [ create, patch ]
- apiGroups: [ neon.tech ]
resources: [ neondeployments, neontenants, neontimelines ]
verbs: [ list, watch, get, patch, create, delete ]
- apiGroups: [ '' ]
resources: [ pods,secrets, configmaps, services, persistentvolumeclaims ]
verbs: [ create, get, list, watch, patch, delete ]
- apiGroups: [ '' ]
resources: [ events ]
verbs: [ create ]
- apiGroups: [ batch, extensions ]
resources: [ jobs ]
verbs: [ create, get, patch, delete ]
- apiGroups: [ apps ]
resources: [ deployments, statefulsets ]
verbs: [ create, get, patch, delete ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: neon-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: neon-operator
subjects:
- kind: ServiceAccount
name: neon-operator
namespace: neon-operator