Compare commits
10 Commits
9e04b902a3
...
d4d3fa79be
| Author | SHA1 | Date | |
|---|---|---|---|
| d4d3fa79be | |||
| 857fedec9c | |||
| c342951e1e | |||
| 35b64225d8 | |||
| 6ae87cc744 | |||
| 63a8f29ae3 | |||
| a4a5d58b79 | |||
| 0a00cfa550 | |||
|
|
64d15b406a | ||
|
|
333b9ba6d0 |
@@ -56,6 +56,6 @@ Yay! you now have an interface, and an IP address to broadcast on :D
|
|||||||
op connect server create cluster --vaults cluster
|
op connect server create cluster --vaults cluster
|
||||||
op connect token create cluster --server <Server ID> --vault cluster
|
op connect token create cluster --server <Server ID> --vault cluster
|
||||||
|
|
||||||
kubectl create secret generic -n 1password-system 1password-credentials --from-literal=password="$(op read 'op://cluster/1password-credentials/password')"
|
kubectl create secret generic -n 1password-system 1password-credentials --from-literal=password="$(op read 'op://cluster/1password-credentials/1password-credentials.json')"
|
||||||
kubectl create secret generic -n 1password-system 1password-token --from-literal password="$(op read 'op://cluster/1password-token/password')"
|
kubectl create secret generic -n 1password-system 1password-token --from-literal password="$(op read 'op://cluster/1password-token/password')"
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ Now that I have VMs booted into the ISO, I need to setup the VMs. This would fir
|
|||||||
|
|
||||||
## Flux
|
## Flux
|
||||||
```bash
|
```bash
|
||||||
flux bootstrap gitea --owner=yadunut --repository=homelab --hostname=git.yadunut.dev --path flux
|
flux bootstrap github --owner=yadunut --repository=homelab --path cluster/base --personal --components-extra image-reflector-controller,image-automation-controller
|
||||||
```
|
```
|
||||||
|
|
||||||
## Give Ups
|
## Give Ups
|
||||||
|
|||||||
@@ -57,17 +57,11 @@ spec:
|
|||||||
metallb.universe.tf/allow-shared-ip: gitea
|
metallb.universe.tf/allow-shared-ip: gitea
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
|
||||||
traefik.ingress.kubernetes.io/router.middlewares: gitea-old-to-new-redirect@kubernetescrd
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: git.yadunut.dev
|
- host: git.yadunut.dev
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
- host: gitea.ts.yadunut.com
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
tls:
|
tls:
|
||||||
- secretName: wildcard-cert-i.yadunut.dev-prod
|
- secretName: wildcard-cert-i.yadunut.dev-prod
|
||||||
hosts:
|
hosts:
|
||||||
@@ -145,14 +139,3 @@ spec:
|
|||||||
services:
|
services:
|
||||||
- name: gitea-ssh
|
- name: gitea-ssh
|
||||||
port: 2222
|
port: 2222
|
||||||
---
|
|
||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: Middleware
|
|
||||||
metadata:
|
|
||||||
name: old-to-new-redirect
|
|
||||||
namespace: gitea
|
|
||||||
spec:
|
|
||||||
redirectRegex:
|
|
||||||
regex: ^http://gitea.ts.yadunut.com/(.*)
|
|
||||||
replacement: https://git.yadunut.dev/${1}
|
|
||||||
permanent: true
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
# - ../base/podinfo.yaml
|
- ../base/podinfo.yaml
|
||||||
# - ../base/harbor.yaml
|
# - ../base/harbor.yaml
|
||||||
# - ../base/gitea.yaml
|
- ../base/gitea.yaml
|
||||||
# - ../base/yadunut-dev.yaml
|
# - ../base/yadunut-dev.yaml
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
27
cluster/base/flux-system/gotk-sync.yaml
Normal file
27
cluster/base/flux-system/gotk-sync.yaml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# This manifest was generated by flux. DO NOT EDIT.
|
||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: GitRepository
|
||||||
|
metadata:
|
||||||
|
name: flux-system
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 1m0s
|
||||||
|
ref:
|
||||||
|
branch: main
|
||||||
|
secretRef:
|
||||||
|
name: flux-system
|
||||||
|
url: ssh://git@github.com/yadunut/homelab
|
||||||
|
---
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: flux-system
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 10m0s
|
||||||
|
path: ./cluster/base
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
5
cluster/base/flux-system/kustomization.yaml
Normal file
5
cluster/base/flux-system/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- gotk-components.yaml
|
||||||
|
- gotk-sync.yaml
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
# ---
|
---
|
||||||
# apiVersion: kustomize.toolkit.fluxcd.io/v1
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
# kind: Kustomization
|
kind: Kustomization
|
||||||
# metadata:
|
metadata:
|
||||||
# name: infra-longhorn
|
name: infra-longhorn
|
||||||
# namespace: flux-system
|
namespace: flux-system
|
||||||
# spec:
|
spec:
|
||||||
# interval: 1h0m0s
|
interval: 1h0m0s
|
||||||
# path: ./infra/controllers/longhorn
|
path: ./infra/controllers/longhorn
|
||||||
# prune: true
|
prune: true
|
||||||
# retryInterval: 1m0s
|
retryInterval: 1m0s
|
||||||
# sourceRef:
|
sourceRef:
|
||||||
# kind: GitRepository
|
kind: GitRepository
|
||||||
# name: flux-system
|
name: flux-system
|
||||||
# timeout: 5m0s
|
timeout: 5m0s
|
||||||
# wait: true
|
wait: true
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ spec:
|
|||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: 1password-repo
|
name: 1password-repo
|
||||||
version: 1.16.x
|
version: 1.17.x
|
||||||
interval: 1m0s
|
interval: 1m0s
|
||||||
values:
|
values:
|
||||||
connect:
|
connect:
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ spec:
|
|||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: authentik-repo
|
name: authentik-repo
|
||||||
version: 2024.10.1
|
version: 2025.4.0
|
||||||
interval: 1m0s
|
interval: 1m0s
|
||||||
values:
|
values:
|
||||||
global:
|
global:
|
||||||
@@ -61,4 +61,3 @@ spec:
|
|||||||
existingSecret: "authentik-postgresql-password"
|
existingSecret: "authentik-postgresql-password"
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
sourceRef:
|
sourceRef:
|
||||||
kind: HelmRepository
|
kind: HelmRepository
|
||||||
name: external-dns-repo
|
name: external-dns-repo
|
||||||
version: 1.15.0
|
version: 1.16.x
|
||||||
interval: 1m
|
interval: 1m
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
values:
|
values:
|
||||||
@@ -41,4 +41,3 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: cloudflare-token
|
name: cloudflare-token
|
||||||
key: password
|
key: password
|
||||||
|
|
||||||
|
|||||||
14
nixos/flake.lock
generated
14
nixos/flake.lock
generated
@@ -52,11 +52,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746729224,
|
"lastModified": 1747226316,
|
||||||
"narHash": "sha256-9R4sOLAK1w3Bq54H3XOJogdc7a6C2bLLmatOQ+5pf5w=",
|
"narHash": "sha256-INBPqK9ogSvw5Q9HJ5H7KI83v6Jc3goAnXN3b2F+eMU=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "85555d27ded84604ad6657ecca255a03fd878607",
|
"rev": "490c0d6bd151e33caa5b2cf0ae37758234e947f6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -142,16 +142,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1746576598,
|
"lastModified": 1747235650,
|
||||||
"narHash": "sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0=",
|
"narHash": "sha256-qiS7n66dq1BXRdv5EdchZwFaNd1Q+M1lq/ibg4Z/s58=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "b3582c75c7f21ce0b429898980eddbbf05c68e55",
|
"rev": "49e6e192a7c6eb961dd485410fa8983e0df21b50",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixpkgs-unstable",
|
"ref": "release-24.11",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|||||||
Reference in New Issue
Block a user