update ServiceAccount for new kubernetes versions

Signed-off-by: Saeid Bostandoust <49065072+ssbostan@users.noreply.github.com>
This commit is contained in:
Saeid Bostandoust 2023-01-02 14:17:11 +00:00 committed by GitHub
parent 49f775d8a0
commit 3c468cd4e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -32,6 +32,17 @@ kind: ServiceAccount
metadata:
name: prometheus
namespace: default
secrets:
- name: prometheus-sa-token
---
apiVersion: v1
kind: Secret
metadata:
name: prometheus-sa-token
namespace: default
annotations:
kubernetes.io/service-account.name: prometheus
type: kubernetes.io/service-account-token
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding