Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion apps/cohorter/WebAPP/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,4 @@ Thumbs.db
# =========================
.env
.env.*
!.env.example
secrets/
3 changes: 1 addition & 2 deletions apps/nifi/.gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# NiFi and Py4J type stubs are maintained source files.
!typings/**/*.pyi

# Share the K3s example and keep deployment env files private.
# Keep deployment env files private.
!/env/
/env/*
!/env/nifi.env.example

# Mutable host configuration and processor state.
conf/flow.json.gz
Expand Down
33 changes: 27 additions & 6 deletions apps/nifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,19 @@ production configurations use `cogstacksystems/nifi` and `cogstacksystems/nginx`

### Environment files

From the repository root, create `apps/nifi/env/` and add `general.env` and
`nifi.env`. Both files are Git-ignored. `general.env` can be empty if you have
no shared settings. Use the following as a starting point for `nifi.env`.
Edit `apps/nifi/env/nifi.env` directly. For a new checkout, create it with the
settings below. This file also supplies NiFi and NGINX settings when rendering
Helm values. For Docker, create `apps/nifi/env/general.env` for shared settings.
It can be empty. Both files are Git-ignored.

```dotenv
NIFI_DOCKER_CPU_MIN=1
NIFI_DOCKER_CPU_MAX=2
NIFI_DOCKER_RAM=4g

NIFI_UID=1000
NIFI_GID=1000
NIFI_INTERNAL_PORT_NGINX=8443
NIFI_WEB_PROXY_HOST=localhost:8443
NIFI_HEALTHCHECK_HOST=nifi
```
Expand All @@ -44,9 +48,26 @@ for additional settings.

### TLS certificates

Use the existing certificate generators or supply a TLS bundle. Place the files
under `deployment/security/certificates/`, or set `SECURITY_DIR` in `nifi.env`
to the parent of your deployment’s `certificates/` directory.
Compose uses `deployment/security/certificates/` by default. To select a bundle,
set `SECURITY_DIR` in `apps/nifi/env/general.env` to the absolute path of the
directory containing `certificates/`.

```dotenv
SECURITY_DIR=/path/to/cogstack_platform/deployment/security
```

The Make targets load this file before running Compose. For direct Compose
commands, source `./export_env_vars.sh` from `apps/nifi/docker/` first.

For a fresh local bundle, configure the store passwords in
[`certificates.env`](../../deployment/env/certificates.env) and run the
deployment targets from the repository root:

```bash
make -C deployment -j1 certs-root certs-nifi certs-nginx
```

The bundle needs these files under `certificates/`.

| Files | Purpose |
| --- | --- |
Expand Down
70 changes: 0 additions & 70 deletions apps/nifi/docker/setup_dev_tls.sh

This file was deleted.

11 changes: 5 additions & 6 deletions deployment/charts/nifi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ Use the NGINX `/nifi/` and `/nifi-api/` routes with HTTP Basic authentication.
## Persistent configuration and data

The chart creates six PVCs per replica. Set their sizes in
`apps/nifi/env/nifi.env` using Kubernetes quantities such as `200Gi`. For a new
deployment, copy the example to that path. [NiFi env example](../../../apps/nifi/env/nifi.env.example)
[Environment-based values](#environment-based-values)
`apps/nifi/env/nifi.env` using Kubernetes quantities such as `200Gi`.
[NiFi environment settings](../../../apps/nifi/README.md#environment-files)

| Volume | Environment variable | Size per replica |
| --- | --- | --- |
Expand Down Expand Up @@ -73,9 +72,9 @@ and readiness probes use NiFi's loopback HTTP endpoint.
## Environment-based values

Run `make -C deployment helm-values-nifi` to render `values.env.yaml` using
`deployment/env/nifi.env`. Set `NIFI_K3S_WHITELIST` to comma-separated names
from `kubectl get nodes` to populate `allowedNodes`. An empty list allows any
otherwise eligible node.
`deployment/env/nifi.env`, which links to `apps/nifi/env/nifi.env`. Set
`NIFI_K3S_WHITELIST` to comma-separated names from `kubectl get nodes` to
populate `allowedNodes`. An empty list allows any otherwise eligible node.

## Resource names

Expand Down
Loading