Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VerteX and RHEL #2867

Merged
merged 28 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d0d3bec
docs: PLT-1194
karl-cardenas-coding May 16, 2024
aa6ce2c
chore: updated language
karl-cardenas-coding May 20, 2024
2687449
chore: updated vertex install CLI video
karl-cardenas-coding May 20, 2024
70fb131
chore: test netlify drawer
karl-cardenas-coding May 21, 2024
de1f3d0
ci: add preview syntax
karl-cardenas-coding May 21, 2024
0c9d0fc
chore: test netlify trigger
karl-cardenas-coding May 22, 2024
ed5f69a
chote: test
karl-cardenas-coding May 22, 2024
d8822d2
chore: more test
karl-cardenas-coding May 22, 2024
22dd42d
chore: test new logic
karl-cardenas-coding May 22, 2024
860ad82
chore: more test
karl-cardenas-coding May 22, 2024
7bcf3e5
chore: verify context
karl-cardenas-coding May 22, 2024
889902a
chore: test new logic
karl-cardenas-coding May 22, 2024
42ee2cf
chore: fix logic
karl-cardenas-coding May 22, 2024
4795f32
chore: new logic
karl-cardenas-coding May 22, 2024
c752012
chore: verify setting took effect
karl-cardenas-coding May 22, 2024
b8d90e6
save
karl-cardenas-coding May 22, 2024
b3e8cbb
chore: save
karl-cardenas-coding May 22, 2024
d1af7a5
chore: test update logic
karl-cardenas-coding May 22, 2024
ed9eb28
more test
karl-cardenas-coding May 22, 2024
6df4eda
chore: file rename
karl-cardenas-coding May 22, 2024
c017829
chore: update
karl-cardenas-coding May 22, 2024
ce3caa3
chore: branch name
karl-cardenas-coding May 22, 2024
5ddb4ee
chore: verify no new curl is made
karl-cardenas-coding May 22, 2024
c17f9fd
chore: update
karl-cardenas-coding May 22, 2024
73bd5e9
chore: updated
karl-cardenas-coding May 22, 2024
634ce2b
chore: ready for merge
karl-cardenas-coding May 22, 2024
2e97803
chore: update comment
karl-cardenas-coding May 22, 2024
d6d6996
chore: fix typo
karl-cardenas-coding May 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/clean-up-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@ on:
branches-ignore: [master, main, gh-pages]


env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
GITHUB_BRANCH: ${{ github.event.ref }}

concurrency:
group: ${{ github.event.ref }}
cancel-in-progress: true

jobs:
update_netlify:
runs-on: ubuntu-latest
steps:

- name: Checkout GitHub Pages Branch
uses: actions/checkout@v4

- name: Remove Branch From Netlify
run: cd scripts && ./netlify_remove_branch.sh

delete_reports:
name: Delete Reports
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,4 +73,4 @@ jobs:
echo "Successfully pushed HTML reports to repo."
exit 0
fi
done
done
37 changes: 15 additions & 22 deletions .github/workflows/release-branch-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
ALGOLIA_ADMIN_KEY: ${{ secrets.DEV_ALGOLIA_ADMIN_KEY }}
ALGOLIA_APP_ID: ${{ secrets.DEV_GATSBY_ALGOLIA_APP_ID }}
ALGOLIA_SEARCH_KEY: ${{ secrets.DEV_GATSBY_ALGOLIA_SEARCH_KEY }}
GITHUB_BRANCH: ${{ github.ref_name }}


concurrency:
Expand All @@ -36,34 +37,26 @@ jobs:
node-version: "20"
cache: "npm"

- name: Determine branch name
id: extract_branch
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
echo "GITHUB_BRANCH=${{ github.head_ref }}" >> $GITHUB_ENV
else
echo "GITHUB_BRANCH=${{ github.ref_name }}" >> $GITHUB_ENV
fi

- run: npm ci

- name: Update Netlify for Collab Drawer
run: cd scripts && ./netlify_add_branch.sh

- name: Post Netlify progress
uses: mshick/add-pr-comment@v2
with:
message: |
🤖 Starting the Netlify preview build for commit ${{ github.sha }}. This may take a few minutes.
refresh-message-position: true
🤖 Netlify configured to enable preview build for branch: ${{env.GITHUB_BRANCH}} . Subsequent commits will automatically trigger a Netlify build preview.
refresh-message-position: false

- run: npm run build

- name: Deploy to Netlify
id: netlify
uses: nwtgck/actions-netlify@v3.0.0
with:
publish-dir: ./build
deploy-message: 'Manual Netlify deployment from GitHub Actions - ${{ github.sha }}'
enable-pull-request-comment: true
overwrites-pull-request-comment: true
enable-commit-comment: true

- name: Post Netlify URL
uses: mshick/add-pr-comment@v2
with:
message: |
🚀 Netlify preview deployed succesfully for commit ${{ github.sha }}. Click [here](${{steps.netlify.outputs.deploy-url}}) to preview the changes.
message-failure: |
👎 Uh oh! The Netlify Preview failed to deploy for commit ${{ github.sha }}. Please check the Netlify logs for more information.
refresh-message-position: true
update-only: true

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,8 @@ screenshots/
tests/screenshot.spec.ts-snapshots/
test-results/
playwright-report/
artifact.zip
artifact.zip

# Netlify

.netlify/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To contribute, we recommend having the following software installed locally on y

- git configured and access to github repository

- Node.js v18 and npm.
- Node.js v20 and npm.

- [Vale](https://vale.sh/docs/vale-cli/installation/)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ installation.

- [ ] Create a vSphere VM and Template folder named `spectro-templates`.

- [ ] You have the met the requirements for the operating system.

- [Ubuntu Pro](https://ubuntu.com/pro) - you need an Ubuntu Pro subscription token.

- [Red Hat Linux Enterprise](https://www.redhat.com/en) - you need a Red Hat subscription and a custom RHEL vSphere
template with Kubernetes available in your vSphere environment. To learn how to create the required template, refer
to the [RHEL and PXK](../../../../byoos/usecases/vmware/rhel-pxk.md) guide.

- [ ] Import the Operating System and Kubernetes distribution OVA required for the installation and place the OVA in the
`spectro-templates` folder.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,19 @@ before proceeding with the installation. Refer to the
- Palette CLI installed and available. Refer to the Palette CLI
[Install](../../../../automation/palette-cli/install-palette-cli.md#download-and-setup) page for guidance.

- An Ubuntu Pro Subscription and token. Ubuntu Pro provides access to FIPS 140-2 certified cryptographic packages.
- You can choose between two Operating Systems (OS) when installing Vertex. Review the requirements for each OS.

- [Ubuntu Pro](https://ubuntu.com/pro) - you need an Ubuntu Pro subscription token.

- [Red Hat Linux Enterprise](https://www.redhat.com/en) - you need a Red Hat subscription and a custom RHEL vSphere
template with Kubernetes available in your vSphere environment. To learn how to create the required template, refer
to the [RHEL and PXK](../../../../byoos/usecases/vmware/rhel-pxk.md) guide.

:::warning

Do not proceed with the installation until you have the met the OS requirements.

:::

- Review the required VMware vSphere [permissions](../vmware-system-requirements.md). Ensure you have created the proper
custom roles and zone tags.
Expand Down Expand Up @@ -140,15 +152,26 @@ Use the following steps to install Palette VerteX.

6. At the **Enterprise Cluster Type** prompt, choose **Palette VerteX**.

7. Type `y` to enable Ubuntu Pro, and provide your Ubuntu Pro token when prompted.
7. Select the desired OS you want to use for the installation. Review the table below for more information about each
option.

| **Option** | **Description** | **Requirements** |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Ubuntu Pro** | [Ubuntu Pro](https://ubuntu.com/pro) is the default option. It provides access to FIPS 140-2 certified cryptographic packages. | Ubuntu Pro token. |
| **Red Hat Linux Enterprise** | Red Hat Linux Enterprise provides access to Red Hat Enterprise Linux. | Red Hat subscription and a custom RHEL vSphere template with Kubernetes. Review the [RHEL and PXK](../../../../byoos/usecases/vmware/rhel-pxk.md) to learn how to create the required template. |

8. Depending on your OS selection, you will be prompted to provide the required information. For Ubuntu Pro, you will
need to provide your Ubuntu Pro token. For Red Hat Linux Enterprise, you will need to provide the path to the
vSphere template and specify the version.

:::warning

To ensure FIPS compliance, be sure to enter your Ubuntu Pro token.
If you selected Ubuntu, to ensure FIPS compliance, be sure to enter your Ubuntu Pro token. If RHEL is the selected
OS, you will need to provide the path to the vSphere template and specify the version.

:::

8. Specify the URL or IP address of the Spectro Cloud Repository that is provided to you by the airgap setup script.
9. Specify the URL or IP address of the Spectro Cloud Repository that is provided to you by the airgap setup script.
Make sure to specify the file path to the CA certificate when prompted.

:::info
Expand All @@ -160,15 +183,15 @@ Use the following steps to install Palette VerteX.

:::

9. Enter the repository credentials. Our support team provides the credentials you need to access the public Spectro
10. Enter the repository credentials. Our support team provides the credentials you need to access the public Spectro
Cloud repository. Airgap installations, provide the credentials to your private repository provided to you by the
airgap setup script .

10. Choose `VMware vSphere` as the cloud type. This is the default.
11. Choose `VMware vSphere` as the cloud type. This is the default.

11. Type an enterprise cluster name. Your VM instances will use this name as a prefix.
12. Type an enterprise cluster name. Your VM instances will use this name as a prefix.

12. When prompted, enter the information listed in each of the following tables.
13. When prompted, enter the information listed in each of the following tables.

#### Environment Configuration

Expand All @@ -181,7 +204,7 @@ Use the following steps to install Palette VerteX.
| **Pod CIDR** | Enter the CIDR pool IP that will be used to assign IP addresses to pods in the EC cluster. The pod IP addresses should be unique and not overlap with any machine IPs in the environment. |
| **Service IP Range** | Enter the IP address range that will be used to assign IP addresses to services in the EC cluster. The service IP addresses should be unique and not overlap with any machine IPs in the environment. |

13. Select the OCI registry type and provide the configuration values. Review the following table for more information.
14. Select the OCI registry type and provide the configuration values. Review the following table for more information.
If you are using the Palette CLI from inside an [airgap support VM](./vmware-vsphere-airgap-instructions.md), the
CLI will automatically detect the airgap environment and prompt you to **Use local, air-gapped Pack Registry?** Type
`y` to use the local resources and skip filling in the OCI registry URL and credentials.
Expand Down Expand Up @@ -225,7 +248,7 @@ Use the following steps to install Palette VerteX.

:::

14. The next set of prompts is for the VMware vSphere account information. Enter the information listed in the following
15. The next set of prompts is for the VMware vSphere account information. Enter the information listed in the following
table.

#### VMware vSphere Account Information
Expand Down Expand Up @@ -255,7 +278,7 @@ Use the following steps to install Palette VerteX.
| **NTP Servers** | You can provide a list of Network Time Protocol (NTP) servers, such as `pool.ntp.org`. |
| **SSH Public Keys** | Provide any public SSH keys to access your Palette VMs. This option opens up your system's default text editor. Vi is the default text editor for most Linux distributions. To review basic vi commands, check out the [vi Commands](https://www.cs.colostate.edu/helpdocs/vi.html) reference. |

15. Specify the IP pool configuration. The placement type can be Static or Dynamic Domain Name Server (DDNS). Choosing
16. Specify the IP pool configuration. The placement type can be Static or Dynamic Domain Name Server (DDNS). Choosing
static placement creates an IP pool from which VMs are assigned IP addresses. Choosing DDNS assigns IP addresses
using DNS.

Expand All @@ -270,7 +293,7 @@ Use the following steps to install Palette VerteX.
| **Name servers** | Comma-separated list of DNS name server IP addresses. |
| **Name server search suffixes** | An optional comma-separated list of DNS search domains. |

16. The last set of prompts are for the vSphere machine and database configuration. Use the following table for
17. The last set of prompts are for the vSphere machine and database configuration. Use the following table for
guidance.

#### vSphere Machine Configuration
Expand Down Expand Up @@ -340,7 +363,7 @@ Use the following steps to install Palette VerteX.
export KUBECONFIG=/ubuntu/.palette/ec/ec-20231012215923/spectro_mgmt.conf
```

17. Copy the URL and paste it in your browser's URL field to access the system console. You will be prompted to reset.
18. Copy the URL and paste it in your browser's URL field to access the system console. You will be prompted to reset.

:::info

Expand All @@ -352,17 +375,17 @@ Use the following steps to install Palette VerteX.

![Screenshot of the Palette VerteX system console showing Username and Password fields.](/vertex_installation_install-on-vmware_vertex-system-console.webp)

18. Log in to the System Console using the credentials provided in the Enterprise Cluster Details output. After login,
19. Log in to the System Console using the credentials provided in the Enterprise Cluster Details output. After login,
you will be prompted to create a new password. Enter a new password and save your changes. You will be redirected to
the Palette VerteX system console.

19. After login, a Summary page is displayed. Palette VerteX is installed with a self-signed SSL certificate. To assign
20. After login, a Summary page is displayed. Palette VerteX is installed with a self-signed SSL certificate. To assign
a different SSL certificate you must upload the SSL certificate, SSL certificate key, and SSL certificate authority
files to Palette VerteX. You can upload the files using the Palette VerteX system console. Refer to the
[Configure HTTPS Encryption](/vertex/system-management/ssl-certificate-management) page for instructions on how to
upload the SSL certificate files to Palette VerteX.

20. The last step is to start setting up a tenant. To learn how to create a tenant, check out the
21. The last step is to start setting up a tenant. To learn how to create a tenant, check out the
[Tenant Management](../../../system-management/tenant-management.md) guide.

![Screenshot of the Summary page showing where to click Go to Tenant Management button.](/vertex_installation_install-on-vmware_goto-tenant-management.webp)
Expand Down
Loading