AmitKumarDas / Decisions

Apache License 2.0
10 stars 3 forks source link

K8s: Custom Ingress Controller ~ Metac Idea #244

Open AmitKumarDas opened 4 years ago

AmitKumarDas commented 4 years ago

https://www.doxsey.net/blog/how-to-build-a-custom-kubernetes-ingress-controller-in-go

AmitKumarDas commented 4 years ago

Kubernetes has support for mapping external domains to internal services via Ingress objects. The Ingress object I'm using looks like this:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: doxsey-www
spec:
  tls:
    - hosts:
        - "*.doxsey.net"
      secretName: doxsey-net-tls
  rules:
    - host: www.doxsey.net
      http:
        paths:
          - path: /
            backend:
              serviceName: doxsey-www
              servicePort: 9002

This manifest declares how incoming HTTP traffic should be routed to backend services:

AmitKumarDas commented 4 years ago

Ingress Controllers