Skip to content

Commit

Permalink
[fix/ts] updated hostname variable to adequate pod env
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberdev committed Nov 6, 2022
1 parent 7b8f924 commit f4f57d6
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion apps/data/metabase/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "metabase"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/data/postgres/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "databases"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/home/wyze/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "wyze"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/matrix/element/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "matrix"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/matrix/proxies/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "matrix"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/monitoring/uptime-kuma/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "kuma"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/networking/tailscale/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
value: "false"
- name: KUBERNETES_SERVICE_HOST
value: "true"
- name: HOSTNAME
- name: TS_HOSTNAME
value: "unifi"
- name: DEST_PORT
value: "8443"
Expand Down
2 changes: 1 addition & 1 deletion apps/networking/tailscale/proxy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
value: "false"
- name: KUBERNETES_SERVICE_HOST
value: "true"
- name: HOSTNAME
- name: TS_HOSTNAME
value: "service-hostname"
- name: DEST_PORT
value: "8443"
Expand Down
2 changes: 1 addition & 1 deletion apps/networking/tailscale/router/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
value: "false"
- name: KUBERNETES_SERVICE_HOST
value: "true"
- name: HOSTNAME
- name: TS_HOSTNAME
value: "router"
- name: TS_ROUTES
value: "10.43.0.0/16,10.42.0.0/24"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/media/beets/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "media.beets"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/media/jellyfin/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "media-tv"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/media/lidarr/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "media.lidarr"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/media/mango/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "manga.media"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/n8n/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "n8nio"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/rss/gen/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "gen-rss"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
2 changes: 1 addition & 1 deletion apps/services/rss/hub/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ patches:
- op: replace
path: "/spec/template/spec/containers/0/env/2"
value:
name: HOSTNAME
name: TS_HOSTNAME
value: "hub-rss"
- op: replace
path: "/spec/template/spec/containers/0/env/3"
Expand Down
13 changes: 6 additions & 7 deletions policy.hujson
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
],
},
"tagOwners": {
"tag:lan": ["group:admins"],
"tag:databases": ["group:admins"],
"tag:services": ["group:admins"],
"tag:networking": ["group:admins"],
"tag:internal": ["group:admins"],
"tag:docker": ["group:admins"],
"tag:cluster": ["group:admins"],
"tag:databases": ["group:admins"],
"tag:network": ["group:admins"],
"tag:clients": ["group:admins"],
"tag:nodes": ["group:admins"],
"tag:matrix": ["group:admins"],
"tag:cluster": ["group:admins"],
},
"ssh": [
{
Expand Down
9 changes: 5 additions & 4 deletions tasks/tailscale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ vars:
RESET: tput sgr0
CLEAR: tput reset
PATH_ERROR: is not installed or correctly configured in PATH.
TAILSCALE_VERSION: "1.3.2"
TAILSCALE_VERSION: 1.32.2-2
# sh: curl -s "https://api.github.com/repos/tailscale/tailscale/releases" | jq -r ".[0].name"

silent: true

Expand Down Expand Up @@ -84,7 +85,7 @@ tasks:
- kubectl apply -f config/ts-secret.yaml -n kube-system
- kubectl apply -f config/ts-secret.yaml -n argocd
- kubectl apply -f config/ts-secret.yaml -n services
- kubectl apply -f config/ts-secret.yaml -n monitoring
- kubectl apply -f config/ts-secret.yaml -n matrix
- kubectl apply -f config/ts-secret.yaml -n rss
- rm config/ts-secret.yaml
ignore_error: true
Expand All @@ -102,6 +103,6 @@ tasks:
dir: apps/networking/tailscale/docker
cmds:
- docker push docker.io/grubertech/tailscale:latest
- docker push docker.io/grubertech/tailscale:{{.TAILSCALE_VERSION}}
- docker push docker.io/grubertech/tailscale-sidecar:{{.TAILSCALE_VERSION}}
- docker push docker.io/grubertech/tailscale:v{{.TAILSCALE_VERSION}}
- docker push docker.io/grubertech/tailscale-sidecar:v{{.TAILSCALE_VERSION}}
ignore_error: true

0 comments on commit f4f57d6

Please sign in to comment.