Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Simplify demo by putting everything into the default k8s namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Watters committed May 4, 2020
1 parent 8bb77c4 commit 369fd1e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion demo/manifests/servo/servo-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: opsani-servo-config
namespace: opsani-servo
namespace: default
data:
config.yaml: |
k8s:
Expand Down
2 changes: 1 addition & 1 deletion demo/manifests/servo/servo-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: opsani-servo
namespace: opsani-servo
namespace: default
labels:
comp: opsani-servo
optune.ai/exclude: '1' # don't tune servo
Expand Down
19 changes: 2 additions & 17 deletions demo/manifests/servo/servo-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: opsani-servo
namespace: opsani-servo
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand All @@ -12,26 +12,11 @@ rules:
- apiGroups: ["apps", ""]
resources: ["deployments", "pods"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]

---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: opsani-servo-1
namespace: opsani-servo
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: opsani-servo
subjects:
- kind: ServiceAccount
name: opsani-servo
namespace: opsani-servo
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: opsani-servo-2
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
Expand All @@ -40,4 +25,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: opsani-servo
namespace: opsani-servo
namespace: default

0 comments on commit 369fd1e

Please sign in to comment.