Signed-off-by: yingjinhui <yingjinhui@didiglobal.com> |
||
|---|---|---|
| .. | ||
| README.md | ||
| desired-deploy-nginx.yaml | ||
| observed-deploy-nginx.yaml | ||
| resourceinterpretercustomization.yaml | ||
| status-file.yaml | ||
README.md
Examples for Karmadactl interpret command
This example shows how to use the karmadactl interpret command easily.
Validate the ResourceInterpreterCustomization configuration
karmadactl interpret -f resourceinterpretercustomization.yaml --check
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 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