add traefik to loadbalancer
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
# traefik
|
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
Using flux for reconciliation.
|
|
||||||
|
|
||||||
``` bash
|
|
||||||
kubectl kustomize ./deploy/flux | kubectl apply -f -
|
|
||||||
```
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
namespace: traefik-icarus
|
|
||||||
resources:
|
|
||||||
- app-sync.yaml
|
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: traefik
|
||||||
|
spec:
|
||||||
|
|
||||||
|
releaseName: traefik
|
||||||
|
interval: 40h
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: traefik
|
||||||
|
version: 40.x.x
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: traefik
|
||||||
|
namespace: kube-system
|
||||||
|
interval: 40h
|
||||||
|
values:
|
||||||
|
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/hostname: casa-mini-minion-01
|
||||||
|
tolerations:
|
||||||
|
- key: "infra.limbosolutions.com/dedicated"
|
||||||
|
operator: "Equal"
|
||||||
|
value: "casa-mini-minion-01"
|
||||||
|
effect: "NoSchedule"
|
||||||
|
|
||||||
|
ingressClass:
|
||||||
|
enabled: true
|
||||||
|
isDefaultClass: true
|
||||||
|
name: traefik
|
||||||
|
|
||||||
|
service:
|
||||||
|
enabled: true
|
||||||
|
type: LoadBalancer
|
||||||
|
spec:
|
||||||
|
externalTrafficPolicy: Cluster
|
||||||
|
loadBalancerIP: 192.168.14.200
|
||||||
|
|
||||||
|
ports:
|
||||||
|
web:
|
||||||
|
port: 80
|
||||||
|
exposedPort: 80
|
||||||
|
expose:
|
||||||
|
default: true
|
||||||
|
protocol: TCP
|
||||||
|
websecure:
|
||||||
|
port: 443
|
||||||
|
exposedPort: 443
|
||||||
|
expose:
|
||||||
|
default: true
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
providers:
|
||||||
|
kubernetesCRD:
|
||||||
|
enabled: true
|
||||||
|
allowCrossNamespace: false
|
||||||
|
namespaces: []
|
||||||
|
ingressClass: traefik-icarus
|
||||||
|
kubernetesIngress:
|
||||||
|
enabled: true
|
||||||
|
ingressClass: traefik-icarus
|
||||||
|
|
||||||
|
additionalArguments:
|
||||||
|
- "--providers.kubernetesingress.ingressclass=traefik"
|
||||||
|
- "--providers.kubernetescrd.ingressClass=traefik"
|
||||||
|
- "--providers.kubernetescrd.allowEmptyServices=false"
|
||||||
|
- "--providers.kubernetesingress.ingressendpoint.ip=192.168.14.200"
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
|
||||||
kind: HelmRelease
|
|
||||||
metadata:
|
|
||||||
name: traefik
|
|
||||||
spec:
|
|
||||||
|
|
||||||
releaseName: traefik
|
|
||||||
interval: 40h
|
|
||||||
chart:
|
|
||||||
spec:
|
|
||||||
chart: traefik
|
|
||||||
version: 40.x.x
|
|
||||||
sourceRef:
|
|
||||||
kind: HelmRepository
|
|
||||||
name: traefik
|
|
||||||
namespace: kube-system
|
|
||||||
interval: 40h
|
|
||||||
values:
|
|
||||||
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: casa-mini-minion-01
|
|
||||||
tolerations:
|
|
||||||
- key: "infra.limbosolutions.com/dedicated"
|
|
||||||
operator: "Equal"
|
|
||||||
value: "casa-mini-minion-01"
|
|
||||||
effect: "NoSchedule"
|
|
||||||
|
|
||||||
ingressClass:
|
|
||||||
enabled: true
|
|
||||||
isDefaultClass: true
|
|
||||||
name: traefik
|
|
||||||
+2
-1
@@ -2,12 +2,13 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik
|
name: traefik
|
||||||
|
namespace: traefik
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: casa
|
name: casa
|
||||||
namespace: casa-limbosolutions-com
|
namespace: casa-limbosolutions-com
|
||||||
path: services/traefik/deploy/app
|
path: services/traefik/deploy/app/default
|
||||||
prune: true
|
prune: true
|
||||||
|
|
||||||
+2
-1
@@ -2,11 +2,12 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
metadata:
|
metadata:
|
||||||
name: traefik-icarus
|
name: traefik-icarus
|
||||||
|
namespace: traefik-icarus
|
||||||
spec:
|
spec:
|
||||||
interval: 1m
|
interval: 1m
|
||||||
sourceRef:
|
sourceRef:
|
||||||
kind: GitRepository
|
kind: GitRepository
|
||||||
name: casa
|
name: casa
|
||||||
namespace: casa-limbosolutions-com
|
namespace: casa-limbosolutions-com
|
||||||
path: services/traefik-icarus/deploy/app
|
path: services/traefik/deploy/app/icarus
|
||||||
prune: true
|
prune: true
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: kube-system
|
|
||||||
resources:
|
resources:
|
||||||
- app-sync.yaml
|
- default-sync.yaml
|
||||||
|
- icarus-sync.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user