From d73a1107f204d20111c427e1df8f89d027673384 Mon Sep 17 00:00:00 2001 From: "Matthew C. Morgan" Date: Thu, 6 Mar 2025 23:22:17 -0500 Subject: [PATCH] fewer resources --- README.md | 2 ++ keycloak-values.yaml.tmpl | 7 ++----- outputs.tf | 26 ++++++++------------------ variables.tf | 18 ------------------ 4 files changed, 12 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 3d8b549..b95c0ab 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,8 @@ Common issues and solutions: | Name | Description | |------|-------------| +| [client\_id](#output\_client\_id) | The client ID for accessing keycloak. | +| [client\_secret](#output\_client\_secret) | The client secret for accessing keycloak. | | [module\_name](#output\_module\_name) | The name of this module. | | [module\_version](#output\_module\_version) | The version of this module. | | [namespace](#output\_namespace) | The namespace in which keycloak gets installed in. | diff --git a/keycloak-values.yaml.tmpl b/keycloak-values.yaml.tmpl index 8c4ebe2..30d5fbb 100644 --- a/keycloak-values.yaml.tmpl +++ b/keycloak-values.yaml.tmpl @@ -17,17 +17,14 @@ auth: autoscaling: enabled: true - minReplicas: 2 + minReplicas: 1 maxReplicas: 5 targetCPU: "80" -pdb: - minAvailable: 1 - resources: requests: cpu: 1m - memory: 256Mi + memory: 1Mi limits: cpu: 2000m memory: 2Gi diff --git a/outputs.tf b/outputs.tf index e53e2d1..c1fe6dc 100644 --- a/outputs.tf +++ b/outputs.tf @@ -3,25 +3,15 @@ output "public_endpoint" { value = module.ingress_resources.service_url } -# output "db_instance_address" { -# description = "The db connection instance endpoint" -# value = module.keycloak_db.db_instance_endpoint -# } - -# output "port" { -# description = "Database Port" -# value = module.keycloak_db.db_instance_port -# } - -# output "username" { -# description = "The database username" -# value = module.keycloak_db.db_instance_username -# } +output "client_id" { + description = "The client ID for accessing keycloak." + value = dependency.eks_keycloak.outputs.client_id +} -# output "db_master_user_secret_arn" { -# description = "The ARN of the master user secret" -# value = module.keycloak_db.db_instance_master_user_secret_arn -# } +output "client_secret" { + description = "The client secret for accessing keycloak." + value = dependency.eks_keycloak.outputs.client_secret +} output "namespace" { description = "The namespace in which keycloak gets installed in." diff --git a/variables.tf b/variables.tf index fe589e9..222f691 100644 --- a/variables.tf +++ b/variables.tf @@ -21,23 +21,11 @@ variable "keycloak_tag" { default = "22.0.1-debian-11-r30" } -# variable "gogatekeeper_tag" { -# description = "The tag associated with the gogatekeeper_version" -# type = string -# default = "2.6.2" -# } - variable "cluster_domain" { description = "The domain name used to reference ingresses for the cluster." type = string } -# variable "keycloak_hostname" { -# description = "The hostname address for the keycloak database." -# type = string -# default = "" -# } - variable "keycloak_database" { description = "The name of the database to create in the RDS instance." type = string @@ -50,12 +38,6 @@ variable "keycloak_user" { default = "bn_keycloak" } -# variable "keycloak_password" { -# description = "The password for the Keycloak database." -# type = string -# sensitive = true -# } - variable "default_storage_class" { description = "The default storage class to use for persistent volumes" type = string