diff --git a/williamtpeebles-com/gateway.yaml b/williamtpeebles-com/gateway.yaml new file mode 100644 index 0000000..7298349 --- /dev/null +++ b/williamtpeebles-com/gateway.yaml @@ -0,0 +1,18 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: Gateway +metadata: + name: traefik +spec: + gatewayClassName: traefik + listeners: + - name: https + protocol: HTTPS + port: 8443 + tls: + mode: Terminate + certificateRefs: + - name: cert-williamtpeebles-com + namespace: cert-manager + allowedRoutes: + namespaces: + from: Same \ No newline at end of file diff --git a/williamtpeebles-com/httproute.yaml b/williamtpeebles-com/httproute.yaml new file mode 100644 index 0000000..a8a75d5 --- /dev/null +++ b/williamtpeebles-com/httproute.yaml @@ -0,0 +1,20 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: williamtpeebles-com +spec: + parentRefs: + - name: traefik + sectionName: https + kind: Gateway + hostnames: + - williamtpeebles.com + - www.williamtpeebles.com + rules: + - matches: + - path: + type: PathPrefix + value: / + backendRefs: + - name: williamtpeebles-com-svc + port: 80 \ No newline at end of file diff --git a/williamtpeebles-com/ingress.yaml b/williamtpeebles-com/ingress.yaml deleted file mode 100644 index 6861895..0000000 --- a/williamtpeebles-com/ingress.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: williamtpeebles-com-ingress - labels: - name: williamtpeebles-com-ingress -spec: - rules: - - host: williamtpeebles.com - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: williamtpeebles-com-svc - port: - number: 80 - - host: www.williamtpeebles.com - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: williamtpeebles-com-svc - port: - number: 80 - tls: - - hosts: - - williamtpeebles.com - - www.williamtpeebles.com - secretName: cert-williamtpeebles-com \ No newline at end of file