add go redirect

This commit is contained in:
Mans Ziesel 2024-10-24 18:01:28 +02:00
parent 90c65fceba
commit 3771d0df41
6 changed files with 78 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argo-app-go-redirect
namespace: argocd
spec:
destination:
name: ''
namespace: default
server: https://kubernetes.default.svc
source:
path: go-redirect
repoURL: https://git.mziesel.nl/mans/argocd-test
targetRevision: HEAD
sources: []
project: default
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -0,0 +1,21 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-redirect
namespace: go-redirect
spec:
replicas: 3
selector:
matchLabels:
app: go-redirect
template:
metadata:
labels:
app: go-redirect
spec:
containers:
- image: git.mziesel.nl/mans/goredir:latest
name: go-redirect
ports:
- name: web
containerPort: 80

View File

@ -0,0 +1,12 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: go-redirect-ingressroute
spec:
routes:
- match: Host(`*.mzsl.nl`)
kind: Rule
services:
- name: go-redirect
port: web
tls: {}

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: go-redirect

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: go-redirect
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: go-redirect

View File

@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: go-redirect
resources:
- ./base/go-redirect-namespace.yaml
- ./base/go-redirect-deployment.yaml
- ./base/go-redirect-svc.yaml
- ./base/go-redirect-ingress.yaml