You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 04-cloud/01-eks/01-create-aws-user/readme.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,15 @@ Para poder crear un usuario con permisos de administrador previamente debemos cr
17
17
## Creando un grupo
18
18
19
19
```bash
20
-
$ aws iam create-group --group-name <group-name>
20
+
aws iam create-group --group-name <group-name>
21
21
```
22
22
23
23
> Contsraits: The name can consist of letters, digits, and the following characters: plus (+), equal (=), comma (,), period (.), at (@), underscore (_), and hyphen (-). The name is not case sensitive and can be a maximum of 128 characters in length.
24
24
25
25
Para verificar que hemos tenido exito en nuestra operación
26
26
27
27
```bash
28
-
$ aws iam list-groups
28
+
aws iam list-groups
29
29
```
30
30
31
31
La respuesta incluye el `Amazon Resource Name` (ARN) para el nuevo grupo. El `ARN` es un standard que Amazon utiliza para identificar recursos.
@@ -35,13 +35,13 @@ La respuesta incluye el `Amazon Resource Name` (ARN) para el nuevo grupo. El `AR
35
35
Utilizando el siguiente comando enlazamos la política de administardor con el grupo recientemenet creado
36
36
37
37
```bash
38
-
$ aws iam attach-group-policy --group-name <group-name> --policy-arn arn:aws:iam::aws:policy/AdministratorAccess
38
+
aws iam attach-group-policy --group-name <group-name> --policy-arn arn:aws:iam::aws:policy/AdministratorAccess
39
39
```
40
40
41
41
Para verificar que la política se ha atado correctamente al grupo
42
42
43
43
```bash
44
-
$ aws iam list-attached-group-policies --group-name <group-name>
44
+
aws iam list-attached-group-policies --group-name <group-name>
45
45
```
46
46
47
47
La respuesta nos da la lista de políticas atadas al grupo. Si queremos comprobar los contenidos de una política en particular podemos usar `aws iam get-policy`
@@ -51,13 +51,13 @@ La respuesta nos da la lista de políticas atadas al grupo. Si queremos comproba
51
51
### 1. Creamos un usuario
52
52
53
53
```bash
54
-
$ aws iam create-user --user-name eksAdmin
54
+
aws iam create-user --user-name eksAdmin
55
55
```
56
56
57
57
### 2. Añadiendo el Usuaro a un grupo
58
58
59
59
```bash
60
-
$ aws iam add-user-to-group --group-name <group-name> --user-name <user-name>
60
+
aws iam add-user-to-group --group-name <group-name> --user-name <user-name>
Copy file name to clipboardExpand all lines: 04-cloud/01-eks/02-launching-cluster-eks/readme.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ chmod 400 EksKeyPair.pem
27
27
With this new private key we can go ahead and generate a public one, that's the key that will be upload into the node (EC2 instance). If we provide this key, and we have the private one, we can connect to the remote instance.
Since this is deployed to our private cluster, we need to access it via a proxy. `kube-proxy` is available to proxy our requests to the dashboard service. In your workspace, run the following command:
Let’s configure our first Chart repository. Chart repositories are similar to APT or yum repositories that you might be familiar with on Linux, or Taps for Homebrew on macOS.
Copy file name to clipboardExpand all lines: 04-cloud/01-eks/05-helm/02-deploy-nginx-with-helm.md
+27-15Lines changed: 27 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,13 +26,13 @@ Now that our repository Chart list has been updated, we can [search for Charts](
26
26
To list all Charts:
27
27
28
28
```bash
29
-
$ helm search repo
29
+
helm search repo
30
30
```
31
31
32
32
You can see from the output that it dumped the list of all Charts we have added. In some cases that may be useful, but an even more useful search would involve a keyword argument. So next, we’ll search just for nginx:
33
33
34
34
```bash
35
-
$ helm search repo nginx
35
+
helm search repo nginx
36
36
```
37
37
38
38
The results in:
@@ -57,7 +57,7 @@ After a quick web search, we discover that there is a Chart for the nginx standa
The third object that this Chart creates for us is a Service. A Service enables us to contact this nginx web server from the Internet, via an Elastic Load Balancer (ELB).
174
181
175
182
To get the complete URL of this Service, run:
176
183
177
184
```bash
178
-
$ kubectl get service mywebserver-nginx -o wide
185
+
kubectl get service mywebserver-nginx -o wide
186
+
```
179
187
188
+
```
180
189
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
Copy file name to clipboardExpand all lines: 04-cloud/01-eks/06-autoscalling-our-applications/00-install-kube-ops-view.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ helm install kube-ops-view \
13
13
stable/kube-ops-view \
14
14
--set service.type=LoadBalancer \
15
15
--set rbac.create=True
16
-
17
16
```
18
17
19
18
The execution above installs kube-ops-view exposing it through a Service using the LoadBalancer type. A successful execution of the command will display the set of resources created and will prompt some advice asking you to use `kubectl proxy` and a local URL for the service. Given we are using the type LoadBalancer for our service, we can disregard this; Instead we will point our browser to the external load balancer.
@@ -24,6 +23,9 @@ To check the chart was installed successfully:
24
23
25
24
```bash
26
25
helm list
26
+
```
27
+
28
+
```
27
29
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/lemoncode/.kube/config
28
30
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /home/lemoncode/.kube/config
29
31
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
@@ -34,9 +36,22 @@ With this we can explore kube-ops-view output by checking the details about the
This will display a line similar to Kube-ops-view URL = http://<URL_PREFIX_ELB>.amazonaws.com Opening the URL in your browser will provide the current state of our cluster.
0 commit comments