From 688b6527809869465c75d9cb3413d8bcce7aff68 Mon Sep 17 00:00:00 2001 From: Aria Date: Wed, 6 Dec 2023 19:35:40 +0000 Subject: get web traffic into vps --- nix-personal/k8s/ingress.yaml | 33 +++++++++++++++++++++++++++++++++ nix-personal/k8s/svc.yaml | 24 ++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 nix-personal/k8s/ingress.yaml create mode 100644 nix-personal/k8s/svc.yaml (limited to 'nix-personal/k8s') diff --git a/nix-personal/k8s/ingress.yaml b/nix-personal/k8s/ingress.yaml new file mode 100644 index 0000000..3849905 --- /dev/null +++ b/nix-personal/k8s/ingress.yaml @@ -0,0 +1,33 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + traefik.ingress.kubernetes.io/router.tls: "true" + traefik.ingress.kubernetes.io/router.tls.certresolver: letsencrypt + traefik.ingress.kubernetes.io/router.tls.domains.0.main: 'girlth.ing' + traefik.ingress.kubernetes.io/router.tls.domains.0.sans: '*.girlth.ing' + name: girlthing-all + namespace: tcmal +spec: + ingressClassName: traefik + rules: + - host: '*.girlth.ing' + http: + paths: + - backend: + service: + name: puppy + port: + name: http + path: / + pathType: ImplementationSpecific + - host: 'girlth.ing' + http: + paths: + - backend: + service: + name: puppy + port: + name: http + path: / + pathType: ImplementationSpecific diff --git a/nix-personal/k8s/svc.yaml b/nix-personal/k8s/svc.yaml new file mode 100644 index 0000000..e6dfdfb --- /dev/null +++ b/nix-personal/k8s/svc.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: Service +metadata: + name: puppy + namespace: tcmal +spec: + ports: + - name: http + port: 80 + protocol: TCP + targetPort: 80 +--- +apiVersion: v1 +kind: Endpoints +metadata: + name: puppy + namespace: tcmal +subsets: +- addresses: + - ip: 192.168.1.248 + ports: + - name: http + port: 80 + protocol: TCP -- cgit v1.2.3