mirror of
https://github.com/Expand-sys/awx-on-k3s
synced 2025-12-16 05:52:15 +11:00
feat: add hardware requirements
This commit is contained in:
parent
9a3e5b760e
commit
7497784d5e
3 changed files with 19 additions and 5 deletions
20
README.md
20
README.md
|
|
@ -13,8 +13,9 @@ An example implementation of AWX on single node K3s using AWX Operator, with eas
|
||||||
|
|
||||||
- [Environment](#environment)
|
- [Environment](#environment)
|
||||||
- [References](#references)
|
- [References](#references)
|
||||||
|
- [Requirements](#requirements)
|
||||||
- [Procedure](#procedure)
|
- [Procedure](#procedure)
|
||||||
- [Prepare CentOS 8 host](#prepare-centos-8-host)
|
- [Prepare CentOS Stream 8 host](#prepare-centos-stream-8-host)
|
||||||
- [Install K3s](#install-k3s)
|
- [Install K3s](#install-k3s)
|
||||||
- [Install AWX Operator](#install-awx-operator)
|
- [Install AWX Operator](#install-awx-operator)
|
||||||
- [Prepare required files](#prepare-required-files)
|
- [Prepare required files](#prepare-required-files)
|
||||||
|
|
@ -44,9 +45,21 @@ An example implementation of AWX on single node K3s using AWX Operator, with eas
|
||||||
- [INSTALL.md on ansible/awx](https://github.com/ansible/awx/blob/20.0.0/INSTALL.md) @20.0.0
|
- [INSTALL.md on ansible/awx](https://github.com/ansible/awx/blob/20.0.0/INSTALL.md) @20.0.0
|
||||||
- [README.md on ansible/awx-operator](https://github.com/ansible/awx-operator/blob/0.17.0/README.md) @0.17.0
|
- [README.md on ansible/awx-operator](https://github.com/ansible/awx-operator/blob/0.17.0/README.md) @0.17.0
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
|
||||||
|
- **Computing resources**
|
||||||
|
- **2 CPUs and 4 GiB RAM minimum**.
|
||||||
|
- It's recommended to add more CPUs and RAM (like 4 CPUs and 8 GiB RAM or more) to avoid performance issue and job scheduling issue.
|
||||||
|
- The files in this repository are configured to ignore resource requirements which specified by AWX Operator by default.
|
||||||
|
- **Storage resources**
|
||||||
|
- At least **10 GiB for `/var/lib/rancher`** and **10 GiB for `/data`** are safe for fresh install.
|
||||||
|
- **Both will be grown during lifetime** and **actual consumption highly depends on your environment and your usecase**, so you should to pay attention to the consumption and add more capacity if required.
|
||||||
|
- `/var/lib/rancher` will be created and consumed by K3s and related data like container images and overlayfs.
|
||||||
|
- `/data` will be created in this guide and used to store AWX-related databases and files.
|
||||||
|
|
||||||
## Procedure
|
## Procedure
|
||||||
|
|
||||||
### Prepare CentOS 8 host
|
### Prepare CentOS Stream 8 host
|
||||||
|
|
||||||
Disable Firewalld. This is [recommended by K3s](https://rancher.com/docs/k3s/latest/en/advanced/#additional-preparation-for-red-hat-centos-enterprise-linux).
|
Disable Firewalld. This is [recommended by K3s](https://rancher.com/docs/k3s/latest/en/advanced/#additional-preparation-for-red-hat-centos-enterprise-linux).
|
||||||
|
|
||||||
|
|
@ -153,11 +166,12 @@ Modify two `password`s in `base/kustomization.yaml`.
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
Prepare directories for Persistent Volumes defined in `base/pv.yaml`.
|
Prepare directories for Persistent Volumes defined in `base/pv.yaml`. These directories will be used to store your databases and project files.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/postgres
|
sudo mkdir -p /data/postgres
|
||||||
sudo mkdir -p /data/projects
|
sudo mkdir -p /data/projects
|
||||||
|
sudo chmod 755 /data/postgres
|
||||||
sudo chown 1000:0 /data/projects
|
sudo chown 1000:0 /data/projects
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ spec:
|
||||||
postgres_storage_class: awx-postgres-volume
|
postgres_storage_class: awx-postgres-volume
|
||||||
postgres_storage_requirements:
|
postgres_storage_requirements:
|
||||||
requests:
|
requests:
|
||||||
storage: 2Gi
|
storage: 8Gi
|
||||||
|
|
||||||
projects_persistence: true
|
projects_persistence: true
|
||||||
projects_existing_claim: awx-projects-claim
|
projects_existing_claim: awx-projects-claim
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ spec:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
persistentVolumeReclaimPolicy: Retain
|
persistentVolumeReclaimPolicy: Retain
|
||||||
capacity:
|
capacity:
|
||||||
storage: 2Gi
|
storage: 8Gi
|
||||||
storageClassName: awx-postgres-volume
|
storageClassName: awx-postgres-volume
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /data/postgres
|
path: /data/postgres
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue