mirror of
https://github.com/Expand-sys/awx-on-k3s
synced 2025-12-16 05:52:15 +11:00
docs: change command order
This commit is contained in:
parent
c4f59d9fa0
commit
04f4ad026d
8 changed files with 13 additions and 13 deletions
|
|
@ -170,9 +170,9 @@ Prepare directories for Persistent Volumes defined in `base/pv.yaml`. These dire
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/postgres-15/data
|
sudo mkdir -p /data/postgres-15/data
|
||||||
sudo mkdir -p /data/projects
|
sudo mkdir -p /data/projects
|
||||||
sudo chmod 700 /data/postgres-15/data
|
|
||||||
sudo chown 26:0 /data/postgres-15/data
|
sudo chown 26:0 /data/postgres-15/data
|
||||||
sudo chown 1000:0 /data/projects
|
sudo chown 1000:0 /data/projects
|
||||||
|
sudo chmod 700 /data/postgres-15/data
|
||||||
```
|
```
|
||||||
|
|
||||||
### Deploy AWX
|
### Deploy AWX
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@ Prepare directories for Persistent Volumes to store backup files that defined in
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/backup
|
sudo mkdir -p /data/backup
|
||||||
sudo chmod 700 /data/backup
|
|
||||||
sudo chown 26:0 /data/backup
|
sudo chown 26:0 /data/backup
|
||||||
|
sudo chmod 700 /data/backup
|
||||||
```
|
```
|
||||||
|
|
||||||
Then deploy Persistent Volume and Persistent Volume Claim.
|
Then deploy Persistent Volume and Persistent Volume Claim.
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ Prepare directories for Persistent Volumes defined in `containergroup/case1/pv.y
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/work
|
sudo mkdir -p /data/work
|
||||||
sudo chmod 700 /data/work
|
|
||||||
sudo chown 1000:0 /data/work
|
sudo chown 1000:0 /data/work
|
||||||
|
sudo chmod 700 /data/work
|
||||||
```
|
```
|
||||||
|
|
||||||
Create PV and PVC.
|
Create PV and PVC.
|
||||||
|
|
@ -188,8 +188,8 @@ Prepare directories for Persistent Volumes defined in `containergroup/case2/pv.y
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/demo
|
sudo mkdir -p /data/demo
|
||||||
sudo chmod 700 /data/demo
|
|
||||||
sudo chown 1000:0 /data/demo
|
sudo chown 1000:0 /data/demo
|
||||||
|
sudo chmod 700 /data/demo
|
||||||
```
|
```
|
||||||
|
|
||||||
Create Namespace, PV, and PVC.
|
Create Namespace, PV, and PVC.
|
||||||
|
|
|
||||||
|
|
@ -123,8 +123,8 @@ Prepare directories for Persistent Volumes defined in `galaxy/galaxy/pv.yaml`.
|
||||||
sudo mkdir -p /data/galaxy/postgres-13
|
sudo mkdir -p /data/galaxy/postgres-13
|
||||||
sudo mkdir -p /data/galaxy/redis
|
sudo mkdir -p /data/galaxy/redis
|
||||||
sudo mkdir -p /data/galaxy/file
|
sudo mkdir -p /data/galaxy/file
|
||||||
sudo chmod 700 /data/galaxy/postgres-13
|
|
||||||
sudo chown 1000:0 /data/galaxy/file
|
sudo chown 1000:0 /data/galaxy/file
|
||||||
|
sudo chmod 700 /data/galaxy/postgres-13
|
||||||
```
|
```
|
||||||
|
|
||||||
### Deploy Galaxy NG
|
### Deploy Galaxy NG
|
||||||
|
|
|
||||||
|
|
@ -41,9 +41,9 @@ Then prepare directories for your PVs. `/data/projects` is required if you are r
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/postgres-15/data
|
sudo mkdir -p /data/postgres-15/data
|
||||||
sudo mkdir -p /data/projects
|
sudo mkdir -p /data/projects
|
||||||
sudo chmod 700 /data/postgres-15/data
|
|
||||||
sudo chown 26:0 /data/postgres-15/data
|
sudo chown 26:0 /data/postgres-15/data
|
||||||
sudo chown 1000:0 /data/projects
|
sudo chown 1000:0 /data/projects
|
||||||
|
sudo chmod 700 /data/postgres-15/data
|
||||||
```
|
```
|
||||||
|
|
||||||
Then deploy PV and PVC. It is recommended that making the size of PVs and PVCs same as the PVs which your AWX used when the backup was taken.
|
Then deploy PV and PVC. It is recommended that making the size of PVs and PVCs same as the PVs which your AWX used when the backup was taken.
|
||||||
|
|
|
||||||
|
|
@ -117,8 +117,8 @@ Prepare directories for Persistent Volumes defined in `base/pv.yaml`. This direc
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo mkdir -p /data/eda/postgres-13/data
|
sudo mkdir -p /data/eda/postgres-13/data
|
||||||
sudo chmod 700 /data/eda/postgres-13/data
|
|
||||||
sudo chown 26:0 /data/eda/postgres-13/data
|
sudo chown 26:0 /data/eda/postgres-13/data
|
||||||
|
sudo chmod 700 /data/eda/postgres-13/data
|
||||||
```
|
```
|
||||||
|
|
||||||
### Deploy EDA Server
|
### Deploy EDA Server
|
||||||
|
|
|
||||||
|
|
@ -310,18 +310,18 @@ drwxr-xr-x. 2 root root 18 Aug 20 10:09 /data/postgres-13
|
||||||
drwxr-xr-x. 3 root root 20 Aug 20 10:09 /data/postgres-13/data
|
drwxr-xr-x. 3 root root 20 Aug 20 10:09 /data/postgres-13/data
|
||||||
```
|
```
|
||||||
|
|
||||||
In my environment, `755` and `root:root` (`0:0`) works correctly. So you can try following commands.
|
For example, `755` and `root:root` (`0:0`) should work. So you can try following commands.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo chmod 755 /data/postgres-13 /data/postgres-13/data
|
|
||||||
sudo chown 0:0 /data/postgres-13 /data/postgres-13/data
|
sudo chown 0:0 /data/postgres-13 /data/postgres-13/data
|
||||||
|
sudo chmod 755 /data/postgres-13 /data/postgres-13/data
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, you can also try `999:0` as owner/group for the directory. `999` is [the UID of the `postgres` user which used in the container](https://github.com/docker-library/postgres/blob/master/13/bullseye/Dockerfile#L13).
|
Or, you can also try `999:0` as owner/group for the directory. `999` is [the UID of the `postgres` user which used in the container](https://github.com/docker-library/postgres/blob/master/13/bullseye/Dockerfile#L13).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo chmod 755 /data/postgres-13 /data/postgres-13/data
|
|
||||||
sudo chown 999:0 /data/postgres-13 /data/postgres-13/data
|
sudo chown 999:0 /data/postgres-13 /data/postgres-13/data
|
||||||
|
sudo chmod 755 /data/postgres-13 /data/postgres-13/data
|
||||||
```
|
```
|
||||||
|
|
||||||
For the PostgreSQL 15 that deployed by **AWX Operator 2.13.0 or later**, if you followed my guide, it would be `/data/postgres-15`. There is additional `data` directory created by K3s under `/data/postgres-15`.
|
For the PostgreSQL 15 that deployed by **AWX Operator 2.13.0 or later**, if you followed my guide, it would be `/data/postgres-15`. There is additional `data` directory created by K3s under `/data/postgres-15`.
|
||||||
|
|
@ -332,11 +332,11 @@ drwxr-xr-x. 2 root root 18 Aug 20 10:09 /data/postgres-15
|
||||||
drwxr-xr-x. 3 26 root 20 Aug 20 10:09 /data/postgres-15/data
|
drwxr-xr-x. 3 26 root 20 Aug 20 10:09 /data/postgres-15/data
|
||||||
```
|
```
|
||||||
|
|
||||||
In my environment, `700` and `26:0` works correctly. So you can try following commands. `26` is [the UID of the user which used in the container](https://github.com/sclorg/postgresql-container/blob/master/15/Dockerfile.c9s#L86).
|
For example, `700` and `26:0` should work. So you can try following commands. `26` is [the UID of the user which used in the container](https://github.com/sclorg/postgresql-container/blob/master/15/Dockerfile.c9s#L86).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo chmod 700 /data/postgres-15 /data/postgres-15/data
|
|
||||||
sudo chown 26:0 /data/postgres-15 /data/postgres-15/data
|
sudo chown 26:0 /data/postgres-15 /data/postgres-15/data
|
||||||
|
sudo chmod 700 /data/postgres-15 /data/postgres-15/data
|
||||||
```
|
```
|
||||||
|
|
||||||
## Troubles during Daily Use
|
## Troubles during Daily Use
|
||||||
|
|
|
||||||
|
|
@ -39,8 +39,8 @@ If you are using AWX Operator `0.14.0` or later and want to upgrade to newer ver
|
||||||
> ```bash
|
> ```bash
|
||||||
> # Required only when upgrading from 2.12.2 or earlier to 2.13.1 or later
|
> # Required only when upgrading from 2.12.2 or earlier to 2.13.1 or later
|
||||||
> sudo mkdir -p /data/postgres-15/data
|
> sudo mkdir -p /data/postgres-15/data
|
||||||
> sudo chmod 700 /data/postgres-15/data
|
|
||||||
> sudo chown 26:0 /data/postgres-15/data
|
> sudo chown 26:0 /data/postgres-15/data
|
||||||
|
> sudo chmod 700 /data/postgres-15/data
|
||||||
> cat <<EOF > pv-postgres-15.yaml
|
> cat <<EOF > pv-postgres-15.yaml
|
||||||
> ---
|
> ---
|
||||||
> apiVersion: v1
|
> apiVersion: v1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue