refactor: updates for dev (always use rebase to update)

This commit is contained in:
Khue Doan 2023-05-22 07:31:06 +07:00
parent 8e1f5eb682
commit 1bc1939bca
12 changed files with 26 additions and 21 deletions

View File

@ -47,6 +47,7 @@ test:
clean:
docker compose --project-directory ./metal/roles/pxe_server/files down
k3d cluster delete homelab-dev
docs:
mkdocs serve

View File

@ -4,10 +4,10 @@ elementweb:
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/target: "homelab-tunnel.khuedoan.com"
external-dns.alpha.kubernetes.io/target: "homelab-tunnel.127-0-0-1.nip.io"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
hosts:
- host: &frontend_host chat.khuedoan.com
- host: &frontend_host chat.127-0-0-1.nip.io
paths:
- path: /
pathType: Prefix
@ -17,8 +17,8 @@ elementweb:
- *frontend_host
config:
default:
base_url: https://matrix.khuedoan.com
server_name: khuedoan.com
base_url: https://matrix.127-0-0-1.nip.io
server_name: 127-0-0-1.nip.io
dendrite:
dendrite_config:

View File

@ -29,7 +29,7 @@ app-template:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: &host paperless.khuedoan.com
- host: &host paperless.127-0-0-1.nip.io
paths:
- path: /
pathType: Prefix

View File

@ -1,5 +1,5 @@
data "cloudflare_zone" "zone" {
name = "khuedoan.com"
name = "127-0-0-1.nip.io"
}
data "cloudflare_api_token_permission_groups" "all" {}

View File

@ -3,7 +3,7 @@
env ?= prod
export KUBECONFIG = $(shell pwd)/kubeconfig.yaml
default: boot cluster
default: k3d
~/.ssh/id_ed25519:
ssh-keygen -t ed25519 -P '' -f "$@"
@ -21,3 +21,7 @@ cluster:
console:
ansible-console \
--inventory inventories/${env}.yml
k3d:
k3d cluster start homelab-dev || k3d cluster create --config k3d-dev.yaml
k3d kubeconfig get homelab-dev > kubeconfig.yaml

View File

@ -1,6 +1,6 @@
dex:
config:
issuer: https://dex.khuedoan.com
issuer: https://dex.127-0-0-1.nip.io
storage:
type: kubernetes
config:
@ -27,7 +27,7 @@ dex:
- id: grafana-sso
name: Grafana
redirectURIs:
- 'https://grafana.khuedoan.com/login/generic_oauth'
- 'https://grafana.127-0-0-1.nip.io/login/generic_oauth'
secretEnv: GRAFANA_SSO_CLIENT_SECRET
- id: gitea
name: Gitea
@ -43,7 +43,7 @@ dex:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: &host dex.khuedoan.com
- host: &host dex.127-0-0-1.nip.io
paths:
- path: /
pathType: ImplementationSpecific

View File

@ -1,4 +1,4 @@
module git.khuedoan.com/khuedoan/homelab/gitea/config
module git.127-0-0-1.nip.io/khuedoan/homelab/gitea/config
go 1.19

View File

@ -5,7 +5,7 @@ gitea:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: &host git.khuedoan.com
- host: &host git.127-0-0-1.nip.io
paths:
- path: /
pathType: Prefix

View File

@ -5,7 +5,7 @@ grafana:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- &host grafana.khuedoan.com
- &host grafana.127-0-0-1.nip.io
tls:
- secretName: grafana-general-tls
hosts:
@ -20,7 +20,7 @@ grafana:
envFromSecret: grafana-secrets
grafana.ini:
server:
root_url: https://grafana.khuedoan.com
root_url: https://grafana.127-0-0-1.nip.io
auth.generic_oauth:
enabled: true
allow_sign_up: true
@ -28,6 +28,6 @@ grafana:
client_id: grafana-sso
client_secret: $__env{GRAFANA_SSO_CLIENT_SECRET}
scopes: openid profile email groups
auth_url: https://dex.khuedoan.com/auth
token_url: https://dex.khuedoan.com/token
api_url: https://dex.khuedoan.com/userinfo
auth_url: https://dex.127-0-0-1.nip.io/auth
token_url: https://dex.127-0-0-1.nip.io/token
api_url: https://dex.127-0-0-1.nip.io/userinfo

View File

@ -5,7 +5,7 @@ renovate:
config: |
{
"platform": "gitea",
"endpoint": "https://git.khuedoan.com/api/v1",
"endpoint": "https://git.127-0-0-1.nip.io/api/v1",
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
"autodiscover": true
}

View File

@ -16,7 +16,7 @@ argocd-apps:
generators:
- git:
repoURL: &repoURL https://github.com/khuedoan/homelab
revision: &revision master
revision: &revision dev
directories:
- path: system/*
- path: platform/*

View File

@ -1,6 +1,6 @@
argo-cd:
global:
domain: argocd.khuedoan.com
domain: argocd.127-0-0-1.nip.io
configs:
params:
server.insecure: true
@ -36,7 +36,7 @@ argocd-apps:
generators:
- git:
repoURL: &repoURL http://gitea-http.gitea:3000/ops/homelab
revision: &revision master
revision: &revision dev
directories:
- path: system/*
- path: platform/*