Ingress on remote Kubernetes cluster
# 🌱|help-and-getting-started
s
Hi, I have an AKS (Azure Kubernetes Service) cluster and I'm trying to deploy my services with a custom ingress using Traefik, but I'm unable to make it work and I'm not sure what I'm doing wrong. Could you please help me or provide an example? Here's my code in case you can identify the issue more quickly:
Copy code
kind: Module
type: kubernetes
name: ca-traefik
manifests:
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: ca-traefik
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: ca-traefik
      template:
        metadata:
          labels:
            app: ca-traefik
        spec:
          containers:
          - name: ca-traefik
            image: xxxx
            ports:
            - name: http
              containerPort: 80
  - apiVersion: v1
    kind: Service
    metadata:
      name: ca-traefik
    spec:
      type: LoadBalancer
      selector:
        app: ca-traefik
      ports:
      - protocol: TCP
        port: 80
        targetPort: 80

kind: Module
type: kubernetes
name: ca-app
manifests:
  - apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: ca-app
    spec:
      replicas: 1
      selector:
        matchLabels:
          app: ca-app
      template:
        metadata:
          labels:
            app: ca-app
        spec:
          containers:
          - name: ca-app
            image: xxxxx
            ports:
            - name: http
              containerPort: 8080

  - apiVersion: v1
    kind: Service
    metadata:
      name: ca-app
    spec:
      selector:
        app: ca-app
      ports:
      - protocol: TCP
        port: 8080
        targetPort: 8080

kind: Module
type: container
name: ca-portal
image: xxxx
services:
  - name: ca-portal
    ports:
      - name: http
        containerPort: 8082
        servicePort: 8080
    ingresses:
      - path: /
        port: http
f
Hi @some-engine-11706 , what error are you encountering? A couple of questions to understand the issue better. 1. is ca-traefik the deployment for the traefik ingress controller? 2. is ca-portal the only deployment you are trying to expose via traefik?
2 Views