karmada/examples/karmadactlinterpret
yingjinhui 0f5e377d9f add kube lib for lua
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-08 22:14:04 +08:00
..
README.md add karmadactl interpret usage examples 2022-11-30 14:20:38 +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 kube lib for lua 2022-12-08 22:14:04 +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 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