Skip to content

Commit 7ec7753

Browse files
benradstonecaroldelwingkarl-cardenas-coding
committed
DOC-887: SSH usernames (#5091)
* docs: SSH usernames draft * docs: GCP GKE addition * docs: update based on packs JSON * docs: remove tencent * docs: miss bold providers * docs: clean up edge description * docs: code review suggestions Co-authored-by: caroldelwing <[email protected]> * ci: auto-formatting prettier issues * docs: move article to new location * ci: auto-formatting prettier issues * docs: fix legacy spelling mistakes * docs: root username for BYO-OS * docs: remove script workaround for GCP GKE * docs: update based on recent testing * ci: auto-formatting prettier issues * docs: clarify what sets vSphere username * docs: code review suggestions Co-authored-by: Karl Cardenas <[email protected]> * ci: auto-formatting prettier issues * docs: resolving content comments * docs: index page for SSH * docs: fix redirect and lingering broken links * ci: auto-formatting prettier issues --------- Co-authored-by: caroldelwing <[email protected]> Co-authored-by: benradstone <[email protected]> Co-authored-by: Karl Cardenas <[email protected]> (cherry picked from commit 83294cc)
1 parent 9ae3c0c commit 7ec7753

File tree

16 files changed

+151
-46
lines changed

16 files changed

+151
-46
lines changed

docs/docs-content/automation/crossplane/deploy-cluster-azure-crossplane.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ how to use Crossplane to deploy a Palette-managed Kubernetes cluster in Azure.
1818
API key.
1919
- A public [Azure](https://learn.microsoft.com/en-us/training/modules/create-an-azure-account) cloud account with the
2020
required [permissions](../../clusters/public-cloud/azure/required-permissions.md).
21-
- An SSH key pair available. Check out the [Create an Upload an SSH Key](../../clusters/cluster-management/ssh-keys.md)
22-
page for guidance.
21+
- An SSH key pair available. Check out the
22+
[Create and Upload an SSH Key](../../clusters/cluster-management/ssh/ssh-keys.md) page for guidance.
2323
- The Azure account must be registered in Palette. Follow the
2424
[Register and Manage Azure Cloud Account](../../clusters/public-cloud/azure/azure-cloud.md) guide to register your
2525
account in Palette.

docs/docs-content/automation/crossplane/deploy-cluster-gcp-crossplane.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ how to use Crossplane to deploy a Palette-managed Kubernetes cluster in GCP.
1818
API key.
1919
- A public [GCP](https://cloud.google.com/iam/docs/creating-managing-service-accounts) service account with the required
2020
[roles](../../clusters/public-cloud/gcp/add-gcp-accounts.md#prerequisites).
21-
- An SSH key pair available. Check out the [Create an Upload an SSH Key](../../clusters/cluster-management/ssh-keys.md)
22-
page for guidance.
21+
- An SSH key pair available. Check out the
22+
[Create and Upload an SSH Key](../../clusters/cluster-management/ssh/ssh-keys.md) page for guidance.
2323
- The GCP account must be registered in Palette. Follow the
2424
[Register and Manage GCP Accounts](../../clusters/public-cloud/gcp/add-gcp-accounts.md) guide to register your account
2525
in Palette.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"position": 10
3+
}

docs/docs-content/clusters/cluster-management/ssh-keys.md renamed to docs/docs-content/clusters/cluster-management/ssh/ssh-keys.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ sidebar_position: 10
77
tags: ["clusters", "cluster management"]
88
---
99

10-
Palette supports SSH (Secure Shell) to establish, administer, and communicate with remote clusters. This section
11-
describes creating and managing SSH Keys in the Palette Management Console.
10+
This section describes creating and managing SSH Keys in the Palette Management Console.
1211

1312
## Scope of SSH Key
1413

15-
Palette groups clusters for logical separation into [Projects](../../tenant-settings/projects/projects.md). Users and
14+
Palette groups clusters for logical separation into [Projects](../../../tenant-settings/projects/projects.md). Users and
1615
teams can be assigned roles within a project for granular control over permissions within the project scope. SSH key
1716
authentication is scoped to a project. Multiple users can gain access to a single project. To access a cluster with SSH,
1817
you need a public SSH key registered in Palette.
@@ -26,8 +25,9 @@ you need a public SSH key registered in Palette.
2625
## Create and Upload an SSH Key
2726

2827
<PartialsComponent category="palette-setup" name="generate-ssh-key" />
28+
2929
## Validate
3030

3131
You can validate that the SSH public key is available in Palette by attempting to deploy a host cluster. During the host
3232
cluster creation wizard, you will be able to assign the SSH key to the cluster. Refer to the
33-
[Deploy a Cluster](../public-cloud/deploy-k8s-cluster.md) tutorial for additional guidance.
33+
[Deploy a Cluster](../../public-cloud/deploy-k8s-cluster.md) tutorial for additional guidance.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
---
2+
sidebar_label: "SSH Usernames"
3+
title: "SSH Usernames"
4+
description:
5+
"A list of the Secure Shell (SSH) usernames created on Kubernetes nodes for each provider and operating system (OS)
6+
pack available in Palette."
7+
icon: ""
8+
hide_table_of_contents: false
9+
sidebar_position: 20
10+
---
11+
12+
This page lists the Secure Shell (SSH) user names created on Kubernetes nodes, which vary by provider and Operating
13+
System (OS).
14+
15+
These user names are relevant when using [SSH key pairs](./ssh-keys.md) with your Palette host clusters.
16+
17+
## Public Cloud
18+
19+
Public Cloud includes both Infrastructure as a Service (IaaS) and Managed Kubernetes.
20+
21+
### Infrastructure Provider
22+
23+
| Provider | OS Pack | SSH Username |
24+
| -------------- | ---------- | ------------ |
25+
| **AWS IaaS** | **Ubuntu** | `ubuntu` |
26+
| **AWS IaaS** | **CentOS** | `centos` |
27+
| **Azure IaaS** | **Ubuntu** | `ubuntu` |
28+
| **Azure IaaS** | **CentOS** | `centos` |
29+
| **GCP IaaS** | **Ubuntu** | `ubuntu` |
30+
| **GCP IaaS** | **CentOS** | `centos` |
31+
32+
### Managed Kubernetes
33+
34+
| Provider | OS Pack | SSH Username |
35+
| ------------- | ------------------------------ | ----------------------------------------------------------------------------------- |
36+
| **AWS EKS** | **Amazon EKS optimized Linux** | `ec2-user` |
37+
| **Azure AKS** | **Linux** | `azureuser` |
38+
| **GCP GKE** | **Container-Optimized OS** | Refer to the [SSH Configuration on GCP GKE](#ssh-configuration-on-gcp-gke) section. |
39+
40+
#### SSH Configuration on GCP GKE
41+
42+
It is not possible to configure GCP GKE clusters with an SSH key during cluster creation. If SSH access to your GCP GKE
43+
nodes is critical, consider one of the following options:
44+
45+
- Configure project or node-level metadata to include your SSH key. Refer to
46+
[Predefined and custom metadata keys](https://cloud.google.com/compute/docs/metadata/overview#predefined-and-custom-metadata-keys)
47+
for guidance.
48+
49+
- Enable OS Login and associate your SSH key with your IAM identity. Refer to
50+
[How OS Login works](https://cloud.google.com/compute/docs/oslogin#how_os_login_works) for guidance.
51+
52+
## Data Center
53+
54+
| Provider | OS Pack | SSH Username |
55+
| ------------------ | ---------- | ------------ |
56+
| **MAAS** | **Ubuntu** | `ubuntu` |
57+
| **Openstack** | **Ubuntu** | `ubuntu` |
58+
| **VMware vSphere** | **Ubuntu** | `spectro` |
59+
| **VMware vSphere** | **CentOS** | `spectro` |
60+
61+
## Edge
62+
63+
This is dependent on the OS you provide for your edge hosts using either
64+
[Agent Mode](../../../deployment-modes/agent-mode/agent-mode.md) or
65+
[EdgeForge](../../../clusters/edge/edgeforge-workflow/palette-canvos/build-provider-images.md).
66+
67+
If using EdgeForge, you can also create custom users and assign SSH keys to them using cloud-init stages. Refer to
68+
[Cloud Init Stages](../../edge/edge-configuration/cloud-init.md#assign-an-ssh-key) for an example.
69+
70+
## Bring Your Own OS
71+
72+
You can select **Bring Your Own OS (BYOOS)** as the OS pack for your cluster in Palette. The default SSH username will
73+
depend on the OS image that you have built. Refer to [Bring Your Own OS (BYOOS)](../../../byoos/byoos.md) for further
74+
guidance on building custom images.
75+
76+
- For images built using the [Kubernetes Image Builder](../../../byoos/image-builder/build-image.md), the SSH username
77+
is defined as the value for `ssh_username` in the corresponding OS JSON file. For example, the
78+
[Amazon Linux 2 JSON](https://github.com/kubernetes-sigs/image-builder/blob/main/images/capi/packer/ami/amazon-2.json#L11)
79+
sets the `ssh_username` value as `ec2-user`.
80+
81+
If `ssh_username` is not defined in the OS JSON, then `root` is set by the **Bring Your Own OS (BYOOS)** pack.
82+
83+
- For images built for VMware vSphere, the SSH username is set to `spectro` by Palette.
84+
85+
## Resources
86+
87+
- [SSH Keys](./ssh-keys.md)
88+
- [Deploy a Cluster (Public Cloud)](../../public-cloud/deploy-k8s-cluster.md)
89+
- [Data Center Clusters](../../data-center/data-center.md)
90+
- [Create Cluster Definition (Edge)](../../edge/site-deployment/cluster-deployment.md)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
sidebar_label: "SSH"
3+
title: "SSH"
4+
description:
5+
"Learn how to use Palette to manage your Secure Shell (SSH) keys and the usernames created when deploying clusters."
6+
icon: ""
7+
hide_table_of_contents: false
8+
sidebar_position: 1
9+
---
10+
11+
Palette supports SSH (Secure Shell) to establish, administer, and communicate with remote clusters.
12+
13+
You can deploy SSH keys to your cluster nodes using Palette. The SSH username used for key deployment depends on your
14+
provider and operating system.
15+
16+
## Resources
17+
18+
- [SSH Keys](./ssh-keys.md)
19+
- [SSH Usernames](./ssh-usernames.md)

docs/docs-content/clusters/data-center/vmware/create-manage-vmware-clusters.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,14 @@ Before you begin, ensure that you have the following prerequisites:
8989
8. Fill out the VMware vSphere configuration details for the cluster. Refer to the table below to learn more about each
9090
option. Click **Next** to proceed.
9191

92-
| Field Name | Description | Required |
93-
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
94-
| **Datacenter** | The VMware vSphere datacenter where the cluster and its nodes will be deployed. | Yes |
95-
| **Deployment Folder** | The folder in the datacenter where the cluster and its nodes will be deployed. Check the box **Append cluster name** if you want the cluster name appended to the folder name. | Yes |
96-
| **Image Template Folder** | The folder in the datacenter where the image templates are stored. This is typically in the **spectro-templates** folder. | Yes |
97-
| **Network Type** | The network type to use for the cluster. Select **Static IP** if you want to use static IP addresses. Select **DHCP** if you want to use Dynamic Host Configuration Protocol (DHCP). | Yes |
98-
| **SSH Key** | The SSH key to use for the cluster. Check out the [Create and Upload an SSH Key](../../cluster-management/ssh-keys.md#create-and-upload-an-ssh-key) guide to learn how to upload an SSH key to Palette. | No |
99-
| **NTP Servers** | The Network Time Protocol (NTP) servers to use for the cluster. | No |
92+
| Field Name | Description | Required |
93+
| ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
94+
| **Datacenter** | The VMware vSphere datacenter where the cluster and its nodes will be deployed. | Yes |
95+
| **Deployment Folder** | The folder in the datacenter where the cluster and its nodes will be deployed. Check the box **Append cluster name** if you want the cluster name appended to the folder name. | Yes |
96+
| **Image Template Folder** | The folder in the datacenter where the image templates are stored. This is typically in the **spectro-templates** folder. | Yes |
97+
| **Network Type** | The network type to use for the cluster. Select **Static IP** if you want to use static IP addresses. Select **DHCP** if you want to use Dynamic Host Configuration Protocol (DHCP). | Yes |
98+
| **SSH Key** | The SSH key to use for the cluster. Check out the [Create and Upload an SSH Key](../../cluster-management/ssh/ssh-keys.md#create-and-upload-an-ssh-key) guide to learn how to upload an SSH key to Palette. | No |
99+
| **NTP Servers** | The Network Time Protocol (NTP) servers to use for the cluster. | No |
100100

101101
:::warning
102102

docs/docs-content/clusters/public-cloud/azure/aks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ explains how you can create an Azure AKS cluster managed by Palette.
1616
[Register and Manage Azure Cloud Account](./azure-cloud.md) for guidance.
1717

1818
- A Secure Shell (SSH) key that you have pre-configured in your Azure environment. Refer to the
19-
[SSH Keys](../../cluster-management/ssh-keys.md) guide for more information about creating and managing SSH keys in
20-
Palette.
19+
[SSH Keys](../../cluster-management/ssh/ssh-keys.md) guide for more information about creating and managing SSH keys
20+
in Palette.
2121

2222
- An infrastructure cluster profile for Azure. Review
2323
[Create an Infrastructure Profile](../../../profiles/cluster-profiles/create-cluster-profiles/create-infrastructure-profile.md)

docs/docs-content/clusters/public-cloud/azure/create-azure-cluster.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Autoscaling is not supported for Azure IaaS clusters.
2323
- Palette integration with Azure account. Review [Register and Manage Azure Cloud Account](azure-cloud.md) for guidance.
2424

2525
- A Secure Shell (SSH) key pre-configured in your Azure environment. Refer to the
26-
[SSH Keys](../../cluster-management/ssh-keys.md) guide for more information about creating and managing SSH keys in
27-
Palette.
26+
[SSH Keys](../../cluster-management/ssh/ssh-keys.md) guide for more information about creating and managing SSH keys
27+
in Palette.
2828

2929
- An infrastructure cluster profile for Azure. Review
3030
[Create an Infrastructure Profile](../../../profiles/cluster-profiles/create-cluster-profiles/create-infrastructure-profile.md)

docs/docs-content/clusters/public-cloud/deploy-k8s-cluster.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ To complete this tutorial, you will need the following.
7171

7272
<br />
7373

74-
- An SSH Key Pair. Use the [Create and Upload an SSH Key](../cluster-management/ssh-keys.md) guide to learn how to
74+
- An SSH Key Pair. Use the [Create and Upload an SSH Key](../cluster-management/ssh/ssh-keys.md) guide to learn how to
7575
create an SSH key and upload it to Palette.
7676

7777
- AWS users must create an AWS Key pair before starting the tutorial. If you need additional guidance, check out the
@@ -350,7 +350,7 @@ pack contains a set of default values. You can change the manifest values if nee
350350

351351
The **Cluster config** section allows you to select the **Subscription**, **Region**, **Resource Group**, **Storage
352352
account**, and **SSH Key** to apply to the host cluster. All clusters require you to assign an SSH key. Refer to the
353-
[SSH Keys](../cluster-management/ssh-keys.md) guide for information about uploading an SSH key.
353+
[SSH Keys](../cluster-management/ssh/ssh-keys.md) guide for information about uploading an SSH key.
354354

355355
<br />
356356

@@ -517,7 +517,7 @@ pack contains a set of default values. You can change the manifest values if nee
517517
#### Cluster Configuration
518518

519519
The **Cluster config** section allows you to select the **Project**, **Region**, and **SSH Key** to apply to the host
520-
cluster. All clusters require you to assign an SSH key. Refer to the [SSH Keys](/clusters/cluster-management/ssh-keys)
520+
cluster. All clusters require you to assign an SSH key. Refer to the [SSH Keys](../cluster-management/ssh/ssh-keys.md)
521521
guide for information about uploading an SSH key.
522522

523523
<br />

0 commit comments

Comments
 (0)