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/guides/applications/containers/installing-docker-shortguide/index.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -22,4 +22,4 @@ To install Docker CE (Community Edition), follow the instructions within one of
22
22
23
23
-[Installing and Using Docker on CentOS and Fedora](/docs/guides/installing-and-using-docker-on-centos-and-fedora/)
24
24
25
-
For complete instructions on even more Linux distributions, reference the [Install Docker Engine](https://docs.docker.com/engine/install/) section of Docker's official documentation.
25
+
To see installation instructions for other Linux distributions or operating systems like Mac or Windows, reference Docker's official documentation here: [Install Docker Engine](https://docs.docker.com/engine/install/)
*Linode Kubernetes Engine (LKE)* allows you to easily create, scale, and manage Kubernetes clusters to meet your application's demands, reducing the often complicated cluster set-up process to just a few clicks. Linode manages your Kubernetes master node, and you select how many Linodes you want to add as worker nodes to your cluster.
17
+
*Linode Kubernetes Engine (LKE)* allows you to easily create, scale, and manage Kubernetes clusters to meet your application's demands, reducing the often complicated cluster set-up process to just a few clicks. Linode manages your Kubernetes master node, and you select how many Compute Instances you want to add as worker nodes to your cluster.
18
18
19
19
Deploying a static site using an LKE cluster is a great example to follow when learning Kubernetes. A [container](/docs/guides/kubernetes-reference/#container) image for a static site can be written in less than ten lines, and only one container image is needed. Therefore, it's often less complicated to deploy a static site on Kubernetes than some other applications that require multiple components.
20
20
21
21
{{< note type="alert" >}}
22
-
Following the instructions in this guide creates billable resources on your account in the form of Linodes and NodeBalancers. You are billed an hourly rate for the time that these resources exist on your account. Be sure to follow the [tear-down section](#tear-down-your-lke-cluster-and-nodebalancer) at the end of this guide if you do not wish to continue using these resources.
22
+
Following the instructions in this guide creates billable resources on your account in the form of Compute Instances and NodeBalancers. You are billed an hourly rate for the time that these resources exist on your account. Be sure to follow the [tear-down section](#tear-down-your-lke-cluster-and-nodebalancer) at the end of this guide if you do not wish to continue using these resources.
23
23
{{< /note >}}
24
24
25
25
## In this Guide
@@ -42,19 +42,11 @@ This guide shows you how to:
42
42
-[Sign up for a Docker Hub Account](#sign-up-for-a-docker-hub-account)
43
43
-[Install Hugo](#install-hugo)
44
44
45
-
- Finally, you need to create a cluster on LKE, if you do not already have one:
45
+
- Finally, you need to create an LKE cluster, if you do not already have one:
46
46
47
-
- To create a cluster in the Linode Cloud Manager, review the [Deploy a Cluster with Linode Kubernetes Engine](/docs/products/compute/kubernetes/) guide.
47
+
- To create a cluster from the Cloud Manager, review the [Deploy a Cluster with Linode Kubernetes Engine](/docs/products/compute/kubernetes/) guide. Specifically, follow the [Create an LKE Cluster](/docs/products/compute/kubernetes/guides/create-cluster/) and [Connect to your LKE Cluster with kubectl](/docs/products/compute/kubernetes/guides/kubectl/) sections.
48
48
49
-
{{< note >}}
50
-
Specifically, follow the [Create an LKE Cluster](/docs/products/compute/kubernetes/guides/create-cluster/) and [Connect to your LKE Cluster with kubectl](/docs/products/compute/kubernetes/guides/kubectl/) sections.
51
-
{{< /note >}}
52
-
53
-
- To create a cluster from the Linode API, review the [Deploy and Manage a Cluster with Linode Kubernetes Engine and the Linode API](/docs/products/compute/kubernetes/guides/deploy-and-manage-cluster-with-the-linode-api/) tutorial.
54
-
55
-
{{< note >}}
56
-
Specifically, follow the [Create an LKE Cluster](/docs/products/compute/kubernetes/guides/deploy-and-manage-cluster-with-the-linode-api/#create-an-lke-cluster) section.
57
-
{{< /note >}}
49
+
- To create a cluster via the Linode API, review the [Deploy and Manage a Cluster with Linode Kubernetes Engine and the Linode API](/docs/products/compute/kubernetes/guides/deploy-and-manage-cluster-with-the-linode-api/) tutorial. Specifically, follow the [Create an LKE Cluster](/docs/products/compute/kubernetes/guides/deploy-and-manage-cluster-with-the-linode-api/#create-an-lke-cluster) section.
58
50
59
51
### Install kubectl
60
52
@@ -76,7 +68,7 @@ You use [Docker Hub](https://hub.docker.com/) to store your Docker image. If you
76
68
77
69
### Install Hugo
78
70
79
-
A *static site generator* (SSG) is usually a command line tool that takes text files written in a markup language like [Markdown](https://daringfireball.net/projects/markdown/), applies a stylized template to the content, and produces valid HTML, CSS, and JavaScript files. Static sites are prized for their simplicity and speed, as they do not generally have to interact with a database.
71
+
A *static site generator* (SSG) is a command line tool that takes text files written in a markup language like [Markdown](https://daringfireball.net/projects/markdown/), applies a stylized template to the content, and produces valid HTML, CSS, and JavaScript files. Static sites are prized for their simplicity and speed, as they do not generally have to interact with a database.
80
72
81
73
The Linode documentation website, and this guide, employ [Hugo](https://gohugo.io). Hugo is a powerful and fast SSG written in the [Go](/docs/guides/install-go-on-ubuntu/#what-is-go) programming language, but you can choose one that best suits your needs by reading our [How to Choose a Static Site Generator guide](/docs/guides/how-to-choose-static-site-generator/).
82
74
@@ -138,18 +130,30 @@ In this section you creates a static site on your workstation using Hugo.
Git submodules allow you to include one Git repository within another, each maintaining their own version history. To view a collection of Hugo themes, visit the [Hugo theme collection](https://themes.gohugo.io/).
143
-
{{< /note >}}
144
134
145
-
1. In the text editor of your choice, open the `config.toml` file and add the following line to the end:
135
+
1. In the text editor of your choice, open the `hugo.toml` file and add the following line to the end:
146
136
147
137
```file
148
138
theme = "ananke"
149
139
```
150
140
151
141
This line instructs Hugo to search fora folder named `ananke`in the `themes` directory and applies the templating it finds to the static site.
152
142
143
+
{{< note title="Older Hugo versions use config.toml">}}
144
+
If you are using an older version of Hugo, you may see a `config.toml` file instead of `hugo.toml`. Should any errors persist, you can rename the file to the alternative name using one of the commands below:
145
+
```command
146
+
mv hugo.toml config.toml
147
+
```
148
+
```command
149
+
mv config.toml hugo.toml
150
+
```
151
+
Alternatively, you can duplicate the file and its contents to a second file using the other name and then link the two. This allows both files to exist without conflict:
152
+
```command
153
+
ln hugo.toml config.toml
154
+
```
155
+
{{< /note >}}
156
+
153
157
1. Add an example first post to your Hugo site:
154
158
155
159
```command
@@ -167,8 +171,8 @@ In this section you creates a static site on your workstation using Hugo.
@@ -259,8 +263,8 @@ In this section you create a Docker container for your static site, which you th
259
263
1. Add the following contents to the `Dockerfile`. Each command has accompanying comments that describe their function:
260
264
261
265
```file {title="lke-example/Dockerfile"}
262
-
# Install the latest Debian operating system.
263
-
FROM alpine:3.12.0 as HUGO
266
+
# Install the latest Alpine operating system.
267
+
FROM alpine:3.20.1 as HUGO
264
268
265
269
# Install Hugo.
266
270
RUN apk update && apk add hugo
@@ -294,19 +298,15 @@ In this section you create a Docker container for your static site, which you th
294
298
.gitignore
295
299
```
296
300
297
-
{{< note >}}
298
301
This file, similar to the `.gitignore` file you created in the previous section, allows you to ignore certain files within the working directory that you want to leave out of the container. Because you want the container to be the smallest size possible, the `.dockerignore` file includes the `public/` folder and some hidden folders that Git creates.
299
-
{{< /note >}}
300
302
301
-
1. Run the Docker `build` command. Replace `mydockerhubusername` with your Docker Hub username. The period at the end of the command tells Docker to use the current directory as its build context.
303
+
1. Run the Docker `build` command. Replace {{< placeholder "mydockerhubusername" >}} with your Docker Hub username. The period at the end of the command tells Docker to use the current directory as its build context.
In the example below, the container image is named `lke-example` and has been given a version tag of `v1`. Feel free to change these values.
309
-
{{< /note >}}
309
+
In the example, the container image is named `lke-example` and has been given a version tag of `v1`. Feel free to change these values.
310
310
311
311
1. Docker downloads the required Debian and NGINX images, as well as install Hugo into the image. Once complete, you should see output similar to the following:
312
312
@@ -455,10 +455,10 @@ In this section, you create a [Deployment](/docs/guides/kubernetes-reference/#de
455
455
456
456
1. Create a Service manifest file to provide load balancing for the deployment. Load balancing ensures that traffic is balanced efficiently across multiple backend nodes, improving site performance and ensuring that your static site is accessible should a node go down.
457
457
458
-
Specifically, the Service manifest that is used in this guide triggers the creation of a Linode [NodeBalancer](/docs/products/networking/nodebalancers/get-started/).
458
+
Specifically, the Service manifest that is used in this guide triggers the creation of a [NodeBalancer](/docs/products/networking/nodebalancers/get-started/).
459
459
460
-
{{< note >}}
461
-
The NodeBalancer's creation is controlled through the [Linode Cloud Controller Manager (CCM)](/docs/guides/kubernetes-reference/#linode-cloud-controller-manager). The CCM provides a number of settings, called `annotations`, that allow you to control the functionality of the NodeBalancer. To learn more about the CCM, read our [Installing the Linode CCM on an Unmanaged Kubernetes Cluster](/docs/guides/install-the-linode-ccm-on-unmanaged-kubernetes/) guide.
The NodeBalancer's creation is controlled through the [Cloud Controller Manager (CCM)](/docs/guides/kubernetes-reference/#linode-cloud-controller-manager). The CCM provides a number of settings, called `annotations`, that allow you to control the functionality of the NodeBalancer. To learn more about the CCM, read our [Installing the Linode CCM on an Unmanaged Kubernetes Cluster](/docs/guides/install-the-linode-ccm-on-unmanaged-kubernetes/) guide.
462
462
{{< /note >}}
463
463
464
464
1. Name the file `static-site-service.yaml`, save it to your `manifests` directory, and enter the contents of this snippet:
@@ -516,7 +516,7 @@ To learn more about networking within LKE, open ports, and configuring firewall
516
516
517
517
If you'd like to continue using the static site that you created in this guide, you may want to assign a domain to it. Review the [DNS Records: An Introduction](/docs/guides/dns-overview/) and [DNS Manager](/docs/products/networking/dns-manager/) guides forhelp with setting up DNS. When setting up your DNS record, use the external IP address that you noted at the end of the previous section.
518
518
519
-
If you would rather not continue using the cluster you just created, review the [tear-down section](#tear-down-your-lke-cluster-and-nodebalancer) to remove the billable Linode resources that were generated.
519
+
If you would rather not continue using the cluster you just created, review the [tear-down section](#tear-down-your-lke-cluster-and-nodebalancer) to remove any billable resources that were generated.
520
520
521
521
## Tear Down your LKE Cluster and NodeBalancer
522
522
@@ -532,7 +532,7 @@ If you would rather not continue using the cluster you just created, review the
532
532
kubectl delete -f static-site-service.yaml
533
533
```
534
534
535
-
- To remove the LKE Cluster and the associated nodes from your account, navigate to the [Linode Cloud Manager](https://cloud.linode.com):
535
+
- To remove the LKE Cluster and the associated nodes from your account, navigate to the [Cloud Manager](https://cloud.linode.com):
536
536
537
537
1. Click on the **Kubernetes** link in the sidebar. A new page with a table which lists your clusters appears.
0 commit comments