File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
04-cloud/00-aks/05-azure-active-directory Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_NAME --overw
57
57
58
58
# Vamos a probar the north remembers creando un pod dentro de este namespace
59
59
# Lanzar este comando te pedirá autenticación
60
- kubectl run --generator=run-pod/v1 nginx-north --image=nginx --namespace the-north-remembers
60
+ kubectl run nginx-north --image=nginx --namespace the-north-remembers
61
61
kubectl get po -n the-north-remembers
62
62
63
63
# Si intentamos acceder al namespace de los Lanister o el default nos dará error
@@ -69,7 +69,7 @@ kubectl get po
69
69
az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_NAME --overwrite-existing
70
70
71
71
# Intentamos la misma operación pero en el namespace de los Lanister
72
- kubectl run --generator=run-pod/v1 nginx-kings-landing --image=nginx --namespace kings-landing
72
+ kubectl run nginx-kings-landing --image=nginx --namespace kings-landing
73
73
# Si intentamos entrar en The North Remembers da un error
74
74
kubectl get po -n the-north-remembers
75
75
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
5
5
6
6
---
7
7
8
- apiVersion : rbac.authorization.k8s.io/v1beta1
8
+ apiVersion : rbac.authorization.k8s.io/v1
9
9
kind : Role
10
10
metadata :
11
11
name : kings-landing-full-access
22
22
23
23
---
24
24
25
- apiVersion : rbac.authorization.k8s.io/v1beta1
25
+ apiVersion : rbac.authorization.k8s.io/v1
26
26
kind : RoleBinding
27
27
metadata :
28
28
name : lanister-access
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
5
5
6
6
---
7
7
8
- apiVersion : rbac.authorization.k8s.io/v1beta1
8
+ apiVersion : rbac.authorization.k8s.io/v1
9
9
kind : Role
10
10
metadata :
11
11
name : the-north-remembers-full-access
22
22
23
23
---
24
24
25
- apiVersion : rbac.authorization.k8s.io/v1beta1
25
+ apiVersion : rbac.authorization.k8s.io/v1
26
26
kind : RoleBinding
27
27
metadata :
28
28
name : stark-access
You can’t perform that action at this time.
0 commit comments