Karmadactl Usage Conventions
Recommended usage conventions for karmadactl
.
karmadactl interpret
Preparation for YAML file
observed-deploy-nginx.yaml
desired-deploy-nginx.yaml
resourceinterpretercustomization.yaml
status-file.yaml
Validate the ResourceInterpreterCustomization configuration
karmadactl interpret -f resourceinterpretercustomization.yaml --check
Execute the ResourceInterpreterCustomization with operation
Execute the InterpretReplica rule
karmadactl interpret -f resourceinterpretercustomization.yaml --observed-file observed-deploy-nginx.yaml --operation=InterpretReplica
Execute the Retain rule
karmadactl interpret -f resourceinterpretercustomization.yaml --desired-file desired-deploy-nginx.yaml --observed-file observed-deploy-nginx.yaml --operation Retain
Execute the ReviseReplica rule
karmadactl interpret -f resourceinterpretercustomization.yaml --desired-replica 3 --observed-file observed-deploy-nginx.yaml --operation ReviseReplica
Execute the InterpretStatus rule
karmadactl interpret -f resourceinterpretercustomization.yaml --observed-file observed-deploy-nginx.yaml --operation InterpretStatus
Execute the InterpretHealth rule
karmadactl interpret -f resourceinterpretercustomization.yaml --observed-file observed-deploy-nginx.yaml --operation InterpretHealth
Execute the InterpretDependency rule
karmadactl interpret -f resourceinterpretercustomization.yaml --desired-file desired-deploy-nginx.yaml --operation InterpretDependency
Execute the AggregateStatus rule
karmadactl interpret -f resourceinterpretercustomization.yaml --desired-file desired-deploy-nginx.yaml --operation AggregateStatus --status-file status-file.yaml