Files
nexus/wiki/concepts/Declarative-Configuration.md
2026-04-20 00:02:56 +08:00

30 lines
874 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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 入门介绍