apiVersion: apps/v1 kind: Deployment metadata: name: karmada-agent namespace: karmada-system labels: app: karmada-agent spec: replicas: 2 selector: matchLabels: app: karmada-agent template: metadata: labels: app: karmada-agent spec: serviceAccountName: karmada-agent-sa tolerations: - key: node-role.kubernetes.io/master operator: Exists containers: - name: karmada-agent image: docker.io/karmada/karmada-agent:latest imagePullPolicy: {{image_pull_policy}} command: - /bin/karmada-agent - --karmada-kubeconfig=/etc/karmada/config/karmada.config - --karmada-context={{karmada_context}} - --cluster-name={{member_cluster_name}} - --cluster-api-endpoint={{member_cluster_api_endpoint}} - --cluster-status-update-frequency=10s - --health-probe-bind-address=0.0.0.0:10357 - --metrics-bind-address=:8080 - --feature-gates=CustomizedClusterResourceModeling=true,MultiClusterService=true - --v=4 livenessProbe: httpGet: path: /healthz port: 10357 scheme: HTTP failureThreshold: 3 initialDelaySeconds: 15 periodSeconds: 15 timeoutSeconds: 5 ports: - containerPort: 8080 name: metrics protocol: TCP volumeMounts: - name: karmada-config mountPath: /etc/karmada/config volumes: - name: karmada-config secret: secretName: karmada-agent-config