We are receiving the following logs over and over for all of our services:
time="2022-03-22T19:25:56Z" level=error msg="Cannot create service: service port not found" providerName=kubernetes ingress=traefik-dashboard-ingress serviceName=traefik2 servicePort=9000 namespace=traefik2
time="2022-03-22T19:25:56Z" level=error msg="Cannot create service: subset not found" ingress=snserver-ingress namespace=REDACTED providerName=kubernetes serviceName=REDACTED servicePort=8080
MANIFEST:
apiVersion: apps/v1
kind: Deployment
metadata:
name: pricing-service
spec:
template:
spec:
containers:
- name: SERVICENAME
image: SERVICENAME
envFrom:
imagePullPolicy: Always
resources:
limits:
cpu: 1
memory: 512Mi
requests:
cpu: 2m
memory: 25Mi
readinessProbe:
httpGet:
path: /health
port: http-app
livenessProbe:
initialDelaySeconds: 30
httpGet:
path: /health
port: http-app
ports:
- containerPort: 8080
name: http-app
imagePullSecrets:
- name: gitlab
apiVersion: v1
kind: Service
metadata:
name: SERVICENAME
spec:
ports:
- port: 8080
name: http-app
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: pricing-service
annotations:
kubernetes.io/ingress.class: traefik2
traefik.ingress.kubernetes.io/router.middlewares: PROJECT-ENVIRONMNET-SERVICENAME-linkerd@kubernetescrd
spec:
rules:
- host: URL
http:
paths:- path: /
backend:
serviceName: SERVICENAME
servicePort: http-app
- path: /
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: SERVICENAME-linkerd
spec:
headers:
customRequestHeaders:
l5d-dst-override: SERVICENAME.PROJECT-ENVIRONMENT.svc.cluster.local:8080