-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathoperator-cm.yaml
78 lines (78 loc) · 2.21 KB
/
operator-cm.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
70
71
72
73
74
75
76
77
78
apiVersion: v1
kind: ServiceAccount
metadata:
name: spark-operator
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: edit-resources
rules:
- apiGroups: [""]
resources: ["pods", "replicationcontrollers", "services", "configmaps"]
verbs: ["create", "delete", "deletecollection", "get", "list", "update", "watch", "patch"]
- apiGroups: ["", "route.openshift.io"]
resources: ["routes"]
verbs: ["create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: spark-operator-edit-resources
roleRef:
kind: Role
name: edit-resources
apiGroup: ""
subjects:
- kind: ServiceAccount
name: spark-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spark-operator
labels: &default-labels
app.kubernetes.io/name: spark-operator
app.kubernetes.io/version: v1.0.3-v1alpha1
spec:
replicas: 1
selector:
matchLabels: *default-labels
strategy:
type: Recreate
template:
metadata:
labels: *default-labels
spec:
serviceAccountName: spark-operator
containers:
- name: spark-operator
image: quay.io/radanalyticsio/spark-operator:latest-released
env:
- name: WATCH_NAMESPACE # if not specified all the namespaces will be watched; ~ denotes the same ns as the operator's
value: "~"
- name: CRD # if false, the operator will watch on ConfigMaps
value: "false"
#- name: FULL_RECONCILIATION_INTERVAL_S
# value: "180"
#- name: CRD # if false, the operator will watch on ConfigMaps
# value: "true"
#- name: METRICS # should we expose metrics for Prometheus?
# value: "false"
#- name: METRICS_PORT
# value: "8080"
#- name: METRICS_JVM # should we expose also internal JVM metrics?
# value: "false"
#- name: COLORS
# value: "false"
resources:
requests:
memory: "512Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "1000m"
imagePullPolicy: IfNotPresent