-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(networking): deploy nginx tailscale
Signed-off-by: Steven Kreitzer <[email protected]>
- Loading branch information
Showing
3 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
kubernetes/apps/networking/nginx/tailscale/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app nginx-tailscale | ||
spec: | ||
interval: 30m | ||
timeout: 15m | ||
chart: | ||
spec: | ||
chart: ingress-nginx | ||
version: 4.10.1 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: ingress-nginx-charts | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
values: | ||
fullnameOverride: *app | ||
controller: | ||
replicaCount: 2 | ||
allowSnippetAnnotations: true | ||
admissionWebhooks: | ||
objectSelector: | ||
matchExpressions: | ||
- key: ingress-class | ||
operator: In | ||
values: | ||
- nginx-tailscale | ||
config: | ||
client-body-buffer-size: 100M | ||
client-body-timeout: 2m | ||
client-header-timeout: 2m | ||
enable-brotli: true | ||
enable-ocsp: true | ||
enable-real-ip: true | ||
hsts-max-age: 31449600 | ||
keep-alive-requests: 10000 | ||
keep-alive: 2m | ||
proxy-body-size: 0 | ||
proxy-buffer-size: 16k | ||
proxy-read-timeout: 7d | ||
proxy-send-timeout: 7d | ||
ssl-protocols: TLSv1.3 TLSv1.2 | ||
use-forwarded-headers: true | ||
extraArgs: | ||
default-ssl-certificate: networking/wildcard-tls | ||
ingressClass: nginx-tailscale | ||
ingressClassResource: | ||
name: nginx-tailscale | ||
default: false | ||
controllerValue: k8s.io/nginx-tailscale | ||
metrics: | ||
enabled: true | ||
serviceMonitor: | ||
enabled: true | ||
namespace: networking | ||
namespaceSelector: | ||
any: true | ||
resources: | ||
requests: | ||
cpu: 100m | ||
limits: | ||
memory: 512Mi | ||
service: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/hostname: tailscale.${PUBLIC_DOMAIN} | ||
loadBalancerClass: tailscale | ||
externalTrafficPolicy: Local | ||
topologySpreadConstraints: | ||
- maxSkew: 1 | ||
topologyKey: kubernetes.io/hostname | ||
whenUnsatisfiable: DoNotSchedule | ||
labelSelector: | ||
matchLabels: | ||
app.kubernetes.io/instance: *app | ||
app.kubernetes.io/component: controller | ||
defaultBackend: | ||
enabled: false |
5 changes: 5 additions & 0 deletions
5
kubernetes/apps/networking/nginx/tailscale/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./helmrelease.yaml |