apiVersion: v1 kind: Service metadata: annotations: field.cattle.io/targetWorkloadIds: '["deployment:sampleapp:mariadb"]' name: mariadb namespace: sampleapp spec: ports: - port: 3306 protocol: TCP targetPort: 3306 type: ClusterIP status: loadBalancer: {}