pingcap / tidb-operator

TiDB operator creates and manages TiDB clusters running in Kubernetes.
https://docs.pingcap.com/tidb-in-kubernetes/
Apache License 2.0
1.2k stars 490 forks source link

Can't change tiproxy service type #5664

Open ztelliot opened 2 weeks ago

ztelliot commented 2 weeks ago

Bug Report

What version of Kubernetes are you using? v1.26.6

What version of TiDB Operator are you using? v1.6.0

What did you do? add spec.tiproxy.service.type = LoadBalancer in TidbCluster

What did you expect to see? service type change to LoadBalancer

What did you see instead?

The request is invalid: patch: Invalid value: "...": strict decoding error: unknown field "spec.tiproxy.service"

part of my TidbCluster file:

spec:
  ....
  tiproxy:
    baseImage: pingcap/tiproxy
    version: main
    imagePullPolicy: Always
    replicas: 3
    service:
        type: LoadBalancer
    config: {}
csuzhangxc commented 2 weeks ago

it does support changing the service type now, if you need to use LoadBalancer, you can create another service (with type: LoadBalancer) manually. /cc @xhebox