diff --git a/services/node-red/deploy/app/kustomization.yaml b/services/node-red/deploy/app/kustomization.yaml index b2aabe8..0701c0a 100644 --- a/services/node-red/deploy/app/kustomization.yaml +++ b/services/node-red/deploy/app/kustomization.yaml @@ -3,5 +3,6 @@ kind: Kustomization resources: - pvc.yaml - deployment.yaml + - service.yaml generatorOptions: disableNameSuffixHash: true \ No newline at end of file diff --git a/services/node-red/deploy/app/service.yaml b/services/node-red/deploy/app/service.yaml new file mode 100644 index 0000000..ea60352 --- /dev/null +++ b/services/node-red/deploy/app/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: node-red + namespace: node-red +spec: + selector: + app: node-red + ports: + - protocol: TCP + port: 1880 + targetPort: 1880 + type: ClusterIP \ No newline at end of file diff --git a/services/node-red/deploy/infra/ingress.yaml b/services/node-red/deploy/infra/ingress.yaml new file mode 100644 index 0000000..b707b40 --- /dev/null +++ b/services/node-red/deploy/infra/ingress.yaml @@ -0,0 +1,16 @@ +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: node-red + namespace: node-red +spec: + entryPoints: + - websecure + routes: + - match: Host(`node-red.casa.limbosolutions.com`) + kind: Rule + services: + - name: node-red + port: 1880 + tls: + secretName: casa-limbosolutions-com-tls \ No newline at end of file diff --git a/services/node-red/deploy/infra/kustomization.yaml b/services/node-red/deploy/infra/kustomization.yaml index aedc582..9b6f553 100644 --- a/services/node-red/deploy/infra/kustomization.yaml +++ b/services/node-red/deploy/infra/kustomization.yaml @@ -2,5 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - namespace.yaml + - ingress.yaml generatorOptions: disableNameSuffixHash: true \ No newline at end of file