Merge pull request #2299 from my-git9/helmendpoints

helm support option --cluster-api-endpoint
This commit is contained in:
karmada-bot 2022-08-09 10:06:08 +08:00 committed by GitHub
commit d5f50b57f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,7 @@ Edited values.yaml
installMode: "agent"
agent:
clusterName: "member"
clusterEndpoint: "https://X.X.X.X:6443"
## kubeconfig of the karmada
kubeconfig:
caCrt: |
@ -196,6 +197,7 @@ helm install karmada-scheduler-estimator -n karmada-system ./charts/karmada
| `etcd.internal.nodeSelector` | Node selector of the karmada-apiserver | `{}` |
| `etcd.internal.resources` | Resource quota of the etcd | `{}` |
| `agent.clusterName` | Name of the member cluster | `""` |
| `agent.clusterEndpoint` | Server endpoint of the member cluster | `""` |
| `agent.kubeconfig.caCrt` | CA CRT of the karmada certificate | `""` |
| `agent.kubeconfig.crt` | CRT of the karmada certificate | `""` |
| `agent.kubeconfig.key` | KEY of the karmada certificate | `""` |

View File

@ -106,6 +106,9 @@ spec:
- /bin/karmada-agent
- --karmada-kubeconfig=/etc/kubeconfig/kubeconfig
- --cluster-name={{ .Values.agent.clusterName }}
{{- if .Values.agent.clusterEndpoint }}
- --cluster-api-endpoint={{ .Values.agent.clusterEndpoint }}
{{- end }}
- --cluster-status-update-frequency=10s
- --leader-elect-resource-namespace={{ include "karmada.namespace" . }}
- --bind-address=0.0.0.0

View File

@ -533,6 +533,8 @@ etcd:
agent:
## @param agent.clusterName name of the member cluster
clusterName: ""
## @param agent.clusterEndpoint server endpoint of the member cluster
clusterEndpoint: ""
## kubeconfig of the karmada
kubeconfig:
## @param agent.kubeconfig.caCrt ca of the certificate