cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

service.yaml (722B)


      1 apiVersion: v1
      2 kind: Service
      3 metadata:
      4   name: draupnir4all
      5   namespace: matrix
      6   labels:
      7     app: draupnir4all
      8 spec:
      9   selector:
     10     app: draupnir4all
     11   ports:
     12     - port: 9000
     13       targetPort: appservice
     14       protocol: TCP
     15       name: appservice
     16     - port: 9001
     17       targetPort: api
     18       protocol: TCP
     19       name: api
     20     - port: 3000
     21       targetPort: web
     22       protocol: TCP
     23       name: web
     24 ---
     25 apiVersion: gateway.networking.k8s.io/v1
     26 kind: HTTPRoute
     27 metadata:
     28   name: draupnir4all-web
     29   namespace: matrix
     30 spec:
     31   parentRefs:
     32     - name: envoy-gateway
     33       namespace: envoy-gateway
     34   hostnames:
     35     - draupnir.midnightthoughts.space
     36   rules:
     37     - backendRefs:
     38         - name: draupnir4all
     39           port: 3000