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 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')"
|
||||
```
|
||||
|
@ -47,7 +47,7 @@ Now that I have VMs booted into the ISO, I need to setup the VMs. This would fir
|
||||
|
||||
## Flux
|
||||
```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
|
||||
|
@ -57,17 +57,11 @@ spec:
|
||||
metallb.universe.tf/allow-shared-ip: gitea
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.middlewares: gitea-old-to-new-redirect@kubernetescrd
|
||||
hosts:
|
||||
- host: git.yadunut.dev
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
- host: gitea.ts.yadunut.com
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
tls:
|
||||
- secretName: wildcard-cert-i.yadunut.dev-prod
|
||||
hosts:
|
||||
@ -145,14 +139,3 @@ spec:
|
||||
services:
|
||||
- name: gitea-ssh
|
||||
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
|
||||
kind: Kustomization
|
||||
resources:
|
||||
# - ../base/podinfo.yaml
|
||||
- ../base/podinfo.yaml
|
||||
# - ../base/harbor.yaml
|
||||
# - ../base/gitea.yaml
|
||||
- ../base/gitea.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
|
||||
# kind: Kustomization
|
||||
# metadata:
|
||||
# name: infra-longhorn
|
||||
# namespace: flux-system
|
||||
# spec:
|
||||
# interval: 1h0m0s
|
||||
# path: ./infra/controllers/longhorn
|
||||
# prune: true
|
||||
# retryInterval: 1m0s
|
||||
# sourceRef:
|
||||
# kind: GitRepository
|
||||
# name: flux-system
|
||||
# timeout: 5m0s
|
||||
# wait: true
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-longhorn
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
path: ./infra/controllers/longhorn
|
||||
prune: true
|
||||
retryInterval: 1m0s
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m0s
|
||||
wait: true
|
||||
|
@ -21,7 +21,7 @@ spec:
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: 1password-repo
|
||||
version: 1.16.x
|
||||
version: 1.17.x
|
||||
interval: 1m0s
|
||||
values:
|
||||
connect:
|
||||
|
@ -37,7 +37,7 @@ spec:
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: authentik-repo
|
||||
version: 2024.10.1
|
||||
version: 2025.4.0
|
||||
interval: 1m0s
|
||||
values:
|
||||
global:
|
||||
@ -61,4 +61,3 @@ spec:
|
||||
existingSecret: "authentik-postgresql-password"
|
||||
redis:
|
||||
enabled: true
|
||||
|
||||
|
@ -29,7 +29,7 @@ spec:
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: external-dns-repo
|
||||
version: 1.15.0
|
||||
version: 1.16.x
|
||||
interval: 1m
|
||||
timeout: 5m
|
||||
values:
|
||||
@ -41,4 +41,3 @@ spec:
|
||||
secretKeyRef:
|
||||
name: cloudflare-token
|
||||
key: password
|
||||
|
||||
|
@ -52,11 +52,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1746729224,
|
||||
"narHash": "sha256-9R4sOLAK1w3Bq54H3XOJogdc7a6C2bLLmatOQ+5pf5w=",
|
||||
"lastModified": 1747226316,
|
||||
"narHash": "sha256-INBPqK9ogSvw5Q9HJ5H7KI83v6Jc3goAnXN3b2F+eMU=",
|
||||
"owner": "nix-community",
|
||||
"repo": "disko",
|
||||
"rev": "85555d27ded84604ad6657ecca255a03fd878607",
|
||||
"rev": "490c0d6bd151e33caa5b2cf0ae37758234e947f6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -142,16 +142,16 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1746576598,
|
||||
"narHash": "sha256-FshoQvr6Aor5SnORVvh/ZdJ1Sa2U4ZrIMwKBX5k2wu0=",
|
||||
"lastModified": 1747235650,
|
||||
"narHash": "sha256-qiS7n66dq1BXRdv5EdchZwFaNd1Q+M1lq/ibg4Z/s58=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b3582c75c7f21ce0b429898980eddbbf05c68e55",
|
||||
"rev": "49e6e192a7c6eb961dd485410fa8983e0df21b50",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixpkgs-unstable",
|
||||
"ref": "release-24.11",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/release-24.11";
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
Loading…
Reference in New Issue
Block a user