Auto-sync: 2026-04-20 00:02

This commit is contained in:
2026-04-20 00:02:56 +08:00
parent 8341ee6cc4
commit 6ab2838935
104 changed files with 4077 additions and 31 deletions

View File

@@ -0,0 +1,30 @@
---
title: "Declarative Configuration"
type: concept
tags: [DevOps, GitOps, 配置管理]
sources: [ctp-topic-33-an-introduction-to-gitops.md]
last_updated: 2026-04-19
---
## Definition
Declarative Configuration声明式配置是一种配置管理方法通过描述系统的期望状态what而非具体步骤how来定义基础设施和应用配置。
## Key Characteristics
- 定义期望的结果状态,而非实现步骤
- 工具负责计算如何达到期望状态
- 幂等性:多次应用产生相同结果
- 易于理解和版本控制
## Examples
- Kubernetes YAML 配置
- Terraform HCL 配置
- Docker Compose 配置
- Ansible Playbook
## Related Concepts
- [[Infrastructure as Code (IaC)]]
- [[GitOps]]
- [[Idempotent Operation]](幂等操作)
## Related Sources
- [[ctp-topic-33-an-introduction-to-gitops]] — GitOps 入门介绍