|
|
@@ -13,6 +13,7 @@ apiVersion: v1
|
|
|
kind: ServiceAccount
|
|
|
metadata:
|
|
|
name: opencost
|
|
|
+ namespace: opencost
|
|
|
---
|
|
|
|
|
|
# Cluster role giving OpenCost to get, list, watch required resources
|
|
|
@@ -21,6 +22,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|
|
kind: ClusterRole
|
|
|
metadata:
|
|
|
name: opencost
|
|
|
+ namespace: opencost
|
|
|
rules:
|
|
|
- apiGroups:
|
|
|
- ''
|
|
|
@@ -102,6 +104,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|
|
kind: ClusterRoleBinding
|
|
|
metadata:
|
|
|
name: opencost
|
|
|
+ namespace: opencost
|
|
|
roleRef:
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
kind: ClusterRole
|
|
|
@@ -120,6 +123,7 @@ apiVersion: apps/v1
|
|
|
kind: Deployment
|
|
|
metadata:
|
|
|
name: opencost
|
|
|
+ namespace: opencost
|
|
|
labels:
|
|
|
app: opencost
|
|
|
spec:
|
|
|
@@ -178,6 +182,7 @@ kind: Service
|
|
|
apiVersion: v1
|
|
|
metadata:
|
|
|
name: opencost
|
|
|
+ namespace: opencost
|
|
|
spec:
|
|
|
selector:
|
|
|
app: opencost
|