GOD I AM SO DUMB

This commit is contained in:
2025-09-13 11:56:35 -04:00
parent a4952581ec
commit 7975430489
5 changed files with 93 additions and 85 deletions
+23 -33
View File
@@ -1,47 +1,37 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: schedules-api
namespace: argo
name: ollama-scheduler
namespace: argo
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: schedules-api
namespace: argo
name: ollama-scheduler
namespace: argo
rules:
- apiGroups: ["argoproj.io"]
resources: ["cronworkflows"]
verbs: ["create","get","list","watch","update","patch","delete"]
- apiGroups: ["argoproj.io"]
resources: ["workflows"]
verbs: ["create","get","list"]
- apiGroups: ["argoproj.io"]
resources: ["workflowtemplates"]
verbs: ["get","list"]
---
# If you need ClusterWorkflowTemplate support, create this ClusterRole and a ClusterRoleBinding
# with subject serviceAccountName: schedules-api, namespace: argo
# apiVersion: rbac.authorization.k8s.io/v1
# kind: ClusterRole
# metadata:
# name: schedules-api-cwft-read
# rules:
# - apiGroups: ["argoproj.io"]
# resources: ["clusterworkflowtemplates"]
# verbs: ["get","list"]
- apiGroups: ["argoproj.io"]
resources: ["cronworkflows"]
verbs: ["create", "get", "list", "watch", "update", "patch", "delete"]
- apiGroups: ["argoproj.io"]
resources: ["workflows"]
verbs: ["create", "get", "list"]
- apiGroups: ["argoproj.io"]
resources: ["workflowtemplates"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: schedules-api
namespace: argo
subjects:
- kind: ServiceAccount
name: schedules-api
name: ollama-scheduler
namespace: argo
subjects:
- kind: ServiceAccount
name: ollama-scheduler
namespace: argo
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: schedules-api
apiGroup: rbac.authorization.k8s.io
kind: Role
name: ollama-scheduler