Skip to content

Commit

Permalink
fewer resources
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Mar 7, 2025
1 parent 0916b3b commit d73a110
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 41 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ Common issues and solutions:

| Name | Description |
|------|-------------|
| <a name="output_client_id"></a> [client\_id](#output\_client\_id) | The client ID for accessing keycloak. |
| <a name="output_client_secret"></a> [client\_secret](#output\_client\_secret) | The client secret for accessing keycloak. |
| <a name="output_module_name"></a> [module\_name](#output\_module\_name) | The name of this module. |
| <a name="output_module_version"></a> [module\_version](#output\_module\_version) | The version of this module. |
| <a name="output_namespace"></a> [namespace](#output\_namespace) | The namespace in which keycloak gets installed in. |
Expand Down
7 changes: 2 additions & 5 deletions keycloak-values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 8 additions & 18 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
18 changes: 0 additions & 18 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d73a110

Please sign in to comment.