From 296024a1696d83a00d3afeb74704c3b1cad224f8 Mon Sep 17 00:00:00 2001 From: Jason Gilfoil Date: Thu, 29 Feb 2024 19:31:12 +0000 Subject: [PATCH 1/2] fix plex token in homepage --- .../default/homepage/app/secret.sops.yaml | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/kubernetes/apps/default/homepage/app/secret.sops.yaml b/kubernetes/apps/default/homepage/app/secret.sops.yaml index b51e744b..b005983f 100644 --- a/kubernetes/apps/default/homepage/app/secret.sops.yaml +++ b/kubernetes/apps/default/homepage/app/secret.sops.yaml @@ -3,13 +3,13 @@ kind: Secret metadata: name: homepage-secret stringData: - HOMEPAGE_VAR_CLOUDFLARED_ACCOUNTID: ENC[AES256_GCM,data:SLTbeM9PKnDDjPGhc0pxbTfIYf/KXHWgzHYhUcekGbk=,iv:68dnSQhY0rQEwOzSIDzxs1+euXrnrPuvHfg3zQKFRy4=,tag:/fyN+rWClhbt/tp43wE0Uw==,type:str] - HOMEPAGE_VAR_CLOUDFLARED_TUNNELID: ENC[AES256_GCM,data:Qt7tQlkzY9sq9Bn7zs0SWqlkpu7h6zBXLricQB0En/cxg1jk,iv:ZxQVbYZvZMzEX+pXgSn2M/hRopKhr/1AJGKPh401ZyY=,tag:8t3NiIMEfii/Rq+dz/gstg==,type:str] - HOMEPAGE_VAR_CLOUDFLARED_API_TOKEN: ENC[AES256_GCM,data:ZXVXt64+eOBPZ6n3Z69A4BKNm+WqAZOp4r2mMs1oPDjp+ydcgdDGrg==,iv:jAXQMJs5Fz06l99F9hi9V5lepH5eyenh1+6z010Sp+s=,tag:3THfUcbAmiaPSem3EUwpPg==,type:str] - HOMEPAGE_VAR_GRAFANA_USERNAME: ENC[AES256_GCM,data:d23dKE4=,iv:XuJNbfBVDz39NSuXJa1Hu5nE4FdjqftNSoMiN4Xj/ak=,tag:11LKAOacy8Yk69Yy4SHy9A==,type:str] - HOMEPAGE_VAR_GRAFANA_PASSWORD: ENC[AES256_GCM,data:3dQ3o4vWHLYVH73jmTIZ/LG5,iv:hCHykY/btYGc3BH5t+eQ+JEoQvtbSwX4YuI5UxAO0DA=,tag:q2whPLTrDEJ5ixS6LLXJdQ==,type:str] - HOMEPAGE_VAR_PLEX_TOKEN: ENC[AES256_GCM,data:9DreT+aDF2J+Mo9iniqME+6uk7U=,iv:UJIfpjtfCJIj5gqHBdCOkBuAoSb87tc3vlfAvn+oaTk=,tag:wG5jA4CxgwJWJqGV6zN4oA==,type:str] - HOMEPAGE_VAR_PROWLARR_TOKEN: ENC[AES256_GCM,data:XWooNJ/WCP96sXjxFgFuKjuQC88KZPS/Hgy4dwwEgaQ=,iv:TdEyY78tRWfOCmapXKg1lfRMQgRYkQlRLwzHOHOwur4=,tag:qWeV2bxIG/58NsqLvcggGw==,type:str] + HOMEPAGE_VAR_CLOUDFLARED_ACCOUNTID: ENC[AES256_GCM,data:IFFZZ/EtTafaY5S4oqvkIYkeO+OLvlr1NURf7XJ7Hto=,iv:cDhVCb39LBtGbxadTelKz44sl1tiJl7yUzElhxzBfPk=,tag:QRe+L0IX5NYg6POsEZ1R7Q==,type:str] + HOMEPAGE_VAR_CLOUDFLARED_TUNNELID: ENC[AES256_GCM,data:FURNPP195yf5xHm2ekDN6odskx5HHzP0j70gtPWbFMgkGB8Y,iv:jMCaDdKifNu36HiKgVhnNMYn98h5TffL1kL4hR0wfUU=,tag:0hmOpBYgYCXWas/kLJ/BLw==,type:str] + HOMEPAGE_VAR_CLOUDFLARED_API_TOKEN: ENC[AES256_GCM,data:QUYMsdwdGsrwRHhRx8TQ+Le7hFNmez4FpS/Mmh1XVUcXNU8K1Jp/jA==,iv:Q/HKjFhs6sZ3YfgcPd8mAoOpxXVsqIMGkbUcH89pubI=,tag:9vEVwY40ALJtLy96hK+qYg==,type:str] + HOMEPAGE_VAR_GRAFANA_USERNAME: ENC[AES256_GCM,data:ourJuis=,iv:zhDX/C1C5goP0JOfsJ9WZX7WhyXvT8bLRZLkngSY064=,tag:sdtNlESmKYTsoT0ovh0F3g==,type:str] + HOMEPAGE_VAR_GRAFANA_PASSWORD: ENC[AES256_GCM,data:xZOdE1O4ItcdpNHFq4zBNJvz,iv:5ZQ2yd+AlsSlznxJO7QOGCyRCAQaZ7ILWQ35Gb32tZE=,tag:5c9BH60uWNeA1GwgU+j2Uw==,type:str] + HOMEPAGE_VAR_PLEX_TOKEN: ENC[AES256_GCM,data:+gobhQ8tGN7iacQmB2052/MTXUs=,iv:AENlWBb/BnzCRBwsQFcxCVh8tEQ+qHsNa96G4bXoIMs=,tag:8GpSsmHf+SXD613YOTTFZQ==,type:str] + HOMEPAGE_VAR_PROWLARR_TOKEN: ENC[AES256_GCM,data:kTKNWQIeG3/wFE8w5oS9bhk892N7PJLpRJPK6Yo45xA=,iv:LHGD9htniSiakYNFl0QWNUZryQMinUkMUtLgemPaSXo=,tag:C/2brOgcIT58u1CXyE3pgA==,type:str] sops: kms: [] gcp_kms: [] @@ -19,14 +19,14 @@ sops: - recipient: age12rzrdtn8xhd89y23qw4kymxftuylqn5cm522jcn327atent4a40swjcgmj enc: | -----BEGIN AGE ENCRYPTED FILE----- - YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBXakVuWitQWUM4aDlNRmhJ - YkZJWm9IZW91UitQSkpZZnFieTlUSUl5ZDNJCkxjWUhFa21jcHNpM290WlNFSGFp - ZjUyWmEzUUVYOWd1YjZtUHpDWE5peE0KLS0tIHlQUjVNT1p4VElDT1h1eUljTVNJ - aG81eU5rUWhtYU1OS0NrVFJNRVZHbXMKz4wfKc1iRnpQ6+juWv37/YtemuGolVvq - Cw/ZNeDbueGWVeasVVJlq3yLkWY5WWGnk1Z8szleToRZnFDqpZ1JTw== + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA5eE1lVitOaS9qV2pFVDBm + cm9UaTJORU9ZMDZXS0UyaUw3VmM4TWkwYVdrCmsxR1dmSk1McnhBeE1iSFcxZUc0 + eEhJV1ppSUZBVlNmYldSOE9wZWNBVTQKLS0tIHEyWHFmYndBVHdIWmFNREk2cWE1 + SmNmeFBHZUtWYU4raFFzWlVJb2R6dDQKqdS3m5pOwYhpMQ1y8+bJ1o7yMDx9i8JM + GxKkPNAXqs8+67CJtXoxXu3z2R+sq0OP7eQk/T/7aOe8o5YYkPTjdQ== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-02-29T18:59:40Z" - mac: ENC[AES256_GCM,data:Ia4HRoD/z9SgZVaf6QJ27mzu5f7zPny33QsCThPGZ9PeKoW3M2W5HP9JFnaOEHSrpq60Lsu3swaHkgpgTeOv6XF5ZzKJOVe0Slg26ELkCB3/CKNaDtjLm36GarhrMsOXbYlQTH1x1q22iD5JYnFskEyKpxyg0Hx1mS5i7KYw3Dk=,iv:UavIES6BH3W19vqCZX3gf6pqWIWWa3GUyTxsyd/rWEo=,tag:lV05wLHahxvv2OOoI8uJBw==,type:str] + lastmodified: "2024-02-29T19:30:52Z" + mac: ENC[AES256_GCM,data:fsQvGqJlN1uW5I7kfp8vY0dDS8qwhgUUQfV9SlHcO6+x1FeNzPBNwGoqQtiuhGjsfGjRUq2+7mpMej52HLLdO4S2Ln4NovI5nTQJ9erls3ectkiboL1+I3KD4eY6xdBlzREPEzQWorI0hpCYuzqWDj/VPx2YhJ644iKBoqFfbzA=,iv:hzsgWGHtQ6mRLdbKxfEAwR+wmU7CLcbIhQo+yM6kS6A=,tag:XDyVAEMu2iFJ2b+77/XsyA==,type:str] pgp: [] encrypted_regex: ^(data|stringData)$ version: 3.8.1 From 7f1ed10a36624f33219884f6589c6994b419082f Mon Sep 17 00:00:00 2001 From: Jason Gilfoil Date: Thu, 29 Feb 2024 19:37:51 +0000 Subject: [PATCH 2/2] prowlarr liveness prob, try multi-line --- .../apps/media/prowlarr/app/helmrelease.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/kubernetes/apps/media/prowlarr/app/helmrelease.yaml b/kubernetes/apps/media/prowlarr/app/helmrelease.yaml index a6d37057..ab3eb617 100644 --- a/kubernetes/apps/media/prowlarr/app/helmrelease.yaml +++ b/kubernetes/apps/media/prowlarr/app/helmrelease.yaml @@ -54,12 +54,17 @@ spec: liveness: &probes enabled: true custom: true - spec: - exec: - command: - - sh - - -c - - "if [ \"$(wget -q -O- http://localhost/ping | jq -r '.status')\" = 'OK' ]; then exit 0; else exit 1; fi" + exec: + command: + - sh + - -c + - | + response=$(wget -q -O- http://localhost/ping | jq -r '.status') + if [ "$response" = "OK" ]; then + exit 0 + else + exit 1 + fi initialDelaySeconds: 0 periodSeconds: 10 timeoutSeconds: 1