Add files from previous commit
This commit is contained in:
parent
75d460e9fc
commit
898ae4d390
|
@ -27,7 +27,7 @@ spec:
|
|||
tag: 2022.5.2
|
||||
authentik:
|
||||
error_reporting:
|
||||
enabled: true
|
||||
enabled: false
|
||||
postgresql:
|
||||
host: "10.244.87.21"
|
||||
name: "authentik"
|
||||
|
@ -39,6 +39,7 @@ spec:
|
|||
enabled: false
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
hosts:
|
||||
- host: auth.asraphiel.dev
|
||||
paths:
|
||||
|
|
|
@ -3,3 +3,4 @@ kind: Kustomization
|
|||
resources:
|
||||
- test
|
||||
- authentik
|
||||
- networking
|
||||
|
|
4
flux/cluster/apps/networking/kustomization.yaml
Normal file
4
flux/cluster/apps/networking/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- traefik
|
47
flux/cluster/apps/networking/traefik/helm.yaml
Normal file
47
flux/cluster/apps/networking/traefik/helm.yaml
Normal file
|
@ -0,0 +1,47 @@
|
|||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: traefik
|
||||
namespace: traefik
|
||||
spec:
|
||||
interval: 5m
|
||||
chart:
|
||||
spec:
|
||||
# renovate: registryUrl=https://helm.traefik.io/traefik
|
||||
chart: traefik
|
||||
version: 10.19.5
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: traefik-charts
|
||||
namespace: flux-system
|
||||
interval: 5m
|
||||
values:
|
||||
logs:
|
||||
general:
|
||||
level: WARN
|
||||
ingressClass:
|
||||
enabled: true
|
||||
isDefaultClass: true
|
||||
fallbackApiVersion: v1
|
||||
globalArguments: []
|
||||
additionalArguments:
|
||||
- "--entryPoints.web.forwardedHeaders.insecure=true"
|
||||
- "--entryPoints.websecure.forwardedHeaders.insecure=true"
|
||||
ports:
|
||||
traefik:
|
||||
port: 9000
|
||||
expose: true
|
||||
web:
|
||||
port: 80
|
||||
exposedPort: 80
|
||||
expose: true
|
||||
websecure:
|
||||
port: 443
|
||||
exposedPort: 443
|
||||
expose: true
|
||||
pilot:
|
||||
enabled: false
|
||||
experimental:
|
||||
plugins:
|
||||
enabled: false
|
4
flux/cluster/apps/networking/traefik/kustomization.yaml
Normal file
4
flux/cluster/apps/networking/traefik/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- helm.yaml
|
|
@ -3,3 +3,4 @@ kind: Kustomization
|
|||
resources:
|
||||
- external-secrets-charts.yaml
|
||||
- authentik-charts.yaml
|
||||
- traefik-charts.yaml
|
||||
|
|
8
flux/cluster/base/flux-system/charts/traefik-charts.yaml
Normal file
8
flux/cluster/base/flux-system/charts/traefik-charts.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
apiVersion: source.toolkit.fluxcd.io/v1beta2
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: traefik-charts
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 15m
|
||||
url: https://helm.traefik.io/traefik
|
|
@ -4,3 +4,4 @@ resources:
|
|||
- test-name.yaml
|
||||
- external-secrets.yaml
|
||||
- authentik.yaml
|
||||
- traefik.yaml
|
||||
|
|
6
flux/cluster/core/namespaces/traefik.yaml
Normal file
6
flux/cluster/core/namespaces/traefik.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
kind: Namespace
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: traefik
|
||||
labels:
|
||||
name: traefik
|
|
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- external-secrets
|
||||
- traefik
|
||||
|
|
29
flux/cluster/crds/traefik/crds.yaml
Normal file
29
flux/cluster/crds/traefik/crds.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1beta1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: traefik-crd-source
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 30m
|
||||
url: https://github.com/traefik/traefik-helm-chart.git
|
||||
ref:
|
||||
tag: v10.19.5
|
||||
ignore: |
|
||||
# exclude all
|
||||
/*
|
||||
# path to crds
|
||||
!/traefik/crds/
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: traefik-crds
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 15m
|
||||
prune: false
|
||||
wait: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: traefik-crd-source
|
4
flux/cluster/crds/traefik/kustomization.yaml
Normal file
4
flux/cluster/crds/traefik/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- crds.yaml
|
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
proxy = path: {
|
||||
|
||||
http2 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
|
@ -10,6 +10,7 @@ let
|
|||
};
|
||||
};
|
||||
bigProxy = path: {
|
||||
http2 = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
|
@ -33,10 +34,12 @@ in {
|
|||
recommendedOptimisation = true;
|
||||
recommendedProxySettings = true;
|
||||
recommendedTlsSettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
package = pkgs.nginxMainline;
|
||||
|
||||
virtualHosts."asraphiel.dev" = {
|
||||
forceSSL = true;
|
||||
http2 = true;
|
||||
enableACME = true;
|
||||
root = "/etc/main";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue