콘텐츠로 이동

Create, apply, and update resources

이 콘텐츠는 아직 번역되지 않았습니다.

create requires absence, update requires an existing resource, and apply chooses create or update while preserving already-matching resources.

Terminal window
xcsh create -f manifest.yaml --dry-run client --result-file create-preview.json
xcsh update -f manifest.yaml --dry-run client --result-file update-preview.json
xcsh apply -f manifest.yaml --dry-run client --result-file apply-preview.json

Review the preview, then repeat the same command without --dry-run client. Keep --result-file so automation can inspect the aggregate operation record.

Run xcsh get <KIND> <NAME> -n <NAMESPACE> and compare the returned identity and relevant fields with the manifest. Do not treat process exit alone as state verification.