Skip to content

Commit

Permalink
chore(KeepAlive): Cloud Function Gen 2 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurVardevanyan committed Dec 15, 2024
1 parent fbcee91 commit a92df5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,15 @@ kubernetes_host="https://kubernetes.default.svc:443"
# Pod With Service Account Token Mounted
kubectl cp -n homelab toolbox-0:/var/run/secrets/kubernetes.io/serviceaccount/..data/ca.crt /tmp/ca.crt

vault write auth/homelab/config \
vault write auth/kubernetes/config \
token_reviewer_jwt="${token_reviewer_jwt}" \
kubernetes_host=${kubernetes_host} \
kubernetes_ca_cert=@/tmp/ca.crt \
disable_local_ca_jwt=true

vault write auth/kubernetes/role/argocd \
bound_service_account_names=pipeline \
bound_service_account_namespaces=homelab \
bound_service_account_names=argocd-repo-server \
bound_service_account_namespaces=argocd \
policies=argocd \
ttl=1h

Expand Down
6 changes: 3 additions & 3 deletions terraform/homelab/keep-alive.tf
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ resource "google_cloud_scheduler_job" "okd_homelab_keep_alive_cloud_function" {


http_target {
uri = google_cloudfunctions2_function.okd_homelab_keep_alive_cloud_function.service_config[0].uri
http_method = "POST"
uri = google_cloudfunctions_function.okd_homelab_keep_alive_cloud_function.https_trigger_url
body = base64encode("{}")

oidc_token {
audience = "${google_cloudfunctions2_function.okd_homelab_keep_alive_cloud_function.service_config[0].uri}/"
service_account_email = google_service_account.keep_alive.email
}

}

}

0 comments on commit a92df5a

Please sign in to comment.