File tree Expand file tree Collapse file tree 1 file changed +11
-16
lines changed
packages/ping-home/terraform Expand file tree Collapse file tree 1 file changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -10,17 +10,7 @@ resource "google_cloud_run_v2_service" "checker" {
1010 }
1111 max_instance_request_concurrency = 1
1212 volumes {
13- name = " home-lan-endpoint"
14- secret {
15- secret = google_secret_manager_secret. home_lan_endpoint . secret_id
16- items {
17- version = " latest"
18- path = " home-lan-endpoint"
19- }
20- }
21- }
22- volumes {
23- name = " tailscale-auth-key"
13+ name = " secrets"
2414 secret {
2515 secret = google_secret_manager_secret. tailscale_auth_key . secret_id
2616 items {
@@ -39,12 +29,17 @@ resource "google_cloud_run_v2_service" "checker" {
3929 cpu_idle = true
4030 }
4131 volume_mounts {
42- name = " home-lan-endpoint "
43- mount_path = " /secrets/home-lan-endpoint "
32+ name = " secrets "
33+ mount_path = " /secrets"
4434 }
45- volume_mounts {
46- name = " tailscale-auth-key"
47- mount_path = " /secrets/tailscale-auth-key"
35+ env {
36+ name = " HOME_LAN_ENDPOINT"
37+ value_source {
38+ secret_key_ref {
39+ secret = " home-lan-endpoint"
40+ version = " latest"
41+ }
42+ }
4843 }
4944 env {
5045 name = " TS_HOSTNAME"
You can’t perform that action at this time.
0 commit comments