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: docs/labs/kubernetes-the-hard-way/lab12-smoke-test.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
author: Wale Soyinka
3
-
contributors: Steven Spencer
3
+
contributors: Steven Spencer, Ganna Zhyrnova
4
4
tags:
5
5
- kubernetes
6
6
- k8s
@@ -13,13 +13,13 @@ tags:
13
13
14
14
# Lab 12: Smoke Test
15
15
16
-
> This is a fork of the original ["Kubernetes the hard way"](https://github.com/kelseyhightower/kubernetes-the-hard-way) originally written by Kelsey Hightower (GitHub: kelseyhightower). Unlike the original that bases itself on Debianlike distributions for the ARM64 architecture, this fork targets Enterprise Linux distributions such as Rocky Linux running on x86_64 architecture.
16
+
> This is a fork of the original ["Kubernetes the hard way"](https://github.com/kelseyhightower/kubernetes-the-hard-way) originally written by Kelsey Hightower (GitHub: kelseyhightower). Unlike the original, which bases itself on Debian-like distributions for the ARM64 architecture, this fork targets Enterprise Linux distributions such as Rocky Linux, which runs on x86_64 architecture.
17
17
18
-
In this lab you will complete a series of tasks to ensure your Kubernetes cluster is functioning correctly.
18
+
In this lab, you will complete tasks to ensure your Kubernetes cluster functions correctly.
19
19
20
20
## Data Encryption
21
21
22
-
In this section you will verify the ability to [encrypt secret data at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/#verifying-that-data-is-encrypted).
22
+
In this section, you will verify the ability to [encrypt secret data at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/#verifying-that-data-is-encrypted).
23
23
24
24
Create a generic secret:
25
25
@@ -65,7 +65,7 @@ You need to prefix the `etcd` key with `k8s:enc:aescbc:v1:key1`, which indicates
65
65
66
66
## Deployments
67
67
68
-
In this section you will verify the ability to create and manage [Deployments](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/).
68
+
In this section, you will verify the ability to create and manage [Deployments](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/).
69
69
70
70
Create a deployment for the [nginx](https://nginx.org/en/) web server:
In this section you will verify the ability to access applications remotely using [port forwarding](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/).
90
+
In this section, you will verify the ability to access applications remotely using [port forwarding](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/).
91
91
92
92
Retrieve the full name of the `nginx` pod:
93
93
@@ -107,7 +107,7 @@ Forwarding from 127.0.0.1:8080 -> 80
107
107
Forwarding from [::1]:8080 -> 80
108
108
```
109
109
110
-
In a new terminal make an HTTP request with the forwarding address:
110
+
In a new terminal, make an HTTP request with the forwarding address:
111
111
112
112
```bash
113
113
curl --head http://127.0.0.1:8080
@@ -136,7 +136,7 @@ Handling connection for 8080
136
136
137
137
### Logs
138
138
139
-
In this section you will verify the ability to [retrieve container logs](https://kubernetes.io/docs/concepts/cluster-administration/logging/).
139
+
In this section, you will verify the ability to [retrieve container logs](https://kubernetes.io/docs/concepts/cluster-administration/logging/).
140
140
141
141
Print the `nginx` pod logs:
142
142
@@ -151,7 +151,7 @@ kubectl logs $POD_NAME
151
151
152
152
### Exec
153
153
154
-
In this section you will verify the ability to [execute commands in a container](https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/#running-individual-commands-in-a-container).
154
+
In this section, you will verify the ability to [execute commands in a container](https://kubernetes.io/docs/tasks/debug-application-cluster/get-shell-running-container/#running-individual-commands-in-a-container).
155
155
156
156
Print the `nginx` version by executing the `nginx -v` command in the `nginx` container:
157
157
@@ -165,7 +165,7 @@ nginx version: nginx/1.27.4
165
165
166
166
## Services
167
167
168
-
In this section you will verify the ability to expose applications with a [Service](https://kubernetes.io/docs/concepts/services-networking/service/).
168
+
In this section, you will verify the ability to expose applications with a [Service](https://kubernetes.io/docs/concepts/services-networking/service/).
169
169
170
170
Expose the `nginx` deployment using a [NodePort](https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport) service:
> You cannot use the LoadBalancer service type because your cluster is not configured with [cloud provider integration](https://kubernetes.io/docs/getting-started-guides/scratch/#cloud-provider). Setting up cloud provider integration is out of scope for this tutorial.
177
+
> You cannot use the LoadBalancer service type because your cluster is not configured with [cloud provider integration](https://kubernetes.io/docs/getting-started-guides/scratch/#cloud-provider). This tutorial does not cover setting up cloud provider integration.
178
178
179
179
Retrieve the node port assigned to the `nginx` service:
0 commit comments