From 0b7dae54157beed0af59e17e1b6e0005a04d17d6 Mon Sep 17 00:00:00 2001 From: Steve White Date: Wed, 30 Nov 2022 20:42:26 -0600 Subject: [PATCH] initial commit --- mt-cert.yaml | 13 +++++++++++++ mt-ing-rt.yaml | 12 ++++++++++++ mt-ingress.yaml | 23 +++++++++++++++++++++++ mt-svc.yaml | 20 ++++++++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 mt-cert.yaml create mode 100644 mt-ing-rt.yaml create mode 100644 mt-ingress.yaml create mode 100644 mt-svc.yaml diff --git a/mt-cert.yaml b/mt-cert.yaml new file mode 100644 index 0000000..fb44600 --- /dev/null +++ b/mt-cert.yaml @@ -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 diff --git a/mt-ing-rt.yaml b/mt-ing-rt.yaml new file mode 100644 index 0000000..fcf871b --- /dev/null +++ b/mt-ing-rt.yaml @@ -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 diff --git a/mt-ingress.yaml b/mt-ingress.yaml new file mode 100644 index 0000000..8d19be6 --- /dev/null +++ b/mt-ingress.yaml @@ -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 diff --git a/mt-svc.yaml b/mt-svc.yaml new file mode 100644 index 0000000..7dfb428 --- /dev/null +++ b/mt-svc.yaml @@ -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