add go redirect
This commit is contained in:
parent
90c65fceba
commit
3771d0df41
20
argocd-applications/base/go-redirect.yaml
Normal file
20
argocd-applications/base/go-redirect.yaml
Normal 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
|
21
go-redirect/base/go-redirect-deployment.yaml
Normal file
21
go-redirect/base/go-redirect-deployment.yaml
Normal 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
|
12
go-redirect/base/go-redirect-ingress.yaml
Normal file
12
go-redirect/base/go-redirect-ingress.yaml
Normal 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: {}
|
4
go-redirect/base/go-redirect-namespace.yaml
Normal file
4
go-redirect/base/go-redirect-namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: go-redirect
|
11
go-redirect/base/go-redirect-svc.yaml
Normal file
11
go-redirect/base/go-redirect-svc.yaml
Normal 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
|
10
go-redirect/kustomization.yaml
Normal file
10
go-redirect/kustomization.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user