apiVersion: v1
kind: ServiceAccount
metadata:
  name: easyai-ai-gateway
  labels:
    app.kubernetes.io/part-of: easyai-ai-gateway
automountServiceAccountToken: true
imagePullSecrets:
  - name: easyai-registry
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: easyai-gateway-security-events
rules:
  - apiGroups: [""]
    resources: ["secrets"]
    resourceNames: ["easyai-gateway-security-events"]
    verbs: ["get", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: easyai-gateway-security-events
subjects:
  - kind: ServiceAccount
    name: easyai-ai-gateway
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: easyai-gateway-security-events
