initial commit

This commit is contained in:
Steve White 2022-11-30 20:42:26 -06:00
commit 0b7dae5415
4 changed files with 68 additions and 0 deletions

13
mt-cert.yaml Normal file
View File

@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: mt.r8z.us
namespace: default
spec:
secretName: mt.r8z.us-tls
issuerRef:
name: letsencrypt
kind: ClusterIssuer
commonName: mt.r8z.us
dnsNames:
- mt.r8z.us

12
mt-ing-rt.yaml Normal file
View File

@ -0,0 +1,12 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: mt-ing-rt
namespace: default
spec:
routes:
- kind: Rule
match: Host(`mt.r8z.us`) && (PathPrefix(`/`)
services:
- kind: Service
name: mt-svc

23
mt-ingress.yaml Normal file
View File

@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
name: mt-ingress
namespace: default
spec:
rules:
- host: mt.r8z.us
http:
paths:
- backend:
service:
name: mt-svc
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- mt.r8z.us
secretName: mt.r8z.us-tls

20
mt-svc.yaml Normal file
View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: mt-svc
labels:
app: mt-test
spec:
ipFamilies:
- IPv4
- IPv6
ipFamilyPolicy: RequireDualStack
selector:
app: mt-test
ports:
- protocol: TCP
name: http
port: 80
- protocol: TCP
name: https
port: 443