init: k8s 폴더 구조init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Minimal Example
|
||||
|
||||
단일 환경·단일 클러스터가 같은 경계를 어떻게 사용하는지 보여 주는 예입니다.
|
||||
|
||||
```text
|
||||
minimal/
|
||||
├── infrastructure/
|
||||
│ └── live/dev/cluster/README.md
|
||||
└── gitops/
|
||||
├── platform/core/base/
|
||||
├── apps/hello-config/base/
|
||||
└── clusters/dev/main/
|
||||
```
|
||||
|
||||
실제 cloud 리소스를 만들지 않으며, GitOps 예제는 Namespace와 ConfigMap만
|
||||
렌더합니다.
|
||||
|
||||
```bash
|
||||
kubectl kustomize examples/minimal/gitops/clusters/dev/main
|
||||
```
|
||||
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: hello-config
|
||||
namespace: skeleton-demo
|
||||
labels:
|
||||
app.kubernetes.io/name: hello-config
|
||||
app.kubernetes.io/part-of: skeleton-demo
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
data:
|
||||
message: "replace this example with a real application definition"
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- config-map.yaml
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../../platform/core/base
|
||||
- ../../../apps/hello-config/base
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: skeleton-demo
|
||||
labels:
|
||||
app.kubernetes.io/part-of: skeleton-demo
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
@@ -0,0 +1,11 @@
|
||||
# Example Live Root
|
||||
|
||||
실제 프로젝트에서는 이 위치가 독립 state를 갖는 실행 가능한 IaC root가 됩니다.
|
||||
|
||||
- Scope: local example
|
||||
- Environment: dev
|
||||
- Stack: cluster
|
||||
- State: example에는 없음
|
||||
|
||||
이 예제에는 provider 또는 IaC 엔진을 선택하지 않았기 때문에 실행 코드를
|
||||
포함하지 않습니다.
|
||||
Reference in New Issue
Block a user