feat: restructure
feat: enable stuff?
This commit is contained in:
@@ -51,8 +51,11 @@ Yay! you now have an interface, and an IP address to broadcast on :D
|
||||
|
||||
## Deploying secrets
|
||||
|
||||
```sh
|
||||
kubectl create secret generic 1password-credentials -n 1password-system --from-literal=1password-credentials.json="$(cat 1password-credentials.json|base64 )"
|
||||
|
||||
kubectl create secret generic 1password-token --namespace 1password-system --from-literal password=<token>
|
||||
```sh
|
||||
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.json/1password-credentials.json.base64)"
|
||||
kubectl create secret generic -n 1password-system 1password-token --from-literal password="$(op read 'op://cluster/op-token/op-token')"
|
||||
```
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../base/podinfo.yaml
|
||||
# - ../base/podinfo.yaml
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: apps
|
||||
namespace: flux-system
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: infra-configs
|
||||
interval: 1m0s
|
||||
path: ./apps/prod
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m0s
|
||||
wait: true
|
||||
# ---
|
||||
# apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
# kind: Kustomization
|
||||
# metadata:
|
||||
# name: apps
|
||||
# namespace: flux-system
|
||||
# spec:
|
||||
# dependsOn:
|
||||
# - name: infra-configs
|
||||
# interval: 1m0s
|
||||
# path: ./apps/prod
|
||||
# prune: true
|
||||
# sourceRef:
|
||||
# kind: GitRepository
|
||||
# name: flux-system
|
||||
# timeout: 5m0s
|
||||
# wait: true
|
||||
|
||||
36
cluster/base/infra/1password.yaml
Normal file
36
cluster/base/infra/1password.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-1password
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
path: ./infra/controllers/1password
|
||||
dependsOn:
|
||||
- name: infra-metallb-config
|
||||
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-1password-config
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
path: ./infra/configs/1password
|
||||
dependsOn:
|
||||
- name: infra-1password
|
||||
prune: true
|
||||
retryInterval: 1m0s
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m0s
|
||||
wait: true
|
||||
18
cluster/base/infra/external-dns.yaml
Normal file
18
cluster/base/infra/external-dns.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# ---
|
||||
# apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
# kind: Kustomization
|
||||
# metadata:
|
||||
# name: infra-external-dns
|
||||
# namespace: flux-system
|
||||
# spec:
|
||||
# interval: 1h0m0s
|
||||
# path: ./infra/controllers/external-dns
|
||||
# dependsOn:
|
||||
# - name: infra-1password-config
|
||||
# prune: true
|
||||
# retryInterval: 1m0s
|
||||
# sourceRef:
|
||||
# kind: GitRepository
|
||||
# name: flux-system
|
||||
# timeout: 5m0s
|
||||
# wait: true
|
||||
18
cluster/base/infra/longhorn.yaml
Normal file
18
cluster/base/infra/longhorn.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-longhorn
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
path: ./infra/controllers/longhorn
|
||||
dependsOn:
|
||||
- name: infra-metallb-config
|
||||
prune: true
|
||||
retryInterval: 1m0s
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m0s
|
||||
wait: true
|
||||
@@ -2,29 +2,13 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-namespaces
|
||||
name: infra-metallb
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
path: ./infra/namespaces
|
||||
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-controllers
|
||||
namespace: flux-system
|
||||
spec:
|
||||
path: ./infra/controllers/metallb
|
||||
dependsOn:
|
||||
- name: infra-namespaces
|
||||
interval: 1h0m0s
|
||||
path: ./infra/controllers
|
||||
prune: true
|
||||
retryInterval: 1m0s
|
||||
sourceRef:
|
||||
@@ -36,16 +20,17 @@ spec:
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-configs
|
||||
name: infra-metallb-config
|
||||
namespace: flux-system
|
||||
spec:
|
||||
dependsOn:
|
||||
- name: infra-controllers
|
||||
interval: 1h0m0s
|
||||
path: ./infra/configs
|
||||
path: ./infra/configs/metallb
|
||||
dependsOn:
|
||||
- name: infra-metallb
|
||||
prune: true
|
||||
retryInterval: 1m0s
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m0s
|
||||
wait: true
|
||||
16
cluster/base/infra/namespaces.yaml
Normal file
16
cluster/base/infra/namespaces.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: infra-namespaces
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1h0m0s
|
||||
path: ./infra/namespaces
|
||||
prune: true
|
||||
retryInterval: 1m0s
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
timeout: 5m0s
|
||||
wait: true
|
||||
18
cluster/base/infra/traefik.yaml
Normal file
18
cluster/base/infra/traefik.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
# ---
|
||||
# apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
# kind: Kustomization
|
||||
# metadata:
|
||||
# name: infra-longhorn
|
||||
# namespace: flux-system
|
||||
# spec:
|
||||
# interval: 1h0m0s
|
||||
# path: ./infra/controllers/traefik
|
||||
# dependsOn:
|
||||
# - name: infra-namespaces
|
||||
# prune: true
|
||||
# retryInterval: 1m0s
|
||||
# sourceRef:
|
||||
# kind: GitRepository
|
||||
# name: flux-system
|
||||
# timeout: 5m0s
|
||||
# wait: true
|
||||
@@ -1,5 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- config-metallb.yaml
|
||||
- config-1password.yaml
|
||||
32
infra/controllers/external-dns/external-dns.yaml
Normal file
32
infra/controllers/external-dns/external-dns.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: external-dns-repo
|
||||
namespace: external-dns-system
|
||||
spec:
|
||||
interval: 15m0s
|
||||
url: https://kubernetes-sigs.github.io/external-dns/
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: external-dns
|
||||
namespace: external-dns-system
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: external-dns
|
||||
version: 1.15.0
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: external-dns
|
||||
namespace: external-dns-system
|
||||
interval: 15m
|
||||
timeout: 5m
|
||||
releaseName: external-dns
|
||||
values:
|
||||
crd:
|
||||
create: true
|
||||
sources:
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- metallb.yaml
|
||||
- longhorn.yaml
|
||||
- traefik.yaml
|
||||
- 1password.yaml
|
||||
Reference in New Issue
Block a user