Skip to Main Content
Public Ideas Portal


Status Shipped
Kong Product Mesh
Created by Damian Goti
Created on Sep 16, 2022

Kubernetes MeshGatewayInstance does not support setting labels on the pod/deployment

We wants to filter/slice MeshGateway dataplanes by some custom labels set on the MeshGateway, eg:


apiVersion: kuma.io/v1alpha1

kind: MeshGatewayInstance

metadata:

name: public-mesh-gateway

namespace: kong-mesh-system

labels:

custom_label_1: local

spec:

replicas: 1

serviceType: NodePort

tags:

kuma.io/service: public-mesh-gateway

prometheus.io/scrape: "true"

prometheus.io/port: "5670"

prometheus.io/path: "/metrics"


Basically they need to add some custom labels to the pod definition of MeshGateway which is currently not supported from the MeshGatewayInstance Kubernetes CRD.
I tried to edit the deployment and then delete the pod, but there is no support for providing labels at the moment.


  • Attach files