-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…#4644) * add loading Admin API server secret from 1Password * fix incorrect comment * add custom configmap for the Admin API server, add task that will deploy it * switch to the custom configmap and secret for the Admin API deployment * add ADMIN_API__PORT env to the Admin API server ConfigMap * change invalid refs names * modify Admin API server config map data * move Rocket.Chat URI from the configmap to the secrets (for the Admin API server)
- Loading branch information
Showing
5 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
ansible/roles/schulcloud-server-core/templates/admin-api-server-configmap.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: admin-api-server-configmap | ||
namespace: {{ NAMESPACE }} | ||
labels: | ||
app: api-admin | ||
data: | ||
NODE_OPTIONS: "--max-old-space-size=3072" | ||
NEST_LOG_LEVEL: "info" | ||
ADMIN_API__PORT: "4030" | ||
SC_DOMAIN: "{{ DOMAIN }}" | ||
FEATURE_PROMETHEUS_METRICS_ENABLED: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
ansible/roles/schulcloud-server-core/templates/admin-api-server-onepassword.yml.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: admin-api-server-secret | ||
namespace: {{ NAMESPACE }} | ||
labels: | ||
app: api-admin | ||
spec: | ||
itemPath: "vaults/{{ ONEPASSWORD_OPERATOR_VAULT }}/items/admin-api-server" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters