karmada/examples/karmadactlinterpret
yike21 c138113f6f add an command example for examples/karmadactlinterpret/README.md
update the example resourceinterpretercustomization with kube lib for building dependencyInterpretation

Signed-off-by: yike21 <yike21@qq.com>
2023-04-17 13:12:13 +08:00
..
README.md add an command example for examples/karmadactlinterpret/README.md 2023-04-17 13:12:13 +08:00
desired-deploy-nginx.yaml add karmadactl interpret usage examples 2022-11-30 14:20:38 +08:00
observed-deploy-nginx.yaml add kube lib for lua 2022-12-08 22:14:04 +08:00
resourceinterpretercustomization.yaml add an command example for examples/karmadactlinterpret/README.md 2023-04-17 13:12:13 +08:00
status-file.yaml add karmadactl interpret usage examples 2022-11-30 14:20:38 +08:00

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