Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[CR-7674] upd redis config for on-prem#356

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kostis-codefresh merged 3 commits intomasterfromCR-7674
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
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
2 changes: 2 additions & 0 deletions_data/home-content.yml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -238,6 +238,8 @@
localurl: /docs/administration/behind-the-firewall
- title: Codefresh Runner
localurl: /docs/administration/codefresh-runner
- title: Codefresh On-Premises
localurl: /docs/administration/codefresh-on-prem
- title: User Settings
localurl: /docs/administration/user-settings
- title: Single Sign on
Expand Down
56 changes: 23 additions & 33 deletions_docs/administration/codefresh-on-prem.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -616,35 +616,35 @@ global:
postgresPort: 5432

postgresql:
enabled: false
enabled: false #disable default postgresql subchart installation
```
#### Running the seed job manually

If you would prefer running the seed job manually, you can do it by using a script present in `your/stage-dir/codefresh/addons/seed-scripts` directory named `postgres-seed.sh`. The script takes the following set of variables that you need to have set before running it:

```
POSTGRES_SEED_USER="postgres"
POSTGRES_SEED_PASSWORD="zDyGp79XyZEqLq7V"
POSTGRES_USER="cf_user"
POSTGRES_PASSWORD="fJTFJMGV7sg5E4Bj"
POSTGRES_DATABASE="codefresh"
POSTGRES_HOST="my-postgres.ccjog7pqzunf.us-west-2.rds.amazonaws.com"
POSTGRES_PORT="5432"
```sh
exportPOSTGRES_SEED_USER="postgres"
exportPOSTGRES_SEED_PASSWORD="zDyGp79XyZEqLq7V"
exportPOSTGRES_USER="cf_user"
exportPOSTGRES_PASSWORD="fJTFJMGV7sg5E4Bj"
exportPOSTGRES_DATABASE="codefresh"
exportPOSTGRES_HOST="my-postgres.ccjog7pqzunf.us-west-2.rds.amazonaws.com"
exportPOSTGRES_PORT="5432"
```
The variables have the same meaning as the configuration values described in the previous section about Postgres.

However you **still need to specify a set of values** in the Codefresh config file as described in the section above, but with the whole **`postgresSeedJob` section omitted**, like this:

```yaml
global:
postgresUser: <POSTGRES USER>
postgresPassword: <POSTGRES PASSWORD>
postgresUser: <POSTGRES_USER>
postgresPassword: <POSTGRES_PASSWORD>
postgresDatabase: codefresh
postgresHostname: <POSTGRES HOST>
postgresHostname: <POSTGRES_HOST>
postgresPort: 5432

postgresql:
enabled: false
enabled: false #disable default postgresql subchart installation
```

### Configuring an external MongoDB
Expand DownExpand Up@@ -680,37 +680,27 @@ mongo:
```

### Configure an external Redis service

Codefresh recommends to use the Bitnami Redis [chart](https://github.com/bitnami/charts/tree/master/bitnami/redis) as a Redis store.

#### Limitations

Codefresh does not support secure connection to Redis (TLS) and AUTH username extension.

#### Configuration

Codefresh requires two Redis databases:

- the main - `cf-redis`, to store sessions, cache, etc;
- `cf-store`, to store triggers;

At the time of writing only the first one can be replaced by external Redis service,
the `cf-store` DB is used as a local storage for triggers and should run along with the installation.


To configure Codefresh to use an external Redis service, add the following parameters to your __config.yaml__:

```yaml
redis:
enabled: false
redisPassword: <MY REDIS PASS>

global:
redisUrl: <MY REDIS HOST>
runtimeRedisHost: <MY REDIS HOST>
runtimeRedisPassword: <MY REDIS PASS>
redisUrl: <REDIS_HOST>
redisPassword: <REDIS_PASS>
redisPort: 6379

runtimeRedisHost: <REDIS_HOST>
runtimeRedisPassword: <REDIS_PASS>
runtimeRedisPort: 6379
runtimeRedisDb: 2
runtimeRedisPort: <MY REDIS PORT>

redis:
enabled: false #disable default redis subchart installation
```

Where `redis*` - are for the main Redis storage, and `runtimeRedis*` - for storage is used to store pipeline logs in case of `OfflineLogging` feature is turned on. In most cases the host value is the same for these two values.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp