67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: argocd
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: ai-spel-rule-engine-deployer-token
|
|
namespace: argocd
|
|
annotations:
|
|
kubernetes.io/service-account.name: ai-spel-rule-engine-deployer
|
|
type: kubernetes.io/service-account-token
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: argocd
|
|
rules:
|
|
- apiGroups: [argoproj.io]
|
|
resources: [applications]
|
|
resourceNames: [ai-spel-rule-engine]
|
|
verbs: [get, patch]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: argocd
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: argocd
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: ai-spel-rule-engine-deployer
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: ai-spel
|
|
rules:
|
|
- apiGroups: [apps]
|
|
resources: [deployments, replicasets, statefulsets]
|
|
verbs: [get, list, watch]
|
|
- apiGroups: [""]
|
|
resources: [pods, events]
|
|
verbs: [get, list, watch]
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: ai-spel
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: ai-spel-rule-engine-deployer
|
|
namespace: argocd
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: ai-spel-rule-engine-deployer
|