Skip to content

Latest commit

 

History

History
74 lines (63 loc) · 1.37 KB

README.md

File metadata and controls

74 lines (63 loc) · 1.37 KB

Main Cluster

This repo only contains working workload.

Most of the system and infra workload is deployed through automation.

How to add workload

Create a kustomization fluxcd file that point to gitops/apps/<workloadname> and put it in gitops/kustomizations.

You workload will be deployed.

Expose services

To expose internally

Create an Ingress resource:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: test
  annotations:
    cert-manager.io/cluster-issuer: bealv
  labels:
    probe: enabled
spec:
  rules:
    - host: 'test.bealv.lan'
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: test
                port:
                  number: 9001
  tls:
    - hosts:
        - 'test.bealv.lan'
      secretName: test-tls

To expose externally

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: test
  annotations:
    cert-manager.io/cluster-issuer: bealvio
  labels:
    probe: enabled
spec:
  ingressClassName: external
  rules:
    - host: 'test.bealv.io'
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: test
                port:
                  number: 9001
  tls:
    - hosts:
        - 'test.bealv.io'
      secretName: test-tls