You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by tl...@apache.org on 2021/07/21 21:43:38 UTC
[incubator-sdap-nexus] 02/07: refine spark-operator role verbs
This is an automated email from the ASF dual-hosted git repository.
tloubrieu pushed a commit to branch moc_deployment
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-nexus.git
commit 3e8ebd5d6d2781988d9c696cfe1aa3b9e3c4f2d8
Author: thomas loubrieu <th...@jpl.nasa.gov>
AuthorDate: Wed Jun 16 10:00:01 2021 -0700
refine spark-operator role verbs
---
helm/templates/role.yaml | 19 +++++++------------
helm/templates/root-webpage.yml | 7 ++++++-
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/helm/templates/role.yaml b/helm/templates/role.yaml
index 152bb23..6ba78be 100644
--- a/helm/templates/role.yaml
+++ b/helm/templates/role.yaml
@@ -7,15 +7,10 @@ metadata:
app.kubernetes.io/version: v1beta2-1.2.3-3.1.1
name: sdap-spark-role
rules:
- - verbs:
- - '*'
- apiGroups:
- - ''
- resources:
- - pods
- - verbs:
- - '*'
- apiGroups:
- - ''
- resources:
- - services
+ - apiGroups: [""]
+ resources: ["pods"]
+ verbs: ["create", "get", "list", "delete"]
+ - apiGroups: [""]
+ resources: ["services"]
+ verbs: ["create"]
+
diff --git a/helm/templates/root-webpage.yml b/helm/templates/root-webpage.yml
index c55b313..baca3a1 100644
--- a/helm/templates/root-webpage.yml
+++ b/helm/templates/root-webpage.yml
@@ -41,5 +41,10 @@ spec:
{ echo -e 'HTTP/1.1 200 OK\r\n'; } | nc -l -p 8080
done
name: root-webpage
+ resources:
+ limits:
+ cpu: 0.5
+ requests:
+ cpu: 0.3
restartPolicy: Always
-{{ end }}
\ No newline at end of file
+{{ end }}