-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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) * docs: remove agent mode reference (cherry picked from commit ccd96df) * docs: fix additional links (cherry picked from commit 859d891)
- Loading branch information
1 parent
4938553
commit 5627a21
Showing
16 changed files
with
150 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
docs/docs-content/clusters/cluster-management/ssh/_category_.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"position": 10 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
docs/docs-content/clusters/cluster-management/ssh/ssh-usernames.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
--- | ||
sidebar_label: "SSH Usernames" | ||
title: "SSH Usernames" | ||
description: | ||
"A list of the Secure Shell (SSH) usernames created on Kubernetes nodes for each provider and operating system (OS) | ||
pack available in Palette." | ||
icon: "" | ||
hide_table_of_contents: false | ||
sidebar_position: 20 | ||
--- | ||
|
||
This page lists the Secure Shell (SSH) user names created on Kubernetes nodes, which vary by provider and Operating | ||
System (OS). | ||
|
||
These user names are relevant when using [SSH key pairs](./ssh-keys.md) with your Palette host clusters. | ||
|
||
## Public Cloud | ||
|
||
Public Cloud includes both Infrastructure as a Service (IaaS) and Managed Kubernetes. | ||
|
||
### Infrastructure Provider | ||
|
||
| Provider | OS Pack | SSH Username | | ||
| -------------- | ---------- | ------------ | | ||
| **AWS IaaS** | **Ubuntu** | `ubuntu` | | ||
| **AWS IaaS** | **CentOS** | `centos` | | ||
| **Azure IaaS** | **Ubuntu** | `ubuntu` | | ||
| **Azure IaaS** | **CentOS** | `centos` | | ||
| **GCP IaaS** | **Ubuntu** | `ubuntu` | | ||
| **GCP IaaS** | **CentOS** | `centos` | | ||
|
||
### Managed Kubernetes | ||
|
||
| Provider | OS Pack | SSH Username | | ||
| ------------- | ------------------------------ | ----------------------------------------------------------------------------------- | | ||
| **AWS EKS** | **Amazon EKS optimized Linux** | `ec2-user` | | ||
| **Azure AKS** | **Linux** | `azureuser` | | ||
| **GCP GKE** | **Container-Optimized OS** | Refer to the [SSH Configuration on GCP GKE](#ssh-configuration-on-gcp-gke) section. | | ||
|
||
#### SSH Configuration on GCP GKE | ||
|
||
It is not possible to configure GCP GKE clusters with an SSH key during cluster creation. If SSH access to your GCP GKE | ||
nodes is critical, consider one of the following options: | ||
|
||
- Configure project or node-level metadata to include your SSH key. Refer to | ||
[Predefined and custom metadata keys](https://cloud.google.com/compute/docs/metadata/overview#predefined-and-custom-metadata-keys) | ||
for guidance. | ||
|
||
- Enable OS Login and associate your SSH key with your IAM identity. Refer to | ||
[How OS Login works](https://cloud.google.com/compute/docs/oslogin#how_os_login_works) for guidance. | ||
|
||
## Data Center | ||
|
||
| Provider | OS Pack | SSH Username | | ||
| ------------------ | ---------- | ------------ | | ||
| **MAAS** | **Ubuntu** | `ubuntu` | | ||
| **Openstack** | **Ubuntu** | `ubuntu` | | ||
| **VMware vSphere** | **Ubuntu** | `spectro` | | ||
| **VMware vSphere** | **CentOS** | `spectro` | | ||
|
||
## Edge | ||
|
||
This is dependent on the OS you provide for your edge hosts using | ||
[EdgeForge](../../../clusters/edge/edgeforge-workflow/edgeforge-workflow.md). | ||
|
||
If using EdgeForge, you can also create custom users and assign SSH keys to them using cloud-init stages. Refer to | ||
[Cloud Init Stages](../../edge/edge-configuration/cloud-init.md#assign-an-ssh-key) for an example. | ||
|
||
## Bring Your Own OS | ||
|
||
You can select **Bring Your Own OS (BYOOS)** as the OS pack for your cluster in Palette. The default SSH username will | ||
depend on the OS image that you have built. Refer to [Bring Your Own OS (BYOOS)](../../../byoos/byoos.md) for further | ||
guidance on building custom images. | ||
|
||
- For images built using the [Kubernetes Image Builder](../../../byoos/image-builder.md), the SSH username | ||
is defined as the value for `ssh_username` in the corresponding OS JSON file. For example, the | ||
[Amazon Linux 2 JSON](https://github.com/kubernetes-sigs/image-builder/blob/main/images/capi/packer/ami/amazon-2.json#L11) | ||
sets the `ssh_username` value as `ec2-user`. | ||
|
||
If `ssh_username` is not defined in the OS JSON, then `root` is set by the **Bring Your Own OS (BYOOS)** pack. | ||
|
||
- For images built for VMware vSphere, the SSH username is set to `spectro` by Palette. | ||
|
||
## Resources | ||
|
||
- [SSH Keys](./ssh-keys.md) | ||
- [Deploy a Cluster (Public Cloud)](../../public-cloud/deploy-k8s-cluster.md) | ||
- [Data Center Clusters](../../data-center/data-center.md) | ||
- [Create Cluster Definition (Edge)](../../edge/site-deployment/model-profile.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
sidebar_label: "SSH" | ||
title: "SSH" | ||
description: | ||
"Learn how to use Palette to manage your Secure Shell (SSH) keys and the usernames created when deploying clusters." | ||
icon: "" | ||
hide_table_of_contents: false | ||
sidebar_position: 1 | ||
--- | ||
|
||
Palette supports SSH (Secure Shell) to establish, administer, and communicate with remote clusters. | ||
|
||
You can deploy SSH keys to your cluster nodes using Palette. The SSH username used for key deployment depends on your | ||
provider and operating system. | ||
|
||
## Resources | ||
|
||
- [SSH Keys](./ssh-keys.md) | ||
- [SSH Usernames](./ssh-usernames.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.