summaryrefslogtreecommitdiffstats
path: root/docs/container_groups
diff options
context:
space:
mode:
authormcen1 <49885111+mcen1@users.noreply.github.com>2023-08-02 21:27:18 +0200
committerGitHub <noreply@github.com>2023-08-02 21:27:18 +0200
commit90c3d8a2755b4315626c30c9643cabc1d6af8940 (patch)
tree5db82ceabb9bbcd32e77d50a0b4058d4ffeac0aa /docs/container_groups
parentFix trial status and host limit with sub (#14237) (diff)
downloadawx-90c3d8a2755b4315626c30c9643cabc1d6af8940.tar.xz
awx-90c3d8a2755b4315626c30c9643cabc1d6af8940.zip
Update example service-account.yml for container group in documentation (#13479)
Co-authored-by: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Co-authored-by: Nana <35573203+masbahnana@users.noreply.github.com>
Diffstat (limited to 'docs/container_groups')
-rw-r--r--docs/container_groups/service-account.yml31
1 files changed, 18 insertions, 13 deletions
diff --git a/docs/container_groups/service-account.yml b/docs/container_groups/service-account.yml
index 20e4e7c0fa..37a215b154 100644
--- a/docs/container_groups/service-account.yml
+++ b/docs/container_groups/service-account.yml
@@ -13,30 +13,35 @@
apiVersion: v1
kind: ServiceAccount
metadata:
- name: awx
-
+ name: containergroup-service-account
+ namespace: containergroup-namespace
---
-apiVersion: rbac.authorization.k8s.io/v1
kind: Role
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
- name: pod-manager
+ name: role-containergroup-service-account
+ namespace: containergroup-namespace
rules:
- - apiGroups: [""] # "" indicates the core API group
+ - apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
- resources: ["pods/exec"]
- verbs: ["create"]
-
+ resources: ["pods/log"]
+ verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
+ - apiGroups: [""]
+ resources: ["pods/attach"]
+ verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
---
kind: RoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
- name: awx-pod-manager
+ name: role-containergroup-service-account-binding
+ namespace: containergroup-namespace
subjects:
- kind: ServiceAccount
- name: awx
+ name: containergroup-service-account
+ namespace: containergroup-namespace
roleRef:
- apiGroup: rbac.authorization.k8s.io
kind: Role
- name: pod-manager
+ name: role-containergroup-service-account
+ apiGroup: rbac.authorization.k8s.io