fix(ory): re-enable hydra-maester, fix namespace, add memory limit
This commit is contained in:
@@ -2,11 +2,6 @@
|
|||||||
# DOMAIN_SUFFIX is replaced by overlay patches.
|
# DOMAIN_SUFFIX is replaced by overlay patches.
|
||||||
# DSN and system secrets come from the overlay-specific Secret.
|
# DSN and system secrets come from the overlay-specific Secret.
|
||||||
|
|
||||||
# Disable the maester controller — it manages OAuth2Client CRDs which we don't use locally.
|
|
||||||
# OAuth2 clients are registered directly via the Hydra admin API.
|
|
||||||
maester:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
hydra:
|
hydra:
|
||||||
config:
|
config:
|
||||||
dsn: "postgresql://hydra:$(HYDRA_DB_PASSWORD)@postgres-rw.data.svc.cluster.local:5432/hydra_db"
|
dsn: "postgresql://hydra:$(HYDRA_DB_PASSWORD)@postgres-rw.data.svc.cluster.local:5432/hydra_db"
|
||||||
|
|||||||
@@ -7,6 +7,16 @@ resources:
|
|||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- login-ui-deployment.yaml
|
- login-ui-deployment.yaml
|
||||||
|
|
||||||
|
# The hydra-maester sub-chart does not set .Release.Namespace in its Deployment template.
|
||||||
|
patches:
|
||||||
|
- patch: |
|
||||||
|
- op: add
|
||||||
|
path: /metadata/namespace
|
||||||
|
value: ory
|
||||||
|
target:
|
||||||
|
kind: Deployment
|
||||||
|
name: hydra-hydra-maester
|
||||||
|
|
||||||
helmCharts:
|
helmCharts:
|
||||||
# helm repo add ory https://k8s.ory.sh/helm/charts
|
# helm repo add ory https://k8s.ory.sh/helm/charts
|
||||||
- name: kratos
|
- name: kratos
|
||||||
|
|||||||
@@ -93,6 +93,21 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: hydra-hydra-maester
|
||||||
|
namespace: ory
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: hydra-maester
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 64Mi
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user