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

This commit is contained in:
CJ_Clippy 2024-06-28 22:30:27 -08:00
parent ebc7638267
commit 5347c90254
2 changed files with 41 additions and 40 deletions

View File

@ -1,7 +1,7 @@
apiVersion: v1
name: fp
description: The Galaxy's Best VTuber Hentai Site
version: 0.0.20
version: 0.0.21
keywords:
- fp
- futureporn

View File

@ -41,50 +41,51 @@ spec:
port: 8001
targetPort: 5678
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: echo
namespace: futureporn
spec:
entryPoints:
- web
- websecure
tls:
secretName: echo-cert
routes:
- match: Host(`echo.fp.sbtp.xyz`) || PathPrefix(`/extra/echo`)
kind: Rule
services:
- name: echo
port: 8001
# ---
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# ---
# apiVersion: traefik.io/v1alpha1
# kind: IngressRoute
# 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
# entryPoints:
# - web
# - websecure
# tls:
# - secretName: echo-cert
# secretName: echo-cert
# routes:
# - match: Host(`echo.fp.sbtp.xyz`) || PathPrefix(`/extra/echo`)
# kind: Rule
# services:
# - name: echo
# port: 8001
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: echo
namespace: futureporn
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure,traefik
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" }}