Skip to content

Commit c51f146

Browse files
eljohnson92smira
authored andcommitted
docs: update Akamai platform docs
Update install docs for the Akamai platform. Signed-off-by: Evan Johnson <ejohnson@akamai.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
1 parent 9550f5f commit c51f146

File tree

1 file changed

+27
-12
lines changed
  • website/content/v1.7/talos-guides/install/cloud-platforms

1 file changed

+27
-12
lines changed

website/content/v1.7/talos-guides/install/cloud-platforms/akamai.md

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ aliases:
99

1010
This guide will demonstrate how to create a highly-available Kubernetes cluster with one worker using the [Akamai Connected Cloud](https://www.linode.com/) provider.
1111

12-
[Akamai Connected Cloud](https://www.linode.com/) has a very well documented REST API, and an open-source [CLI](https://www.linode.com/docs/products/tools/cli/get-started/) tool to interact with the API which will be used in this guide.
13-
Make sure to follow installation and authentication instructions for the `linode-cli` tool.
12+
[Akamai Connected Cloud](https://www.linode.com/) has a very well documented [REST API](https://www.linode.com/docs/api/), and an open-source [CLI](https://www.linode.com/docs/products/tools/cli/get-started/) tool to interact with the API which will be used in this guide.
13+
Make sure to follow [installation](https://www.linode.com/docs/products/tools/cli/get-started/#installing-the-linode-cli) and authentication instructions for the `linode-cli` tool.
14+
15+
[jq](https://stedolan.github.io/jq/) and [talosctl]({{< relref "../../../introduction/quickstart#talosctl" >}}) also needs to be installed
1416

1517
### Upload image
1618

@@ -21,7 +23,7 @@ Upload the image
2123
```bash
2224
export REGION=us-ord
2325

24-
linode-cli image-upload --region ${REGION} --label talos _out/akamai-amd64.raw.gz
26+
linode-cli image-upload --region ${REGION} --label talos akamai-amd64.raw.gz
2527
```
2628

2729
### Create a Load Balancer
@@ -36,7 +38,7 @@ linode-cli nodebalancers config-create --port 443 --protocol tcp --check connect
3638

3739
### Create the Machine Configuration Files
3840

39-
Using the IP address (or DNS name, if you have created one) of the loadbalancer, generate the base configuration files for the Talos machines.
41+
Using the IP address (or DNS name, if you have created one) of the load balancer, generate the base configuration files for the Talos machines.
4042
Also note that the load balancer forwards port 443 to port 6443 on the associated nodes, so we should use 443 as the port in the config definition:
4143

4244
```bash
@@ -49,27 +51,34 @@ talosctl gen config talos-kubernetes-akamai https://${NODEBALANCER_IP} --with-ex
4951

5052
#### Create the Control Plane Nodes
5153

54+
> Although root passwords are not used by Talos, Linode requires that a root password be associated with a linode during creation.
55+
5256
Run the following commands to create three control plane nodes:
5357

5458
```bash
59+
export IMAGE_ID=$(linode-cli images list --label talos --format id --text --no-headers)
5560
export NODEBALANCER_ID=$(linode-cli nodebalancers list --label talos --format id --text --no-headers)
5661
export NODEBALANCER_CONFIG_ID=$(linode-cli nodebalancers configs-list ${NODEBALANCER_ID} --format id --text --no-headers)
5762
export REGION=us-ord
63+
export LINODE_TYPE=g6-standard-4
64+
export ROOT_PW=$(pwgen 16)
5865

5966
for id in $(seq 3); do
6067
linode_label="talos-control-plane-${id}"
68+
6169
# create linode
70+
6271
linode-cli linodes create \
6372
--no-defaults \
64-
--root_pass securepass123! \
65-
--type g6-standard-4 \
73+
--root_pass ${ROOT_PW} \
74+
--type ${LINODE_TYPE} \
6675
--region ${REGION} \
67-
--image ${image_id} \
76+
--image ${IMAGE_ID} \
6877
--label ${linode_label} \
6978
--private_ip true \
7079
--tags talos-control-plane \
7180
--group "talos-control-plane" \
72-
--metadata.user_data "$(cat ./controlplane.yaml | base64)"
81+
--metadata.user_data "$(base64 -i ./controlplane.yaml)"
7382

7483
# change kernel to "direct disk"
7584
linode_id=$(linode-cli linodes list --label ${linode_label} --format id --text --no-headers)
@@ -84,23 +93,29 @@ done
8493

8594
#### Create the Worker Nodes
8695

96+
> Although root passwords are not used by Talos, Linode requires that a root password be associated with a linode during creation.
97+
8798
Run the following to create a worker node:
8899

89100
```bash
90101
export IMAGE_ID=$(linode-cli images list --label talos --format id --text --no-headers)
91102
export REGION=us-ord
103+
export LINODE_TYPE=g6-standard-4
92104
export LINODE_LABEL="talos-worker-1"
105+
export ROOT_PW=$(pwgen 16)
106+
93107
linode-cli linodes create \
94108
--no-defaults \
95-
--root_pass akamaipass123! \
96-
--type g6-standard-4 \
97-
--region us-ord \
109+
--root_pass ${ROOT_PW} \
110+
--type ${LINODE_TYPE} \
111+
--region ${REGION} \
98112
--image ${IMAGE_ID} \
99113
--label ${LINODE_LABEL} \
100114
--private_ip true \
101115
--tags talos-worker \
102116
--group "talos-worker" \
103-
--metadata.user_data "$(cat ./worker.yaml | base64)"
117+
--metadata.user_data "$(base64 -i ./worker.yaml)"
118+
104119
linode_id=$(linode-cli linodes list --label ${LINODE_LABEL} --format id --text --no-headers)
105120
confiig_id=$(linode-cli linodes configs-list ${linode_id} --format id --text --no-headers)
106121
linode-cli linodes config-update ${linode_id} ${confiig_id} --kernel "linode/direct-disk"

0 commit comments

Comments
 (0)