Skip to content

Commit

Permalink
feat: add keycloak secret
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Oct 25, 2023
1 parent 5c45dee commit 1796759
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
10 changes: 1 addition & 9 deletions application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,13 @@ resource "argocd_application" "keycloak" {
source {
helm {
release_name = "keycloak"
value_files = [
"$values/keycloak/prod/values.yaml"
]
values = file("keycloak/prod/values.yaml")
}
repo_url = "https://codecentric.github.io/helm-charts"
target_revision = "18.x.x"
chart = "keycloak"
}

source {
repo_url = var.repo_url
target_revision = "HEAD"
ref = "values"
}

source {
repo_url = var.repo_url
target_revision = "HEAD"
Expand Down
3 changes: 2 additions & 1 deletion keycloak/prod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
resources:
- route.yaml
- route.yaml
- secret.yaml
2 changes: 1 addition & 1 deletion keycloak/prod/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- websecure
routes:
- kind: Rule
match: Host(`account.nsl.xyz`) && PathPrefix(`/`)
match: Host(`account.nsl.xyz`)
services:
- name: keycloak-http
port: 80
Expand Down
11 changes: 11 additions & 0 deletions keycloak/prod/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Secret
metadata:
name: keycloak-db-creds
namespace: guardian
annotations:
avp.kubernetes.io/path: "guardian/keycloak-db-creds"
type: Opaque
stringData:
username: "<username>"
password: "<password>"

0 comments on commit 1796759

Please sign in to comment.