use ingressroute
ci / build (push) Waiting to run Details

This commit is contained in:
CJ_Clippy 2024-06-28 20:42:10 -08:00
parent 68c994b6f9
commit 3a6b6179f3
1 changed files with 45 additions and 25 deletions

View File

@ -38,6 +38,51 @@ spec:
port: 8001
targetPort: 5678
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: echo
namespace: futureporn
spec:
entryPoints:
- web
routes:
- match: Host(`echo.fp.sbtp.xyz`)
kind: Rule
services:
- name: echo
port: 80
# ---
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: echo
# namespace: futureporn
# annotations:
# traefik.ingress.kubernetes.io/router.entrypoints: web
# traefik.ingress.kubernetes.io/router.tls: "false"
# # cert-manager.io/cluster-issuer: "{{ .Values.certManager.issuer }}"
# spec:
# rules:
# - host: "{{ .Values.echo.hostname }}"
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: echo
# port:
# number: 8001
# tls:
# - secretName: echo-cert
{{ if eq .Values.environment "development" }}
---
apiVersion: chisel-operator.io/v1
@ -50,28 +95,3 @@ spec:
port: 9090
auth: chisel
{{ end }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: echo
namespace: futureporn
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
traefik.ingress.kubernetes.io/router.tls: "false"
# cert-manager.io/cluster-issuer: "{{ .Values.certManager.issuer }}"
spec:
rules:
- host: "{{ .Values.echo.hostname }}"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: echo
port:
number: 8001
tls:
- secretName: echo-cert