service.yaml (1030B)
1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: cgit 5 namespace: git 6 labels: 7 app: cgit 8 spec: 9 selector: 10 app: cgit 11 ports: 12 - port: 8080 13 targetPort: http 14 protocol: TCP 15 name: http 16 - port: 8081 17 targetPort: anubis 18 protocol: TCP 19 name: anubis 20 - port: 2222 21 targetPort: ssh 22 protocol: TCP 23 name: ssh 24 --- 25 apiVersion: gateway.networking.k8s.io/v1 26 kind: HTTPRoute 27 metadata: 28 name: cgit 29 namespace: git 30 spec: 31 parentRefs: 32 - name: envoy-gateway 33 namespace: envoy-gateway 34 hostnames: 35 - git.midnightthoughts.space 36 rules: 37 - backendRefs: 38 - name: cgit 39 port: 8081 40 --- 41 apiVersion: gateway.networking.k8s.io/v1alpha2 42 kind: TCPRoute 43 metadata: 44 name: cgit-ssh 45 namespace: git 46 annotations: 47 external-dns.alpha.kubernetes.io/hostname: git.midnightthoughts.space 48 spec: 49 parentRefs: 50 - name: envoy-gateway 51 namespace: envoy-gateway 52 sectionName: ssh 53 rules: 54 - backendRefs: 55 - name: cgit 56 port: 2222