5 Commits

Author SHA1 Message Date
ducoterra
1a92c0bb16 consolidate traefik 2020-12-11 17:15:53 -05:00
ducoterra
8d788aaf25 update to correct registry 2020-09-18 09:43:46 -04:00
ducoterra
e9dc6a284a add http 2020-09-17 20:49:53 -04:00
ducoterra
156ec87493 update hub address 2020-09-17 20:47:46 -04:00
ducoterra
16810bf7fd remove pihole + pi glances 2020-09-01 10:48:23 -04:00
3 changed files with 31 additions and 41 deletions

View File

@@ -19,7 +19,6 @@ build:
script: script:
- echo $DEPLOY - echo $DEPLOY
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
deploy_to_prod: deploy_to_prod:
variables: variables:
DEPLOY: prod DEPLOY: prod

View File

@@ -63,24 +63,14 @@ services:
url: "https://monitor.ducoterra.net/" url: "https://monitor.ducoterra.net/"
tag: "Monitoring" tag: "Monitoring"
target: '_blank' target: '_blank'
- name: "Red"
logo: "assets/tools/glances.png"
url: "http://red"
tag: "Monitoring"
target: '_blank'
- name: "Grey"
logo: "assets/tools/glances.png"
url: "http://grey"
tag: "Monitoring"
target: '_blank'
- name: "Purple"
logo: "assets/tools/glances.png"
url: "http://purple"
tag: "Monitoring"
target: '_blank'
- name: "Network" - name: "Network"
icon: "fas fa-server" icon: "fas fa-server"
items: items:
- name: "Traefik"
logo: assets/tools/traefik.png
tag: "Network"
url: "https://traefik.ducoterra.net/"
target: '_blank'
- name: "Unifi" - name: "Unifi"
logo: assets/tools/unifi.png logo: assets/tools/unifi.png
tag: "Network" tag: "Network"
@@ -90,19 +80,4 @@ services:
logo: assets/tools/protect.ico logo: assets/tools/protect.ico
tag: "Network" tag: "Network"
url: "https://protect.ui.com/" url: "https://protect.ui.com/"
target: '_blank'
- name: "Traefik Internal"
logo: assets/tools/traefik.png
tag: "Network"
url: "https://traefik-internal.ducoterra.net/"
target: '_blank'
- name: "Traefik External"
logo: assets/tools/traefik.png
tag: "Network"
url: "https://traefik-external.ducoterra.net/"
target: '_blank'
- name: "Pihole"
logo: assets/tools/pihole.svg
tag: "Network"
url: "http://pihole.ducoterra.net/admin/"
target: '_blank' target: '_blank'

View File

@@ -1,31 +1,29 @@
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: {{ .Release.Name }}-internal-tls name: {{ .Release.Name }}-tls
annotations: annotations:
kubernetes.io/ingress.class: traefik-internal kubernetes.io/ingress.class: traefik
spec: spec:
entryPoints: entryPoints:
- websecure - websecure
tls: tls:
certResolver: myresolver certResolver: duconet
domains:
- main: "*.ducoterra.net"
routes: routes:
- match: Host(`{{ .Release.Name }}.ducoterra.net`) - match: Host(`{{ .Release.Name }}.ducoterra.net`)
kind: Rule kind: Rule
services: services:
- name: {{ .Release.Name }} - name: {{ .Release.Name }}
port: 8080 port: 8080
middlewares:
- name: basic-auth-{{ .Release.Name }}
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: {{ .Release.Name }}-internal-web name: {{ .Release.Name }}
annotations: annotations:
kubernetes.io/ingress.class: traefik-internal kubernetes.io/ingress.class: traefik
spec: spec:
entryPoints: entryPoints:
- web - web
@@ -36,4 +34,22 @@ spec:
- name: {{ .Release.Name }} - name: {{ .Release.Name }}
port: 8080 port: 8080
middlewares: middlewares:
- name: httpsredirect - name: httpsredirect-{{ .Release.Name }}
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: httpsredirect-{{ .Release.Name }}
spec:
redirectScheme:
scheme: https
permanent: true
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: basic-auth-{{ .Release.Name }}
spec:
basicAuth:
secret: authsecret
removeHeader: true