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

OCP/OKD cluster installation on OCI [UPI/agnostic/None/External] #26

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
126ca34
docs: add oci upi documentation
mtulio Feb 8, 2023
b8c1096
fixing CI linter
mtulio Jun 9, 2023
b954d8d
update CI workflows to use cache
mtulio Jun 9, 2023
0ec039a
unset failures when gitmodules is updated
mtulio Jun 9, 2023
3cd37f5
add PR comment
mtulio Jun 10, 2023
4034670
add docs preview url published
mtulio Jun 10, 2023
cdc764b
preview doc
mtulio Jun 10, 2023
df9ed08
review CCM manifests
mtulio Jun 13, 2023
fd15231
update install user guide with clearly prereqs
mtulio Jun 15, 2023
367cab5
changing container build workdir
mtulio Jun 18, 2023
ebaf3ac
fix relative path
mtulio Jun 19, 2023
bdbd649
fix pipeline to ensure latest PR on builds
mtulio Jun 19, 2023
c8a8387
fix builder to reset submodules
mtulio Jun 19, 2023
5bb6f92
hide info from default stdout
mtulio Jun 19, 2023
4b1c2a0
revert no_log in network seclist
mtulio Jun 19, 2023
d6a97ea
review installation with no_log
mtulio Jun 22, 2023
f30fa79
chores when provisioning stable nightly
mtulio Jul 6, 2023
1688dc0
update the cloud LB role
mtulio Jul 14, 2023
f0b4d06
aws: comment network vpce
mtulio Jul 14, 2023
5b461d6
updating to OCP ec4 tests
mtulio Aug 4, 2023
c0b1077
doc/typo: VARS_FILE is now broadly referenced
mtulio Aug 16, 2023
db2965c
restructure documentation/guides for OCI and AWS
mtulio Sep 17, 2023
591fb44
doc: creating module reusable docs
mtulio Sep 17, 2023
6afdec6
docs: using modules to enhance guides
mtulio Sep 18, 2023
dc65c90
update doc/guides for AWS and OCI
mtulio Sep 22, 2023
459b509
describe the steps to provision ARM64 clusters
mtulio Oct 18, 2023
0202c40
update instructions to deploy arm
mtulio Oct 21, 2023
47f3db4
enable doc preview job
mtulio Oct 23, 2023
bda5bc6
doc/ci: remove unused flow, forcing comment every build
mtulio Oct 23, 2023
a3257b5
renaming prerequisites OCI docs
mtulio Oct 23, 2023
13d5ac2
adding warning/helper message when need to set ansible_python_interpr…
mtulio Oct 23, 2023
1b8e09a
force to expire CI builds in one week
mtulio Oct 23, 2023
801300f
setting expiration labels to correct containerfile
mtulio Oct 23, 2023
b518a1a
bump sdk and collection versions
mtulio Oct 23, 2023
6934b99
add check vars by provider
mtulio Oct 23, 2023
36ca099
fix container image expiration period
mtulio Oct 23, 2023
87d6d37
adding ansible interpreter note in the docs
mtulio Oct 23, 2023
c1eb4c2
fix label for target plat
mtulio Oct 23, 2023
521f0aa
doc/OCI: updating references for platform external deployment
mtulio Oct 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
75 changes: 37 additions & 38 deletions .github/workflows/main.yml
Expand Up @@ -10,9 +10,9 @@ on:
schedule:
- cron: "0 5 * * 0"

defaults:
run:
working-directory: 'mtulio.okd_installer'
# defaults:
# run:
# working-directory: 'mtulio.okd_installer'

jobs:

Expand All @@ -24,7 +24,7 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
# path: 'mtulio.okd_installer'
submodules: recursive

- name: Set up Python 3.
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Check out the codebase.
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
# path: 'mtulio.okd_installer'
submodules: recursive

- name: Set up Python 3.
Expand Down Expand Up @@ -90,8 +90,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
fetch-depth: 5
# path: 'mtulio.okd_installer'
# fetch-depth: 5
submodules: recursive

- name: Build Collection
Expand Down Expand Up @@ -132,8 +132,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
fetch-depth: 5
# path: 'mtulio.okd_installer'
# fetch-depth: 5
submodules: recursive

- name: Download artifacts
Expand Down Expand Up @@ -189,16 +189,16 @@ jobs:
echo "Discovered Preview URL: ${PREVIEW_URL}"
echo "url=$PREVIEW_URL" >> $GITHUB_OUTPUT

# Commenting in PR
- name: Find comment
uses: peter-evans/find-comment@v2
id: fbc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '<!-- id-build-comment -->'
# Commenting in PR the build information (force to always create a comment)
# - name: Find comment
# uses: peter-evans/find-comment@v2
# id: fbc
# with:
# issue-number: ${{ github.event.pull_request.number }}
# comment-author: 'github-actions[bot]'
# body-includes: '<!-- id-build-comment -->'
- name: Create comment
if: steps.fbc.outputs.comment-id == ''
# if: steps.fbc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
Expand All @@ -208,19 +208,18 @@ jobs:
- Container: ${{ env.IMAGE }}:${{ env.VERSION }}
- Docs Preview: ${{ steps.verceldeploy.outputs.url }}
reactions: rocket

- name: Update comment
if: steps.fbc.outputs.comment-id != ''
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fbc.outputs.comment-id }}
body: |
<!-- id-build-comment -->
Artifacts built by CI:
- Container: ${{ env.IMAGE }}:${{ env.VERSION }}
- Docs Preview: ${{ steps.verceldeploy.outputs.url }}
reactions: hooray
edit-mode: replace
# - name: Update comment
# if: steps.fbc.outputs.comment-id != ''
# uses: peter-evans/create-or-update-comment@v3
# with:
# comment-id: ${{ steps.fbc.outputs.comment-id }}
# body: |
# <!-- id-build-comment -->
# Artifacts built by CI:
# - Container: ${{ env.IMAGE }}:${{ env.VERSION }}
# - Docs Preview: ${{ steps.verceldeploy.outputs.url }}
# reactions: hooray
# edit-mode: replace

# Build a container image on main branch, publishing the 'latest' to repository.
publish-container-latest:
Expand All @@ -232,8 +231,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
fetch-depth: 5
# path: 'mtulio.okd_installer'
# fetch-depth: 5
submodules: recursive

- name: Download artifacts
Expand Down Expand Up @@ -278,8 +277,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
fetch-depth: 5
# path: 'mtulio.okd_installer'
# fetch-depth: 5
submodules: recursive

- name: Get version
Expand Down Expand Up @@ -315,8 +314,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
with:
path: 'mtulio.okd_installer'
fetch-depth: 5
# path: 'mtulio.okd_installer'
# fetch-depth: 5
submodules: recursive

- name: Get version
Expand Down Expand Up @@ -348,7 +347,7 @@ jobs:
podman login -u="${QUAY_USER}" -p="${QUAY_PASS}" quay.io

echo "> Build container image:"
podman build -t ${IMAGE}:${VERSION} -f hack/Containerfile .
podman build --build-arg=QUAY_EXPIRATION=never -t ${IMAGE}:${VERSION} -f hack/Containerfile .
podman tag ${IMAGE}:${VERSION} ${IMAGE}:${VERSION_BUILD}

echo "> Publish container image:"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/mock-aws.yaml
Expand Up @@ -136,7 +136,6 @@ jobs:
cat ~/.ansible/okd-installer/clusters/${{ steps.vars.outputs.cluster-name }}/cluster_state.json || true
cat ~/.ansible/okd-installer/clusters/${{ steps.vars.outputs.cluster-name }}install-config-bkp.yaml || true


- name: Destroy cluster (play destroy_cluster)
env:
VARS_FILE: "./vars-${{ steps.vars.outputs.cluster-name }}.yaml"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/site-production.yaml
@@ -1,6 +1,5 @@
# Workflow for deploying static content to GitHub Pages
name: github-pages

on:
push:
branches: ["main"]
Expand Down
3 changes: 3 additions & 0 deletions docs/documentation/integrate-provider.md
@@ -0,0 +1,3 @@
# Steps to Integrate a new Provider into okd-installer

> Placeholder
37 changes: 35 additions & 2 deletions docs/guides/AWS/aws-agnostic.md
Expand Up @@ -31,7 +31,7 @@ Create and export the environments:
# OCP: https://openshift-release.apps.ci.l2s4.p1.openshiftapps.com/
DISTRIBUTION="ocp"
RELEASE_REPO="quay.io/openshift-release-dev/ocp-release"
VERSION="4.13.0"
VERSION="4.14.0-rc.0"
RELEASE_VERSION="${VERSION}-x86_64"
PULL_SECRET_FILE="${HOME}/.openshift/pull-secret-latest.json"
```
Expand Down Expand Up @@ -60,7 +60,7 @@ Create the Ansible var files:


```bash
CLUSTER_NAME="aws-none05"
CLUSTER_NAME="aws-n414rc0"
BASE_DOMAIN="devcluster.openshift.com"
SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)"

Expand Down Expand Up @@ -164,3 +164,36 @@ ansible-playbook mtulio.okd_installer.destroy_cluster \
-e provider=${CONFIG_PROVIDER} \
-e cluster_name=${CONFIG_CLUSTER_NAME}
```


## Quick install 4.14

```bash
CLUSTER_NAME=aws-none127
VARS_FILE=./vars-oci-ha_${CLUSTER_NAME}.yaml

cat <<EOF > ${VARS_FILE}
provider: aws
cluster_name: ${CLUSTER_NAME}
config_cluster_region: us-east-1

cluster_profile: ha
# destroy_bootstrap: no

config_base_domain: devcluster.openshift.com
config_ssh_key: "$(cat ~/.ssh/openshift-dev.pub)"
config_pull_secret_file: "${HOME}/.openshift/pull-secret-latest.json"

config_featureset: TechPreviewNoUpgrade

config_cluster_version: 4.14.0-ec.3
version: 4.14.0-ec.3
EOF
```

```bash
ansible-playbook mtulio.okd_installer.create_all \
-e cert_max_retries=30 \
-e cert_wait_interval_sec=60 \
-e @$VARS_FILE
```