1.6 KiB
1.6 KiB
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 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