Skip to content

Commit

Permalink
Archive old host provisioning guide. Add missing KubeVirt parts in in…
Browse files Browse the repository at this point in the history
…stall K8s guide
  • Loading branch information
saffronjam committed Apr 14, 2024
1 parent 1782956 commit e695fc5
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 11 deletions.
2 changes: 1 addition & 1 deletion hugo/content/archive/configureGpuPassthrough.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Configure GPU Passthrough
# Configure GPU Passthrough (Archived 2024-04-14)
*DO NOT USE THIS - ONLY FOR REFERENCE - ALREADY AUTOMATED IN HOST SETUP SCRIPTS*

This guide is aimed mainly for GPU without vGPU-support, as a
Expand Down
2 changes: 1 addition & 1 deletion hugo/content/archive/configureHost.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Configure a Host
# Configure a Host (Archived 2024-04-14)
*DO NOT USE THIS - ONLY FOR REFERENCE - ALREADY AUTOMATED WITH MAAS*

Host device minimum recommended hardware requirements
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Host Provisioning
# Host Provisioning (Archived 2024-04-14)

**THIS IS AN OLD GUIDE. PLEASE REFER TO THE NEW GUIDE [HERE](hostProvisioning.md)**

The workflow to provision a new host is mostly automated using
PXE-booting using [MaaS](https://maas.io/) together with [cloud
init](https://cloudinit.readthedocs.io/en/latest/). But there are some
Expand Down
7 changes: 2 additions & 5 deletions hugo/content/maintenance/hostProvisioning.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ PXE-booting using [MaaS](https://maas.io/) together with [cloud
init](https://cloudinit.readthedocs.io/en/latest/). But there are some
steps that are manual.

This guide is designed for the new sys-cluster/deploy-cluster setup with KubeVirt. If you are setting up a CloudStack host, please refer to the [old guide](archive/hostProvisioning_old.md).

## Installation

This guide will go through the entire workflow to setup up a brand new
Expand Down Expand Up @@ -53,11 +55,6 @@ host.
12. Upload or paste the cloud-init file generated in **step 2**
13. Click `Start deployment for machine`
15. Wait for machine to be under the category `Deployed`
6. Verify installation (sys-cluster)
1. SSH into the node

7. Verify installation (deploy-cluster)


### Next steps
If you did not deploy the first node in a cluster, you don't need to do anything more.
Expand Down
27 changes: 24 additions & 3 deletions hugo/content/maintenance/installKubernetesCluster.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Install Kubernetes Cluster

**THIS IS AN OLD GUIDE. PLEASE REFER TO THE NEW GUIDE [HERE](installKubernetesCluster.md)**

Before you start, this guide is intended you guide you through the creation of Kubernetes clusters in the **new** environment (where KubeVirt replaces CloudStack).

## Prerequisites
Expand Down Expand Up @@ -273,7 +271,30 @@ Hairpin-proxy is a proxy that allows us to access services in the cluster from w
kubectl apply -f https://raw.githubusercontent.com/compumike/hairpin-proxy/v0.2.1/deploy.yml
```

9. Add the cluster to go-deploy
9. Install `KubeVirt`
KubeVirt is what enables us to run VMs in the cluster. This is not mandatory, but it is required if the cluster is to be used for VMs.

Install the KubeVirt operator and CRDs
```bash
export VERSION=$(curl -s https://storage.googleapis.com/kubevirt-prow/release/kubevirt/kubevirt/stable.txt)
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/$VERSION/kubevirt-operator.yaml
kubectl create -f https://github.com/kubevirt/kubevirt/releases/download/$VERSION/kubevirt-cr.yaml
```

Verify installation
```bash
kubectl get kubevirt.kubevirt.io/kubevirt -n kubevirt -o=jsonpath="{.status.phase}"
```

Install CDI (Containerized Data Importer)
```bash
export TAG=$(curl -s -w %{redirect_url} https://github.com/kubevirt/containerized-data-importer/releases/latest)
export VERSION=$(echo ${TAG##*/})
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-operator.yaml
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-cr.yaml
```

10. Add the cluster to go-deploy
Edit go-deploy's config and add a new or edit an existing zone.
```yaml
zones:
Expand Down

0 comments on commit e695fc5

Please sign in to comment.