0

I am fairly new to Kubernetes and currently working on a project where I am trying to add a CronJob deployment service to our Kubernetes service mesh. My current deployment and Cronjob does not expose any ports so I was curious if there is a way to actually go around not adding any ports and still adding it to the service mesh?

apiVersion: v1
kind: Service
metadata:
  name: cronjob-service
spec:
  selector:
    app: cronjob-example
  ports:
  - protocol: TCP
    port: ????
---
apiVersion: batch/v1
kind: CronJob
metadata:
  name: cronjob-example
.....

This is an example of my yaml template.

Rob
  • 1

0 Answers0