Closed sonyafenge closed 2 weeks ago
When specifying a custom Scheduler plugin, the kubeconfig
is mandatory, otherwise the in-cluster configuration will be used which is the ServiceAccount provided by the management cluster:
clientConnection:
kubeconfig: "REPLACE_ME_WITH_KUBE_CONFIG_PATH"
If you specify the expected path by Kamaji, it's working as expected:
apiVersion: v1
kind: ConfigMap
metadata:
name: tc2-custom-scheduler-config
namespace: kamaji-tc2
data:
scheduler-config.yaml: |
apiVersion: kubescheduler.config.k8s.io/v1
kind: KubeSchedulerConfiguration
percentageOfNodesToScore: 5
clientConnection:
kubeconfig: "/etc/kubernetes/scheduler.conf"
qps: 400
burst: 600
Unfortunately, we can't force Kamaji to use only the tenant kubeconfig
since there could be case where the communication must be allowed between the management and the tenant cluster.
When specifying a custom Scheduler plugin, the
kubeconfig
is mandatory, otherwise the in-cluster configuration will be used which is the ServiceAccount provided by the management cluster:clientConnection: kubeconfig: "REPLACE_ME_WITH_KUBE_CONFIG_PATH"
If you specify the expected path by Kamaji, it's working as expected:
apiVersion: v1 kind: ConfigMap metadata: name: tc2-custom-scheduler-config namespace: kamaji-tc2 data: scheduler-config.yaml: | apiVersion: kubescheduler.config.k8s.io/v1 kind: KubeSchedulerConfiguration percentageOfNodesToScore: 5 clientConnection: kubeconfig: "/etc/kubernetes/scheduler.conf" qps: 400 burst: 600
Unfortunately, we can't force Kamaji to use only the tenant
kubeconfig
since there could be case where the communication must be allowed between the management and the tenant cluster.
thanks for quick response. this do helpful and can fix the issue.
Repre Steps:
adding these to my kamajicontrolplane/tenantcontrolplane: